]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
48ecf8f5 DS |
2 | /* |
3 | * BGPd - Mac hash header | |
4 | * Copyright (C) 2018 Cumulus Networks, Inc. | |
5 | * Donald Sharp | |
48ecf8f5 DS |
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 | ||
6a69ac51 DS |
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 | ||
48ecf8f5 | 21 | void bgp_mac_dump_table(struct vty *vty); |
4e802e66 DS |
22 | |
23 | /* | |
24 | * Function to lookup the prefix and see if we have a matching mac | |
25 | */ | |
5a1ae2c2 DS |
26 | bool bgp_mac_entry_exists(const struct prefix *p); |
27 | bool bgp_mac_exist(const struct ethaddr *mac); | |
4e802e66 | 28 | |
48ecf8f5 | 29 | #endif |