netifaces icon indicating copy to clipboard operation
netifaces copied to clipboard

Enhancement : ifa_flags

Open NicoPy opened this issue 6 years ago • 4 comments
trafficstars

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 ?

NicoPy avatar Dec 14 '18 10:12 NicoPy

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.

al45tair avatar Jan 03 '19 13:01 al45tair

That makes sense.

NicoPy avatar Jan 04 '19 22:01 NicoPy

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.

keepsimple1 avatar Oct 22 '19 16:10 keepsimple1

Let me add that it would be cool to see whether interface has MULTICAST flag too!

barabanus avatar Oct 29 '19 14:10 barabanus