mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
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).
This commit is contained in:
parent
7a0d4a3d16
commit
d5eff74097
@ -27,6 +27,7 @@
|
||||
|
||||
#include "util.h"
|
||||
#include "refcnt.h"
|
||||
#include "missing.h"
|
||||
|
||||
#include "sd-rtnl.h"
|
||||
#include "rtnl-util.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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user