445c04c938
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> |
||
---|---|---|
.. | ||
fake.go | ||
ifstatus_noop.go | ||
ifstatus_windows.go | ||
linkattrs_linux.go | ||
linkattrs_notlinux.go | ||
tap_linux.go | ||
tap_unsupported.go | ||
tun.go | ||
tun_linux.go | ||
tun_macos.go | ||
tun_notwindows.go | ||
tun_windows.go | ||
wrap.go | ||
wrap_test.go |