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/wgengine
James Tucker c628132b34 wgengine/netstack: do not send packets to netstack after close
Use the local context on Impl to check for shut down state in order to
drop rather than inject packets after close has begun.

Netstack sets endpoint.dispatcher to nil during shutdown. After the
recent adjustment in 920ec69241 we now
wait for netstack to fully shutdown before we release tests. This means
that we may continue to accept packets and attempt to inject them, which
we must prevent in order to avoid nil pointer panic.

References google/gvisor#8765
Fixes #7715

Signed-off-by: James Tucker <james@tailscale.com>
2 years ago
..
bench all: update copyright and license headers 2 years ago
capture wgengine: start logging DISCO frames to pcap stream 2 years ago
filter all: use tstest.Replace more 2 years ago
magicsock go.mod, net/tstun, wgengine/magicsock: update wireguard-go (#7712) 2 years ago
monitor net/sockstats: remove explicit dependency on wgengine/monitor 2 years ago
netlog all: replace logtail.{Public,Private}ID with logid.{Public,Private}ID (#7404) 2 years ago
netstack wgengine/netstack: do not send packets to netstack after close 2 years ago
router version/distro,wgengine/router: raise WSL eth0 MTU when too low 2 years ago
wgcfg all: replace logtail.{Public,Private}ID with logid.{Public,Private}ID (#7404) 2 years ago
wgint all: update copyright and license headers 2 years ago
wglog all: update copyright and license headers 2 years ago
winnet all: update copyright and license headers 2 years ago
mem_ios.go all: update copyright and license headers 2 years ago
pendopen.go all: update copyright and license headers 2 years ago
userspace.go net/tstun: add inital support for NAT v4 2 years ago
userspace_ext_test.go all: update copyright and license headers 2 years ago
userspace_test.go all: update copyright and license headers 2 years ago
watchdog.go wgengine: start logging DISCO frames to pcap stream 2 years ago
watchdog_js.go all: update copyright and license headers 2 years ago
watchdog_test.go all: update copyright and license headers 2 years ago
wgengine.go wgengine: start logging DISCO frames to pcap stream 2 years ago