summaryrefslogtreecommitdiff
path: root/bgpd/bgp_mac.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-10-12 10:23:08 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-12-12 16:11:45 -0500
commit4e802e662e67fc98e69411cbcee4f1e2a82ed5c8 (patch)
tree32841f12587e3f906b4616040559dc4c8be79594 /bgpd/bgp_mac.h
parent6a69ac51380d1ae71ef92b5ac4772f7eeae22ff3 (diff)
bgpd: Add code to reject mac's and to rescan table
Add some code that will reject local mac's from being installed and add some code that will cause a rescan when we have a local mac change. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com.
Diffstat (limited to 'bgpd/bgp_mac.h')
-rw-r--r--bgpd/bgp_mac.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/bgpd/bgp_mac.h b/bgpd/bgp_mac.h
index 31a8ef9913..1dd987ef12 100644
--- a/bgpd/bgp_mac.h
+++ b/bgpd/bgp_mac.h
@@ -32,4 +32,10 @@ void bgp_mac_add_mac_entry(struct interface *ifp);
void bgp_mac_del_mac_entry(struct interface *ifp);
void bgp_mac_dump_table(struct vty *vty);
+
+/*
+ * Function to lookup the prefix and see if we have a matching mac
+ */
+bool bgp_mac_entry_exists(struct prefix *p);
+
#endif