summaryrefslogtreecommitdiffhomepage
path: root/wgengine/netstack/netstack.go
diff options
context:
space:
mode:
Diffstat (limited to 'wgengine/netstack/netstack.go')
-rw-r--r--wgengine/netstack/netstack.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/wgengine/netstack/netstack.go b/wgengine/netstack/netstack.go
index d029b6c19..d35412d33 100644
--- a/wgengine/netstack/netstack.go
+++ b/wgengine/netstack/netstack.go
@@ -19,6 +19,7 @@ import (
"sync/atomic"
"time"
+ "github.com/gaissmai/bart"
"github.com/tailscale/wireguard-go/conn"
"gvisor.dev/gvisor/pkg/refs"
"gvisor.dev/gvisor/pkg/tcpip"
@@ -173,6 +174,10 @@ type Impl struct {
// It can only be set before calling Start.
ProcessSubnets bool
+ // ServiceVIPs is the description of service VIPs that should be handled.
+ // It can only be set before calling Start and is immutable after.
+ ServiceVIPs bart.Table[map[int]netip.AddrPort]
+
ipstack *stack.Stack
linkEP *linkEndpoint
tundev *tstun.Wrapper