]> git.proxmox.com Git - mirror_frr.git/blame - bgpd/bgp_mac.h
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / bgpd / bgp_mac.h
CommitLineData
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
10void bgp_mac_init(void);
11void 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 */
18void bgp_mac_add_mac_entry(struct interface *ifp);
19void bgp_mac_del_mac_entry(struct interface *ifp);
20
48ecf8f5 21void 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
26bool bgp_mac_entry_exists(const struct prefix *p);
27bool bgp_mac_exist(const struct ethaddr *mac);
4e802e66 28
48ecf8f5 29#endif