You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Alex Chan
5c24f0ed80
wgengine/magicsock: send a valid payload in TestNetworkDownSendErrors
...
This test ostensibly checks whether we record an error metric if a packet
is dropped because the network is down, but the network connectivity is
irrelevant -- the send error is actually because the arguments to Send()
are invalid:
RebindingUDPConn.WriteWireGuardBatchTo:
[unexpected] offset (0) != Geneve header length (8)
This patch changes the test so we try to send a valid packet, and we
verify this by sending it once before taking the network down. The new
error is:
magicsock: network down
which is what we're trying to test.
We then test sending an invalid payload as a separate test case.
Updates tailscale/corp#22075
Signed-off-by: Alex Chan <alexc@tailscale.com>
8 months ago
..
blockforever_conn.go
wgengine/magicsock: improve don't fragment bit set/get support
3 years ago
cloudinfo.go
wgengine/magicsock: use cloud metadata to get public IPs
2 years ago
cloudinfo_nocloud.go
wgengine/magicsock: use cloud metadata to get public IPs
2 years ago
cloudinfo_test.go
wgengine/magicsock: use cloud metadata to get public IPs
2 years ago
debughttp.go
net/{batching,packet},wgengine/magicsock: export batchingConn ( #16848 )
9 months ago
debugknobs.go
wgengine/magicsock: add TS_DEBUG_NEVER_DIRECT_UDP debug knob ( #17094 )
8 months ago
debugknobs_stubs.go
wgengine/magicsock: add TS_DEBUG_NEVER_DIRECT_UDP debug knob ( #17094 )
8 months ago
derp.go
wgengine/magicsock: drop DERP queue from head rather than tail
8 months ago
derp_test.go
net/netcheck,wgengine/magicsock: align DERP frame receive time heuristics
2 years ago
discopingpurpose_string.go
wgengine/magicsock: implement probing of UDP path lifetime ( #10844 )
2 years ago
endpoint.go
wgengine/magicsock: add TS_DEBUG_NEVER_DIRECT_UDP debug knob ( #17094 )
8 months ago
endpoint_default.go
all: adjust some build tags for plan9
3 years ago
endpoint_stub.go
all: adjust some build tags for plan9
3 years ago
endpoint_test.go
net/{batching,packet},wgengine/magicsock: export batchingConn ( #16848 )
9 months ago
endpoint_tracker.go
wgengine/magicsock: only cache N most recent endpoints per-Addr
3 years ago
endpoint_tracker_test.go
all: use Go 1.22 range-over-int
2 years ago
magicsock.go
wgengine/magicsock: don't add DERP addrs to endpointState ( #17147 )
8 months ago
magicsock_default.go
net/sockopts,wgengine/magicsock: export socket buffer sizing logic ( #16909 )
9 months ago
magicsock_linux.go
net/sockopts,wgengine/magicsock: export socket buffer sizing logic ( #16909 )
9 months ago
magicsock_linux_test.go
wgengine/magicsock: fix bpf fragmentation jump offsets ( #16204 )
11 months ago
magicsock_notplan9.go
wgengine/magicsock: refactor maybeRebindOnError
1 year ago
magicsock_plan9.go
wgengine/magicsock: refactor maybeRebindOnError
1 year ago
magicsock_test.go
wgengine/magicsock: send a valid payload in TestNetworkDownSendErrors
8 months ago
peermap.go
net/{batching,packet},wgengine/magicsock: export batchingConn ( #16848 )
9 months ago
peermap_test.go
net/{batching,packet},wgengine/magicsock: export batchingConn ( #16848 )
9 months ago
peermtu.go
magicsock: mute noisy expected peer mtu related error ( #10870 )
2 years ago
peermtu_darwin.go
wgengine/magicsock: improve don't fragment bit set/get support
3 years ago
peermtu_linux.go
wgengine/magicsock: improve don't fragment bit set/get support
3 years ago
peermtu_stubs.go
magicsock: mute noisy expected peer mtu related error ( #10870 )
2 years ago
peermtu_unix.go
wgengine/magicsock: replace CanPMTUD() with ShouldPMTUD()
3 years ago
rebinding_conn.go
net/{batching,packet},wgengine/magicsock: export batchingConn ( #16848 )
9 months ago
relaymanager.go
wgengine/magicsock: add relayManager event logs ( #17091 )
8 months ago
relaymanager_test.go
wgengine/magicsock,all: allocate peer relay over disco instead of PeerAPI ( #16603 )
10 months ago