[systemd-devel] [PATCH] missing: define NET_NAME_UNKNOWN

Colin Walters walters at verbum.org
Thu Dec 4 10:12:40 PST 2014


It's only exposed to userspace since

  commit 685343fc3ba61a1f6eef361b786601123db16c28
  Author:     Tom Gundersen <teg at jklm.no>
  AuthorDate: Mon Jul 14 16:37:22 2014 +0200
  Commit:     David S. Miller <davem at davemloft.net>
  CommitDate: Tue Jul 15 16:12:01 2014 -0700

to the kernel.
---
 src/shared/missing.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/shared/missing.h b/src/shared/missing.h
index a56d265..aef232b 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -582,6 +582,10 @@ static inline int setns(int fd, int nstype) {
 #  define NET_NAME_RENAMED 4
 #endif
 
+#ifndef NET_NAME_UNKNOWN
+#  define NET_NAME_UNKNOWN 0
+#endif
+
 #ifndef BPF_XOR
 #  define BPF_XOR 0xa0
 #endif
-- 
1.8.3.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-missing-define-NET_NAME_UNKNOWN.patch
Type: text/x-patch
Size: 933 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20141204/95b51e78/attachment.bin>


More information about the systemd-devel mailing list