summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-01-19 22:24:32 +0100
committerTom Gundersen <teg@jklm.no>2015-01-19 23:25:16 +0100
commitc4a5ddc9f29cf910fac9d814cd898b4cc2bd79b1 (patch)
treee5e0b2423d42bce30fec01c42c00bb75a241ebae /src/shared
parent250ba6647bce6099b6cc029a63d43231b4fa3261 (diff)
networkd: netdev - add ipvlan support
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/missing.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/shared/missing.h b/src/shared/missing.h
index d074405bec..5b95b0006f 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -441,6 +441,18 @@ static inline int setns(int fd, int nstype) {
#define IFLA_MACVLAN_MAX (__IFLA_MACVLAN_MAX - 1)
#endif
+#if !HAVE_DECL_IFLA_IPVLAN_MODE
+#define IFLA_IPVLAN_UNSPEC 0
+#define IFLA_IPVLAN_MODE 1
+#define __IFLA_IPVLAN_MAX 2
+
+#define IFLA_IPVLAN_MAX (__IFLA_IPVLAN_MAX - 1)
+
+#define IPVLAN_MODE_L2 0
+#define IPVLAN_MODE_L3 1
+#define IPVLAN_MAX 2
+#endif
+
#if !HAVE_DECL_IFLA_VTI_REMOTE
#define IFLA_VTI_UNSPEC 0
#define IFLA_VTI_LINK 1