]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: remove linux/ifbridge.h from rt_netlink.c
authorAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Fri, 17 Apr 2020 18:37:42 +0000 (11:37 -0700)
committerAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Wed, 5 Aug 2020 13:46:13 +0000 (06:46 -0700)
It is causing build failures because of conflicts with netinet.
Instead I have re-defined the MAC-SYNC UAPIs in the re_netlink.c

This is clearly a hack that needs to be re-visited.

Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
zebra/rt_netlink.c

index d571d7f5e3f017114a70736eacb9d4cfc92326bb..61d1212e043900690fe19f8ff4aa26b733af819c 100644 (file)
@@ -23,7 +23,6 @@
 #ifdef HAVE_NETLINK
 
 #include <net/if_arp.h>
-#include <linux/if_bridge.h>
 #include <linux/lwtunnel.h>
 #include <linux/mpls_iptunnel.h>
 #include <linux/neighbour.h>
 #define AF_MPLS 28
 #endif
 
+/* Re-defining as I am unable to include <linux/if_bridge.h> which has the
+ * UAPI for MAC sync. */
+#ifndef _UAPI_LINUX_IF_BRIDGE_H
+/* FDB notification bits for NDA_NOTIFY:
+ * - BR_FDB_NFY_STATIC - notify on activity/expire even for a static entry
+ * - BR_FDB_NFY_INACTIVE - mark as inactive to avoid double notification,
+ *                         used with BR_FDB_NFY_STATIC (kernel controlled)
+ */
+enum {
+       BR_FDB_NFY_STATIC,
+       BR_FDB_NFY_INACTIVE,
+       BR_FDB_NFY_MAX
+};
+#endif
+
 static vlanid_t filter_vlan = 0;
 
 /* We capture whether the current kernel supports nexthop ids; by