messense / if-addrs

Retrieve IP addresses for all interfaces. POSIX & Windows
BSD 3-Clause "New" or "Revised" License
22 stars 15 forks source link

Windows get_if_addrs() wrong netmask bit #20

Closed stormshield-pj50 closed 1 year ago

stormshield-pj50 commented 1 year ago

Wrong netmask bit computation in Windows get_if_addrs() implementation. Bit shift index is not right as it not starts with byte most significant bit.