tailscale/tstest/natlab
Brad Fitzpatrick 3d9e3a17fa tstest/natlab/vnet: move some boilerplate to mkPacket helper
No need to make callers specify the redundant IP version or
TTL/HopLimit or EthernetType in the common case. The mkPacket helper
can set those when unset.

And use the mkIPLayer in another place, simplifying some code.

And rename mkPacketErr to just mkPacket, then move mkPacket to
test-only code, as mustPacket.

Updates #13038

Change-Id: Ic216e44dda760c69ab9bfc509370040874a47d30
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2024-08-30 20:23:30 -07:00
..
vnet tstest/natlab/vnet: move some boilerplate to mkPacket helper 2024-08-30 20:23:30 -07:00
firewall.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
nat.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
natlab_test.go all: use Go 1.22 range-over-int 2024-04-16 15:32:38 -07:00
natlab.go all: use math/rand/v2 more 2024-06-05 15:24:04 -07:00