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 7df6f8736a wgengine/netstack: only add addresses to correct protocols
Prior to an earlier netstack bump this code used a string conversion
path to cover multiple cases of behavior seemingly checking for
unspecified addresses, adding unspecified addresses to v6. The behavior
is now crashy in netstack, as it is enforcing address length in various
areas of the API, one in particular being address removal.

As netstack is now protocol specific, we must not create invalid
protocol addresses - an address is v4 or v6, and the address value
contained inside must match. If a control path attempts to do something
otherwise it is now logged and skipped rather than incorrect addressing
being added.

Fixes tailscale/corp#15377

Signed-off-by: James Tucker <james@tailscale.com>
1 year ago
..
bench tailcfg, all: use []netip.AddrPort instead of []string for Endpoints 1 year ago
capture various: add golangci-lint, fix issues (#7905) 2 years ago
filter wgengine/filter: use slices.Contains in another place 1 year ago
magicsock wgengine/magicsock: simplify tryEnableUDPOffload() (#9872) 1 year ago
netlog wgengine/netlog: fix nil pointer dereference in logtail (#8598) 1 year ago
netstack wgengine/netstack: only add addresses to correct protocols 1 year ago
router cmd/containerboot: use linuxfw.NetfilterRunner 1 year ago
wgcfg cmd/cloner,*: revert: optimize nillable slice cloner 1 year 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 types/netmap, all: use read-only tailcfg.NodeView in NetworkMap 1 year ago
userspace.go net/dns: retry forwarder requests over TCP 1 year ago
userspace_ext_test.go tsd: add package with System type to unify subsystem init, discovery 2 years ago
userspace_test.go control,tailcfg,wgengine/magicsock: add nodeAttr to enable/disable peer MTU 1 year ago
watchdog.go wgengine, proxymap: split out port mapping from Engine to new type 1 year 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, proxymap: split out port mapping from Engine to new type 1 year ago