[systemd-commits] configure.ac src/shared
Tom Gundersen
tomegun at kemper.freedesktop.org
Fri Feb 13 15:18:40 PST 2015
configure.ac | 3 ++-
src/shared/missing.h | 18 ++++++++++++++++++
2 files changed, 20 insertions(+), 1 deletion(-)
New commits:
commit 84dd59b51c0db34f0334e90a5da2a45abcc9a52a
Author: Djalal Harouni <tixxdz at opendz.org>
Date: Fri Feb 13 23:39:13 2015 +0100
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
diff --git a/configure.ac b/configure.ac
index 684c793..97a29d6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -323,7 +323,8 @@ AC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at, setns, getrandom, renamea
#include <linux/random.h>
]])
-AC_CHECK_DECLS([IFLA_MACVLAN_FLAGS,
+AC_CHECK_DECLS([IFLA_INET6_ADDR_GEN_MODE,
+ IFLA_MACVLAN_FLAGS,
IFLA_IPVLAN_MODE,
IFLA_VTI_REMOTE,
IFLA_PHYS_PORT_ID,
diff --git a/src/shared/missing.h b/src/shared/missing.h
index 4cc6fdc..b33a70c 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
More information about the systemd-commits
mailing list