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.
lokinet/llarp/net
Jason Rhinelander f8d5e106a0 Uncurse SockAddr's sockaddr* operator
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 get rid of use of llarp::IpAddress from hotpaths 4 years ago
address_info.hpp feedback from tom. 4 years ago
exit_info.cpp Removed RPI definition 4 years ago
exit_info.hpp Config file improvements (#1397) 4 years ago
ip.cpp make format 4 years ago
ip.hpp initial v6 exits 4 years ago
ip_address.cpp initial v6 exits 4 years ago
ip_address.hpp initial v6 exits 4 years ago
ip_packet.cpp Large collection of changes to make android work 4 years ago
ip_packet.hpp Replace libuv with uvw & related refactoring 4 years ago
ip_range.cpp * rework exit codepath to allow multiple exits 4 years ago
ip_range.hpp feedback from jason 4 years ago
ip_range_map.hpp Lns exits (#1407) 4 years ago
net.cpp Android & hive fixes 4 years ago
net.h sun fix 5 years ago
net.hpp Large collection of changes to make android work 4 years ago
net_bits.hpp SockAddr fixes and cleanups 4 years ago
net_if.hpp use lokimq workers instead of llarp:🧵:ThreadPool 4 years ago
net_int.cpp Large collection of changes to make android work 4 years ago
net_int.hpp tun code refactor (#1495) 4 years ago
route.cpp get rid of use of llarp::IpAddress from hotpaths 4 years ago
route.hpp initial route poking 4 years ago
sock_addr.cpp Uncurse SockAddr's sockaddr* operator 4 years ago
sock_addr.hpp Large collection of changes to make android work 4 years ago
uint128.hpp Config file improvements (#1397) 4 years ago