tailscale/wgengine/netstack
KevinLiang10 8c8750f1b3 ipn/ipnlocal: Support TCP and Web VIP services
This commit intend to provide support for TCP and Web VIP services and also allow user to use Tun
for VIP services if they want to.
The commit includes:
1.Setting TCP intercept function for VIP Services.
2.Update netstack to send packet written from WG to netStack handler for VIP service.
3.Return correct TCP hander for VIP services when netstack acceptTCP.

This commit also includes unit tests for if the local backend setServeConfig would set correct TCP intercept
function and test if a hander gets returned when getting TCPHandlerForDst. The shouldProcessInbound
check is not unit tested since the test result just depends on mocked functions. There should be an integration
test to cover  shouldProcessInbound and if the returned TCP handler actually does what the serveConfig says.

Updates tailscale/corp#24604

Signed-off-by: KevinLiang10 <37811973+KevinLiang10@users.noreply.github.com>
2025-01-22 11:02:26 -05:00
..
gro Fix various linting, vet & static check issues 2025-01-04 15:11:10 -08:00
link_endpoint.go net/tstun,wgengine{/netstack/gro}: refactor and re-enable gVisor GRO for Linux (#13172) 2024-08-20 15:22:19 -07:00
netstack_linux.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
netstack_tcpbuf_default.go wgengine/netstack: increase gVisor's TCP send and receive buffer sizes (#12994) 2024-08-02 15:50:47 -07:00
netstack_tcpbuf_ios.go wgengine/netstack: increase gVisor's TCP send and receive buffer sizes (#12994) 2024-08-02 15:50:47 -07:00
netstack_test.go ipn/{ipnlocal,localapi}, wgengine/netstack: call (*LocalBackend).Shutdown when tests that create them complete 2024-11-22 09:46:11 -06:00
netstack_userping_apple.go various: fix lint warnings 2024-06-06 17:06:54 -04:00
netstack_userping_test.go wgengine/netstack: check userspace ping success on Windows 2024-10-03 09:07:39 -07:00
netstack_userping.go wgengine/netstack: check userspace ping success on Windows 2024-10-03 09:07:39 -07:00
netstack.go ipn/ipnlocal: Support TCP and Web VIP services 2025-01-22 11:02:26 -05:00