]> git.proxmox.com Git - mirror_frr.git/blame - bgpd/bgp_mac.h
Merge pull request #5686 from qlyoung/fix-bgp-fqdn-capability-leak
[mirror_frr.git] / bgpd / bgp_mac.h
CommitLineData
48ecf8f5
DS
1/*
2 * BGPd - Mac hash header
3 * Copyright (C) 2018 Cumulus Networks, Inc.
4 * Donald Sharp
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)
9 * any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; see the file COPYING; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20#ifndef __BGP_MAC_H__
21#define __BGP_MAC_H__
22
23void bgp_mac_init(void);
24void bgp_mac_finish(void);
25
6a69ac51
DS
26/*
27 * Functions to add/delete the mac entry from the appropriate
28 * bgp hash's. Additionally to do some additional processing
29 * to allow the win/loss to be processed.
30 */
31void bgp_mac_add_mac_entry(struct interface *ifp);
32void bgp_mac_del_mac_entry(struct interface *ifp);
33
48ecf8f5 34void bgp_mac_dump_table(struct vty *vty);
4e802e66
DS
35
36/*
37 * Function to lookup the prefix and see if we have a matching mac
38 */
39bool bgp_mac_entry_exists(struct prefix *p);
eee353c5 40bool bgp_mac_exist(struct ethaddr *mac);
4e802e66 41
48ecf8f5 42#endif