tailscale/net
James Tucker 445c04c938
wgengine: inject packetbuffers rather than bytes (#4220)
Plumb the outbound injection path to allow passing netstack
PacketBuffers down to the tun Read, where they are decref'd to enable
buffer re-use. This removes one packet alloc & copy, and reduces GC
pressure by pooling outbound injected packets.

Fixes #2741
Signed-off-by: James Tucker <james@tailscale.com>
2022-03-21 14:58:43 -07:00
..
dns all: use strings.Cut even more 2022-03-19 13:02:38 -07:00
dnscache all: use any instead of interface{} 2022-03-17 11:35:09 -07:00
dnsfallback .github/workflows: work around golang/go#51629 2022-03-17 17:22:17 -07:00
flowtrack all: use any instead of interface{} 2022-03-17 11:35:09 -07:00
interfaces net/interfaces: add FreeBSD default route lookup (portmapping, etc) 2022-03-08 13:02:02 -08:00
netcheck all: use any instead of interface{} 2022-03-17 11:35:09 -07:00
neterror net/{neterror,dns/resolver}: move PacketWasTruncated to neterror from DNS code 2022-01-03 14:03:30 -08:00
netknob all: disable TCP keep-alives on iOS/Android 2021-09-28 12:03:18 -07:00
netns net/netns: remove a useless probe of the "ip" command 2022-01-11 17:47:06 -08:00
netstat all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
nettest net/nettest: deflake TestPipeTimeout 2021-11-30 12:21:59 -08:00
netutil net/netutil: fix regression where peerapi would get closed after 1st req 2022-02-22 13:52:18 -08:00
packet wgengine/netstack: clear TCP ECN bits before giving to gvisor 2022-01-19 20:09:24 -08:00
portmapper all: use any instead of interface{} 2022-03-17 11:35:09 -07:00
proxymux net/proxymux: add a listener mux that can run SOCKS and HTTP on a single socket. 2021-11-29 16:49:48 -08:00
socks5 all: use any instead of interface{} 2022-03-17 11:35:09 -07:00
speedtest all: fix spelling mistakes 2021-10-12 21:23:14 -07:00
stun all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
tlsdial envknob: add new package for all the strconv.ParseBool(os.Getenv(..)) 2022-01-24 11:51:23 -08:00
tsaddr net/tsaddr: add func ContainsExitRoutes 2022-03-04 08:56:06 -08:00
tsdial net/dnscache, net/tsdial: add DNS caching to tsdial UserDial 2021-12-09 11:34:21 -08:00
tshttpproxy net/tshttpproxy: ensure we pass the correct flags to WinHttpOpen on Win7 and Win8.0 2022-03-18 11:05:02 -06:00
tstun wgengine: inject packetbuffers rather than bytes (#4220) 2022-03-21 14:58:43 -07:00