]> xenbits.xensource.com Git - libvirt.git/commitdiff
define NTF_{SELF,MASTER} if undefined
authorGuido Günther <agx@sigxcpu.org>
Tue, 9 Dec 2014 06:36:23 +0000 (07:36 +0100)
committerGuido Günther <agx@sigxcpu.org>
Tue, 9 Dec 2014 18:14:57 +0000 (19:14 +0100)
Older kernel headers lack this definition (e.g. Debian Wheezy's 3.2)

src/util/virnetdevbridge.c

index 73ec40b7ac5ea2eaf45ab612c6f55a6b0ff068b4..d9dcc392d7caff07368e3aa30fc0ed7575f7660c 100644 (file)
@@ -919,6 +919,15 @@ virNetDevBridgeSetVlanFiltering(const char *brname ATTRIBUTE_UNUSED,
 
 
 #if defined(__linux__) && defined(HAVE_LIBNL)
+
+# ifndef NTF_SELF
+#  define NTF_SELF 0x02
+# endif
+
+# ifndef NTF_MASTER
+#  define NTF_MASTER 0x04
+# endif
+
 /* virNetDevBridgeFDBAddDel:
  * @mac: the MAC address being added to the table
  * @ifname: name of the port (interface) of the bridge that wants this MAC