tailscale/net/packet
James Tucker 9206e766ed net/packet: cleanup IPv4 fragment guards
The first packet fragment guard had an additional guard clause that was
incorrectly comparing a length in bytes to a length in octets, and was
also comparing what should have been an entire IPv4 through transport
header length to a subprotocol payload length. The subprotocol header
size guards were otherwise protecting against short transport headers,
as is the conservative non-first fragment minimum offset size. Add an
explicit disallowing of fragmentation for TSMP for the avoidance of
doubt.

Updates #cleanup
Updates #5727

Signed-off-by: James Tucker <james@tailscale.com>
2025-06-13 11:06:02 -07:00
..
checksum net/packet/checksum: fix v6 NAT 2024-08-03 11:38:00 -07:00
capture.go feature/capture: move packet capture to feature/*, out of iOS + CLI 2025-01-24 17:52:43 -08:00
doc.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
geneve_test.go net/packet: implement Geneve header serialization (#15301) 2025-03-13 13:33:26 -07:00
geneve.go net/packet: implement Geneve header serialization (#15301) 2025-03-13 13:33:26 -07:00
header.go net/packet: cleanup IPv4 fragment guards 2025-06-13 11:06:02 -07:00
icmp4.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
icmp6.go net/packet: allow more ICMP errors 2024-04-02 11:31:49 -07:00
icmp.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_test.go net/packet: cleanup IPv4 fragment guards 2025-06-13 11:06:02 -07:00
packet.go net/packet: cleanup IPv4 fragment guards 2025-06-13 11:06:02 -07:00
tsmp_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
tsmp.go net/packet: cleanup IPv4 fragment guards 2025-06-13 11:06:02 -07: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