tailscale/wgengine/magicsock
James Tucker de8e55fda6 net/netcheck,wgengine/magicsock: reduce coupling between netcheck and magicsock
Netcheck no longer performs I/O itself, instead it makes requests via
SendPacket and expects users to route reply traffic to
ReceiveSTUNPacket.

Netcheck gains a Standalone function that stands up sockets and
goroutines to implement I/O when used in a standalone fashion.

Magicsock now unconditionally routes STUN traffic to the netcheck.Client
that it hosts, and plumbs the send packet sink.

The CLI is updated to make use of the Standalone mode.

Fixes #8723

Signed-off-by: James Tucker <james@tailscale.com>
2023-08-11 10:08:21 -07:00
..
batching_conn.go wgengine/magicsock: factor out more separable parts 2023-07-26 14:39:43 -07:00
blockforever_conn.go wgengine/magicsock: factor out more separable parts 2023-07-26 14:39:43 -07:00
debughttp.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
debugknobs_stubs.go magicsock: set the don't fragment sockopt (#8715) 2023-08-11 09:34:51 +01:00
debugknobs.go magicsock: set the don't fragment sockopt (#8715) 2023-08-11 09:34:51 +01:00
derp.go cmd/tailscale: add debug commands to break connections 2023-08-11 06:37:26 -07:00
discopingpurpose_string.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
dontfrag_darwin.go magicsock: set the don't fragment sockopt (#8715) 2023-08-11 09:34:51 +01:00
dontfrag_default.go magicsock: set the don't fragment sockopt (#8715) 2023-08-11 09:34:51 +01:00
dontfrag_linux.go magicsock: set the don't fragment sockopt (#8715) 2023-08-11 09:34:51 +01:00
endpoint.go wgengine,ipn,cmd/tailscale: add size option to ping (#8739) 2023-08-08 13:11:28 +01:00
magicsock_default.go wgengine/magicsock: delete unused stuff 2023-07-26 11:44:41 -07:00
magicsock_linux.go wgengine/magicsock: clarify a log message is a warning, not an error 2023-06-22 08:16:41 -07:00
magicsock_test.go all: update exp/slices and fix call sites 2023-07-28 13:11:53 -07:00
magicsock_unix_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
magicsock.go net/netcheck,wgengine/magicsock: reduce coupling between netcheck and magicsock 2023-08-11 10:08:21 -07:00
peermap.go wgengine/magicsock: factor out peerMap into separate file 2023-07-26 13:39:57 -07:00
rebinding_conn.go wgengine/magicsock: factor out more separable parts 2023-07-26 14:39:43 -07:00