chiark / gitweb /
missing.h: add IFLA_MACVLAN_FLAGS
[elogind.git] / src / shared / missing.h
index f129f0b2d3b78b302571e3569ab5a2ef8aae03ae..818d704f9257c4f71ad8ecc834a0bf61c1691c6b 100644 (file)
@@ -371,6 +371,15 @@ static inline int setns(int fd, int nstype) {
 #define LOOP_CTL_GET_FREE 0x4C82
 #endif
 
+#if !HAVE_DECL_IFLA_MACVLAN_FLAGS
+#define IFLA_MACVLAN_UNSPEC 0
+#define IFLA_MACVLAN_MODE 1
+#define IFLA_MACVLAN_FLAGS 2
+#define __IFLA_MACVLAN_MAX 3
+
+#define IFLA_MACVLAN_MAX (__IFLA_MACVLAN_MAX - 1)
+#endif
+
 #if !HAVE_DECL_IFLA_PHYS_PORT_ID
 #undef IFLA_PROMISCUITY
 #define IFLA_PROMISCUITY 30