aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-01-03 21:34:46 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-01-03 21:34:46 +0100
commit0d1a81432401b5343dde68b9cbeb0e40360e321e (patch)
treed8aa4076f1fbe7e870896f947efa51a88501fe24 /executor
parent76d86b16e617e761300a6de97f41f36bf091ef65 (diff)
executor: define constants that are missing on some distros
Diffstat (limited to 'executor')
-rw-r--r--executor/common_linux.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h
index 30abfd6c7..bfc4788c7 100644
--- a/executor/common_linux.h
+++ b/executor/common_linux.h
@@ -317,6 +317,12 @@ static void netlink_add_macvlan(struct nlmsg* nlmsg, int sock, const char* name,
(void)err;
}
+#define IFLA_IPVLAN_FLAGS 2
+#define IPVLAN_MODE_L3S 2
+#ifndef IPVLAN_F_VEPA
+#define IPVLAN_F_VEPA 2
+#endif
+
static void netlink_add_ipvlan(struct nlmsg* nlmsg, int sock, const char* name, const char* link, uint16 mode, uint16 flags)
{
netlink_add_device_impl(nlmsg, "ipvlan", name);