tailscale/tstest/natlab
Brad Fitzpatrick 82c2c5c597 tstest/natlab/vnet: add more tests
This adds tests for DNS requests, and ignoring IPv6 packets on v4-only
networks.

No behavior changes. But some things are pulled out into functions.

And the mkPacket helpers previously just for tests are moved into
non-test code to be used elsewhere to reduce duplication, doing the
checksum stuff automatically.

Updates #13038

Change-Id: I4dd0b73c75b2b9567b4be3f05a2792999d83f6a3
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2024-08-28 21:39:29 -07:00
..
vnet tstest/natlab/vnet: add more tests 2024-08-28 21:39:29 -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