-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide more info on net_if_stats() #922
Comments
Anoter improvment could be to add a CAN interface in those info. |
Don't know if its included in your proposal for flags, but I would like to see Example Linux partial
|
It would be nice to have the old IFF_UP flag that the older version of the library reported as isup. If I'm not mistake in the new version there is no way to tell the difference between admin down and link down. |
ifconfig
command shows more info than we do. It looks like we can add this info innet_if_stats
. Since these info may change between platforms it looks like we may provide this as a command separate string, similar to https://pythonhosted.org/psutil/#psutil.disk_partitions, so something like:Alternatively we can do this with booleans, but that depends on whether what provided by other platforms (especially Windows) is portable enough.
UNIX
From /usr/include/net/if.h we can determine:
Windows
https://msdn.microsoft.com/en-us/library/windows/desktop/aa365943(v=vs.85).aspx
The text was updated successfully, but these errors were encountered: