summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-02-19 15:45:54 +0100
committerTom Gundersen <teg@jklm.no>2014-02-19 15:50:24 +0100
commitd5eff74097df9f6ef24ad6e4d972961ba304368d (patch)
treebd7e5e5a8dc6ed4b69377354ff22609e716e592c
parent7a0d4a3d16855bac2ce2f2973122dae1ed069dff (diff)
missing.h: add some IFLA_* constants
These were added to the kernel between 3.5 and 3.9, let's not require such recent kernels (yet).
-rw-r--r--src/libsystemd/sd-rtnl/rtnl-message.c1
-rw-r--r--src/shared/missing.h14
2 files changed, 15 insertions, 0 deletions
diff --git a/src/libsystemd/sd-rtnl/rtnl-message.c b/src/libsystemd/sd-rtnl/rtnl-message.c
index eb4b445da7..5d4dc71810 100644
--- a/src/libsystemd/sd-rtnl/rtnl-message.c
+++ b/src/libsystemd/sd-rtnl/rtnl-message.c
@@ -27,6 +27,7 @@
#include "util.h"
#include "refcnt.h"
+#include "missing.h"
#include "sd-rtnl.h"
#include "rtnl-util.h"
diff --git a/src/shared/missing.h b/src/shared/missing.h
index ac6f5bf6af..2661285a22 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -30,6 +30,7 @@
#include <unistd.h>
#include <linux/oom.h>
#include <linux/input.h>
+#include <linux/if_link.h>
#ifdef HAVE_AUDIT
#include <libaudit.h>
@@ -85,6 +86,19 @@
#define IP_TRANSPARENT 19
#endif
+#ifndef IFLA_CARRIER
+ #define IFLA_CARRIER 33
+ #ifndef IFLA_NUM_RX_QUEUES
+ #define IFLA_NUM_RX_QUEUES 32
+ #ifndef IFLA_NUM_TX_QUEUES
+ #define IFLA_NUM_TX_QUEUES 31
+ #ifndef IFLA_PROMISCUITY
+ #define IFLA_PROMISCUITY 30
+ #endif
+ #endif
+ #endif
+#endif
+
#if !HAVE_DECL_PIVOT_ROOT
static inline int pivot_root(const char *new_root, const char *put_old) {
return syscall(SYS_pivot_root, new_root, put_old);