tailscale/net/tstun
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
..
fake.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 2021-05-25 13:18:21 -07:00
ifstatus_noop.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
ifstatus_windows.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 2021-05-25 13:18:21 -07:00
linkattrs_linux.go net/tstun: set link speed to SPEED_UNKNOWN 2022-02-27 23:11:35 -08:00
linkattrs_notlinux.go net/tstun: set link speed to SPEED_UNKNOWN 2022-02-27 23:11:35 -08:00
tap_linux.go go.mod: bump netstack, switch to upstream netstack 2022-01-26 11:30:03 -08:00
tap_unsupported.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
tun.go net/tstun: set link speed to SPEED_UNKNOWN 2022-02-27 23:11:35 -08:00
tun_linux.go net/tstun: fix build on arm 2021-08-18 15:28:14 -07:00
tun_macos.go net/tstun: move TUN failure diagnostics to OS-specific files 2021-08-16 11:24:25 -07:00
tun_notwindows.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
tun_windows.go net/tstun: update tun_windows for wintun 0.14 API revisions, update wireguard-go dependency to 82d2aa87aa623cb5143a41c3345da4fb875ad85d 2021-10-12 16:07:46 -06:00
wrap.go wgengine: inject packetbuffers rather than bytes (#4220) 2022-03-21 14:58:43 -07:00
wrap_test.go net/tstun: rate limit "self disco out packet" logging 2021-11-23 12:52:52 -08:00