netifaces
netifaces copied to clipboard
Enhancement : ifa_flags
Some addr->ifa_flags bits are used to determine broadcast/peer address type. Other bits can be useful, like IFF_UP (interface is up). Do you agree this is a good idea to expose them to Python side ?
In principle, yes, but only if the same functionality can be achieved on other platforms (a minimum set being Linux, macOS, Windows and FreeBSD). What I don't want is for information to be supplied e.g. only if you're running Linux, or only if you aren't running Windows, or some similar situation.
That makes sense.
Not sure if covered by this issue, but is it possible to expose loopback flag on the Python side? i.e. can we check if a given interface is a loopback interface or not?
As a reference, Java 7 (and above) provides that function.
Let me add that it would be cool to see whether interface has MULTICAST flag too!