summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDjalal Harouni <tixxdz@opendz.org>2015-02-13 23:39:13 +0100
committerTom Gundersen <teg@jklm.no>2015-02-14 00:17:47 +0100
commit84dd59b51c0db34f0334e90a5da2a45abcc9a52a (patch)
treef449c4833dcccb15820e412f121526ad369eebad /src
parente7337bae09c2e22a42a2a9c8cdda0cd6cf42428e (diff)
sd-rtnl: add missing IFLA_INET6_ADDR_GEN_MODE definition
Add missing IFLA_INET6_ADDR_GEN_MODE definition so we can build with kernel headers < 3.17
Diffstat (limited to 'src')
-rw-r--r--src/shared/missing.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/shared/missing.h b/src/shared/missing.h
index 4cc6fdc069..b33a70cb2c 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -438,6 +438,24 @@ static inline int setns(int fd, int nstype) {
#define LOOP_CTL_GET_FREE 0x4C82
#endif
+#if !HAVE_DECL_IFLA_INET6_ADDR_GEN_MODE
+#define IFLA_INET6_UNSPEC 0
+#define IFLA_INET6_FLAGS 1
+#define IFLA_INET6_CONF 2
+#define IFLA_INET6_STATS 3
+#define IFLA_INET6_MCAST 4
+#define IFLA_INET6_CACHEINFO 5
+#define IFLA_INET6_ICMP6STATS 6
+#define IFLA_INET6_TOKEN 7
+#define IFLA_INET6_ADDR_GEN_MODE 8
+#define __IFLA_INET6_MAX 9
+
+#define IFLA_INET6_MAX (__IFLA_INET6_MAX - 1)
+
+#define IN6_ADDR_GEN_MODE_EUI64 0
+#define IN6_ADDR_GEN_MODE_NONE 1
+#endif
+
#if !HAVE_DECL_IFLA_MACVLAN_FLAGS
#define IFLA_MACVLAN_UNSPEC 0
#define IFLA_MACVLAN_MODE 1