You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, the Uroot team also has an ip implementation at https://github.com/u-root/u-root/tree/master/cmds/core/ip which at this point uses net.Flags. This means we're restricted to displaying only the 5 flags currently supported. While we could read the raw flags directly and do all the parsing ourselves, it seems like it would be much nicer to have the official net package support it.
Interface could also potentially have a RawFlags method that returns the underlying OS-specific flags, though I'm not sure if that would be useful to folks, or if having the OS-neutral flags is the main benefit here.
@x1unix I'm not really the best person to answer that question, as I'm not particularly involved in net. That sounds reasonable to me (net.Flags is in fact an OS-neutral type). I don't think it would work for @GanShun's use case, which IIUC, depends on net.Flags.String() returning the Linux name, but perhaps that is just out of scope.
changed the title
net: expose LOWER_UP flag in NICs
x/net: expose LOWER_UP flag in NICs
Oct 25, 2021