]>
git.proxmox.com Git - mirror_frr.git/blob - bgpd/bgp_mac.h
2 * BGPd - Mac hash header
3 * Copyright (C) 2018 Cumulus Networks, Inc.
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)
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
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
23 void bgp_mac_init(void);
24 void bgp_mac_finish(void);
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.
31 void bgp_mac_add_mac_entry(struct interface
*ifp
);
32 void bgp_mac_del_mac_entry(struct interface
*ifp
);
34 void bgp_mac_dump_table(struct vty
*vty
);
37 * Function to lookup the prefix and see if we have a matching mac
39 bool bgp_mac_entry_exists(const struct prefix
*p
);
40 bool bgp_mac_exist(const struct ethaddr
*mac
);