This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Update if.h to match Linux kernel headers?
- From: Carlos O'Donell <carlos at redhat dot com>
- To: Florian Weimer <fweimer at redhat dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 16 Jun 2016 21:29:13 -0400
- Subject: Update if.h to match Linux kernel headers?
- Authentication-results: sourceware.org; auth=none
Florian,
Should we be updating if.h to match linux/if.h?
I'm not entirely sure if userspace can make use of these flags, but one
could conceivably write userspace tools and drivers that would.
We don't have a Linux-specific header for this, but I don't think it
matters. Linux ends up being the defacto place where these value are
being defined and then used in other OSs.
Thoughts?
diff --git a/sysdeps/gnu/net/if.h b/sysdeps/gnu/net/if.h
index bbc2094..c56dcac 100644
--- a/sysdeps/gnu/net/if.h
+++ b/sysdeps/gnu/net/if.h
@@ -78,6 +78,12 @@ enum
# define IFF_AUTOMEDIA IFF_AUTOMEDIA
IFF_DYNAMIC = 0x8000 /* Dialup device with changing addresses. */
# define IFF_DYNAMIC IFF_DYNAMIC
+ IFF_LOWER_UP = 0x10000 /* Network interface carrier on. */
+# define IFF_LOWER_UP IFF_LOWER_UP
+ IFF_DORMANT = 0x20000 /* Network interface dormant. */
+# define IFF_DORMANT IFF_DORMANT
+ IFF_ECHO = 0x40000 /* Do not locally echo sent frames. */
+# define IFF_ECHO IFF_ECHO
};
/* The ifaddr structure contains information about one address of an
---
--
Cheers,
Carlos.