Skip to content
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

net_if_() functions should provide info about the gateway #667

Open
giampaolo opened this issue Aug 4, 2015 · 2 comments
Open

net_if_() functions should provide info about the gateway #667

giampaolo opened this issue Aug 4, 2015 · 2 comments

Comments

@giampaolo
Copy link
Owner

Original discussion:
https://groups.google.com/forum/#!topic/psutil/GLKNvgSGs28

@Wellers0n
Copy link

It works ?

@bruingineer
Copy link

from the Windows API documentation for the GetAdaptersAddresses() function:

GAA_FLAG_INCLUDE_GATEWAYS
0x0080
Return the addresses of default gateways. This flag is supported on Windows Vista and later.

This is this function used in windows/net.c to get the IP, netmask, etc info. It looks like the same function can also return the default gateway info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants