This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Update if.h to match Linux kernel headers?
- From: Szabolcs Nagy <szabolcs dot nagy at arm dot com>
- To: Joseph Myers <joseph at codesourcery dot com>, Carlos O'Donell <carlos at redhat dot com>
- Cc: <nd at arm dot com>, Florian Weimer <fweimer at redhat dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 17 Jun 2016 10:40:30 +0100
- Subject: Re: Update if.h to match Linux kernel headers?
- Authentication-results: sourceware.org; auth=none
- Nodisclaimer: True
- References: <acfcff1c-1da0-d12b-d300-42e602d17c84 at redhat dot com> <alpine dot DEB dot 2 dot 20 dot 1606170911251 dot 14216 at digraph dot polyomino dot org dot uk>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
On 17/06/16 10:12, Joseph Myers wrote:
> On Thu, 16 Jun 2016, Carlos O'Donell wrote:
>
>> I'm not entirely sure if userspace can make use of these flags, but one
>> could conceivably write userspace tools and drivers that would.
>
> In <https://sourceware.org/ml/libc-alpha/2014-06/msg00413.html> I noted
> that I presumed the exclusion of IFF_* values not fitting in a "short"
> flags field was deliberate.
>
musl has these for completeness anyway, the
flags can be queried from userspace via
/sys/class/net/<dev>/flags
(i also added IFF_VOLATILE to musl if.h)