-
Notifications
You must be signed in to change notification settings - Fork 534
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
[REGRESSION BUG] Incorrect Mask Endianess for adapter address since 1.30 #525
Comments
Netmask and broadcast address. |
The addresses in the structure returned by
which generates a netmask in host byte order (i.e., if you load the netmask as a 32-bit value, the uppermost 8 bits are the most significant bytes of the address, with the upper bits being 1 and the lower bits being 0). It should do
to convert it from host order to network order. |
Wouldn't be nice If shift in opposite direction instead? |
No, it wouldn't, because that would put it in the opposite byte order from the host byte order, which is not guaranteed to be network byte order. |
Thanks everyone for the report and diagnosis. I'll get a fix in this week and we'll discuss whether to move up the Npcap release schedule for this and a few other issues. |
But npcap is compiled only for little endian architectures so I asume this is in mind. Any way the use that function is an elegant solution. |
Fixed in Npcap 1.55 release. |
Hello, consider the following test
npcap-sdk-1.10\Examples-pcap\iflist
which gives the output in npcap 1.20:(I only show a subset of virtual adapters but it happens to all of them)
Now consider the same output but for npcap 1.30+ (Excaclty 1.50 but tested in all)
Greetings
The text was updated successfully, but these errors were encountered: