Update if.h to match Linux kernel headers?
Carlos O'Donell
carlos@redhat.com
Fri Jun 17 01:29:00 GMT 2016
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.
More information about the Libc-alpha
mailing list