summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2015-03-09 12:27:25 +0100
committerTom Gundersen <teg@jklm.no>2015-03-09 14:06:20 +0100
commitcf1755bac0426132c21fdca519a336ce7d920277 (patch)
treeeffea04a559886e2daf8454f5a179c44d81f0e5a /src/shared
parent4a6970c5354cd367b1fa62114057d8e084a20403 (diff)
missing.h: add NDA_*
This is necessary to build with older kernel headers. NDA_VLAN was introduced in v3.9 and NDA_PORT, NDA_VNI and NDA_IFINDEX in v3.10
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/missing.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/shared/missing.h b/src/shared/missing.h
index e72631e130..802b4957e0 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -35,6 +35,7 @@
#include <linux/loop.h>
#include <linux/audit.h>
#include <linux/capability.h>
+#include <linux/neighbour.h>
#ifdef HAVE_AUDIT
#include <libaudit.h>
@@ -623,6 +624,21 @@ static inline int setns(int fd, int nstype) {
#define IFLA_BRPORT_MAX (__IFLA_BRPORT_MAX - 1)
#endif
+#if !HAVE_DECL_NDA_IFINDEX
+#define NDA_UNSPEC 0
+#define NDA_DST 1
+#define NDA_LLADDR 2
+#define NDA_CACHEINFO 3
+#define NDA_PROBES 4
+#define NDA_VLAN 5
+#define NDA_PORT 6
+#define NDA_VNI 7
+#define NDA_IFINDEX 8
+#define __NDA_MAX 9
+
+#define NDA_MAX (__NDA_MAX - 1)
+#endif
+
#ifndef IPV6_UNICAST_IF
#define IPV6_UNICAST_IF 76
#endif