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/vnet
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>
3 months ago
..
conf.go tstest/natlab/vnet: add syslog tests 3 months ago
conf_test.go tstest/natlab/vnet: standardize on 1-based naming of nodes, networks, MACs 3 months ago
easyaf.go tstest/natlab/vnet: add easyAF 4 months ago
nat.go tstest/natlab/vnet: add easyAF 4 months ago
pcap.go tstest/natlab/vnet: flush and sync pcap file after every packet 3 months ago
vip.go tstest/natlab/vnet: add start of IPv6 support 3 months ago
vnet.go tstest/natlab/vnet: move some boilerplate to mkPacket helper 3 months ago
vnet_test.go tstest/natlab/vnet: move some boilerplate to mkPacket helper 3 months ago