[lxc-devel] [lxd/master] network: provide #ifdefs for RTM_* requests
brauner on Github
lxc-bot at linuxcontainers.org
Mon Oct 1 09:36:48 UTC 2018
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 381 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20181001/346d1c0a/attachment.bin>
-------------- next part --------------
From 4445fb50ad94a1bd767d398459cbf05e7ec1e5af Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Mon, 1 Oct 2018 11:35:12 +0200
Subject: [PATCH] network: provide #ifdefs for RTM_* requests
Closes #5090.
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
shared/network.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/shared/network.c b/shared/network.c
index 7725ef7333..c882b7aa2b 100644
--- a/shared/network.c
+++ b/shared/network.c
@@ -24,6 +24,14 @@
((struct rtattr *)(((char *)(r)) + NLMSG_ALIGN(sizeof(struct rtgenmsg))))
#endif
+#ifndef RTM_GETLINK
+#define RTM_GETLINK 18
+#endif
+
+#ifndef RTM_GETNSID
+#define RTM_GETNSID 90
+#endif
+
#ifdef IFLA_IF_NETNSID
#ifndef IFLA_TARGET_NETNSID
#define IFLA_TARGET_NETNSID = IFLA_IF_NETNSID
More information about the lxc-devel
mailing list