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.
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>
3 weeks ago
..
vnet tstest/natlab/vnet: add more tests 3 weeks ago
firewall.go all: update copyright and license headers 2 years ago
nat.go all: update copyright and license headers 2 years ago
natlab.go all: use math/rand/v2 more 4 months ago
natlab_test.go all: use Go 1.22 range-over-int 5 months ago