-
-
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 NICs information a-la ifconfig #376
Comments
From [email protected] on May 13, 2013 16:47:54
|
From g.rodola on May 15, 2013 16:42:42
|
From g.rodola on May 16, 2013 18:57:05
Status: Started |
From [email protected] on December 15, 2013 04:43:03
|
From [email protected] on December 15, 2013 04:46:58
|
From [email protected] on December 15, 2013 04:49:27
|
From g.rodola on December 16, 2013 05:30:31
|
From [email protected] on December 16, 2013 07:45:17
|
From g.rodola on December 16, 2013 07:51:01
|
From [email protected] on December 16, 2013 08:48:35
|
From [email protected] on December 16, 2013 08:50:05
|
From g.rodola on December 16, 2013 08:52:14
|
Update: as of now it seems this function is implemented for all UNIX flavors. The only missing platform is Windows.
Everything works fine on my laptop but on Travis we get a segfault: I'm not sure about the function name yet (net_if_addrs) because of #250. We might have a single net_ifaces() function returning both the addresses associated with the interface and other information about it (namely speed, duplex and is_up). |
Travis build fixed. I also exposed AF_LINK on OSX/ BSD for retrieving MAC addresses.
|
Update:
Open questions:
Reminder: see what netifaces does in this regard. |
netifaces provides an AF_LINK constants on all platforms: on Linux it's == socket.AF_PACKET, on FreeBSD it's == socket.AF_LINK, on Windows it's == -1000. I guess we'll do the same. |
…rimary addresses which cannot be termined
Merged into master as #588. |
From g.rodola on May 10, 2013 03:16:52
Original issue: http://code.google.com/p/psutil/issues/detail?id=376
The text was updated successfully, but these errors were encountered: