net/tstun: support ts_omit_netstack

Updates #17283

Change-Id: I1134bb15b3e39a3fa26c0621512aae9181de2210
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2025-09-26 11:15:05 -07:00
committed by Brad Fitzpatrick
parent 0b994ef2fe
commit 09a33b9262
4 changed files with 119 additions and 19 deletions
+22
View File
@@ -0,0 +1,22 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !ts_omit_netstack
package tstun
import (
"gvisor.dev/gvisor/pkg/tcpip/stack"
)
type (
netstack_PacketBuffer = stack.PacketBuffer
netstack_GSO = stack.GSO
)
const (
netstack_GSONone = stack.GSONone
netstack_GSOTCPv4 = stack.GSOTCPv4
netstack_GSOTCPv6 = stack.GSOTCPv6
netstack_GSOGvisor = stack.GSOGvisor
)