SamuelYvon / netifaces-2

netifaces reborn
https://pypi.org/project/netifaces2/
MIT License
21 stars 7 forks source link

mac address display abnormal on windows 10 and ipv6 address not display. #22

Closed JianZhou12345678 closed 5 months ago

JianZhou12345678 commented 6 months ago

I installed netifaces2 on my windows10 64 bit, with python 3.7.6, when i get my network interface("Realtek PCIe GbE Family Controller"), i find mac address show abnormal and not show ipv6 address. I hope netifaces2 can show the same info as old lib netifaces.

image image image

SamuelYvon commented 6 months ago

Thanks for reporting! I will be checking this later when I get access to a windows machine. Currently the information is reported by windows tooling, maybe I am parsing it wrong.

SamuelYvon commented 6 months ago

I was able to reproduce the mac. addr bug. Will look into it. For ipv6, do you have the latest version? Someone else had the same issue.

SamuelYvon commented 6 months ago

@JianZhou12345678 I fixed the display of the mac addr. in version 0.0.20, which should hit pypi soon. I will investigate for the ivp6 since the windows API seems to be more convoluted to get to the information.

JianZhou12345678 commented 6 months ago

@SamuelYvon Thanks for your response, if possible, I hope use netifaces2 library can show the same informations as the netifaces library, eg: It can display both the IPv4 and IPv6 addresses of the network card 1 2

SamuelYvon commented 6 months ago

Yep, that's the goal, haven't gotten around to it yet.

SamuelYvon commented 6 months ago

Hi @JianZhou12345678 ! Just a little update. I have a PR ready on branch https://github.com/SamuelYvon/netifaces-2/pull/23. I am also testing another fix at the same time, so I won't deploy right away. If you want, you can test right now. It does include Ipv6 information.

SamuelYvon commented 5 months ago

All fixed on latest :)