tailscale/net/packet
Maisem Ali f205efcf18 net/packet/checksum: fix v6 NAT
We were copying 12 out of the 16 bytes which meant that
the 1:1 NAT required would only work if the last 4 bytes
happened to match between the new and old address, something
that our tests accidentally had. Fix it by copying the full
16 bytes and make the tests also verify the addr and use rand
addresses.

Updates #9511

Signed-off-by: Maisem Ali <maisem@tailscale.com>
2024-08-03 11:38:00 -07:00
..
checksum net/packet/checksum: fix v6 NAT 2024-08-03 11:38:00 -07:00
doc.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
header.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
icmp.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
icmp4.go net/packet: allow more ICMP errors 2024-04-02 11:31:49 -07:00
icmp6.go net/packet: allow more ICMP errors 2024-04-02 11:31:49 -07:00
icmp6_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ip4.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ip6.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
packet.go net/packet: allow more ICMP errors 2024-04-02 11:31:49 -07:00
packet_test.go all: use Go 1.22 range-over-int 2024-04-16 15:32:38 -07:00
tsmp.go net/flowtrack: optimize Tuple type for use as map key 2024-06-18 21:31:48 -07:00
tsmp_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
udp4.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
udp6.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00