]> git.proxmox.com Git - mirror_frr.git/blob - bgpd/bgp_mac.h
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / bgpd / bgp_mac.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * BGPd - Mac hash header
4 * Copyright (C) 2018 Cumulus Networks, Inc.
5 * Donald Sharp
6 */
7 #ifndef __BGP_MAC_H__
8 #define __BGP_MAC_H__
9
10 void bgp_mac_init(void);
11 void bgp_mac_finish(void);
12
13 /*
14 * Functions to add/delete the mac entry from the appropriate
15 * bgp hash's. Additionally to do some additional processing
16 * to allow the win/loss to be processed.
17 */
18 void bgp_mac_add_mac_entry(struct interface *ifp);
19 void bgp_mac_del_mac_entry(struct interface *ifp);
20
21 void bgp_mac_dump_table(struct vty *vty);
22
23 /*
24 * Function to lookup the prefix and see if we have a matching mac
25 */
26 bool bgp_mac_entry_exists(const struct prefix *p);
27 bool bgp_mac_exist(const struct ethaddr *mac);
28
29 #endif