]> git.proxmox.com Git - mirror_frr.git/blob - bgpd/bgp_mac.h
ospfd: re-fix default origination check
[mirror_frr.git] / bgpd / bgp_mac.h
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
23 void bgp_mac_init(void);
24 void bgp_mac_finish(void);
25
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 */
31 void bgp_mac_add_mac_entry(struct interface *ifp);
32 void bgp_mac_del_mac_entry(struct interface *ifp);
33
34 void bgp_mac_dump_table(struct vty *vty);
35
36 /*
37 * Function to lookup the prefix and see if we have a matching mac
38 */
39 bool bgp_mac_entry_exists(struct prefix *p);
40 bool bgp_mac_exist(struct ethaddr *mac);
41
42 #endif