-
-
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
psutil don't make difference between broadcast and point to point interfaces #663
Comments
Mmm interesting. I took a look at netifaces lib and it seems it has the same problem because the only fields it provides are |
Nevermind. I should read man pages before assuming anything too soon. =)
...so after all it looks like adding a separate 'ptp' field could make sense. |
Note to self: we can use IFF_BROADCAST and IFF_POINTOPOINT flags and Linux: FreeBSD: Solaris: |
This is now implemented as of https://github.com/giampaolo/psutil/pull/668/files |
Hello Giampalo, very quick reaction and implementation ! thank you :) to answer your question (why I need to identify NIC identified on VPN). I'm currently working on an OS mapping plugin linked to the Ariane project. Our target is ability to map all processes and their connections in the OS. https://github.com/echinopsii/net.echinopsii.ariane.community.plugin.procos You can get more information here : http://ariane.echinopsii.net/ Cheers |
Hello,
just found this little issue on snic tuple returned by psutil.net_if_addrs().
I've currently a tun0 interfaces linked to a VPN :
As you can see the P-t-P target address is considered as the broadcast address on the psutil snic tuple :
I guess best way to make the diff and keep retro compatibility would be to add a ptp field with '10.8.0.9' and leave the broadcast field with None.
Cheers,
Mathilde
The text was updated successfully, but these errors were encountered: