mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
f8d5e106a0
The `const sockaddr*` conversion was returning a pointer to the sockaddr_in6, but with its family set to AF_INET, so the receiving code would have treated interpreting the result as a sockaddr_in pointer -- but it isn't, and trying to get the IPv4 from the mis-reinterpreted sockaddr_in6 fails; this then prevented uvw UDP binding (which uses the sockaddr* operator) from working. This changes it to always leave the family value at the proper value and using the ipv6_is_mapped_ipv4 check to determine when we have (and should return) a pointer to the sockaddr_in rather than the sockaddr_in6. Also fixes toString() to compare the full prefix instead of just bytes 10 and 11. |
4 years ago | |
---|---|---|
.. | ||
address_info.cpp | 4 years ago | |
address_info.hpp | 4 years ago | |
exit_info.cpp | 4 years ago | |
exit_info.hpp | 4 years ago | |
ip.cpp | 4 years ago | |
ip.hpp | 4 years ago | |
ip_address.cpp | 4 years ago | |
ip_address.hpp | 4 years ago | |
ip_packet.cpp | 4 years ago | |
ip_packet.hpp | 4 years ago | |
ip_range.cpp | 4 years ago | |
ip_range.hpp | 4 years ago | |
ip_range_map.hpp | 4 years ago | |
net.cpp | 4 years ago | |
net.h | 5 years ago | |
net.hpp | 4 years ago | |
net_bits.hpp | 4 years ago | |
net_if.hpp | 4 years ago | |
net_int.cpp | 4 years ago | |
net_int.hpp | 4 years ago | |
route.cpp | 4 years ago | |
route.hpp | 4 years ago | |
sock_addr.cpp | 4 years ago | |
sock_addr.hpp | 4 years ago | |
uint128.hpp | 4 years ago |