[libvirt] [PATCH] define NTF_{SELF,MASTER} if undefined

Guido Günther agx at sigxcpu.org
Tue Dec 9 06:56:34 UTC 2014


Older kernel headers lack this definition (e.g. Debian Wheezy's 3.2)
---
 src/util/virnetdevbridge.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/util/virnetdevbridge.c b/src/util/virnetdevbridge.c
index 73ec40b..d92a9de 100644
--- a/src/util/virnetdevbridge.c
+++ b/src/util/virnetdevbridge.c
@@ -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
-- 
2.1.3




More information about the libvir-list mailing list