From d5eff74097df9f6ef24ad6e4d972961ba304368d Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Wed, 19 Feb 2014 15:45:54 +0100 Subject: 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). --- src/shared/missing.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/shared/missing.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 #include #include +#include #ifdef HAVE_AUDIT #include @@ -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); -- cgit v1.2.3-54-g00ecf