You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/net
Jonathan Nobels 643e91f2eb
net/netmon: move TailscaleInterfaceIndex out of netmon.State (#18428)
fixes tailscale/tailscale#18418

Both Serve and PeerAPI broke when we moved the TailscaleInterfaceName
into State, which is updated asynchronously and may not be
available when we configure the listeners.

This extracts the explicit interface name property from netmon.State
and adds as a static struct with getters that have proper error
handling.

The bug is only found in sandboxed Darwin clients, where we
need to know the Tailscale interface details in order to set up the
listeners correctly (they must bind to our interface explicitly to escape
the network sandboxing that is applied by NECP).

Currently set only sandboxed macOS and Plan9 set this but it will
also be useful on Windows to simplify interface filtering in netns.

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
1 day ago
..
ace feature/ace: make ACE modular 4 months ago
art all: rename variables with lowercase-l/uppercase-I 2 months ago
bakedroots tstest/tlstest: simplify, don't even bake in any keys 7 months ago
batching net/batching: fix import formatting 2 months ago
captivedetection syncs: add Mutex/RWMutex alias/wrappers for future mutex debugging 2 months ago
connectproxy net/tlsdial: fix TLS cert validation of HTTPS proxies 7 months ago
dns net/dns/resolver: log source IP of forwarded queries 1 month ago
dnscache syncs: add Mutex/RWMutex alias/wrappers for future mutex debugging 2 months ago
dnsfallback feature, net/tshttpproxy: pull out support for using proxies as a feature 4 months ago
flowtrack net/flowtrack: fix, test String method 2 years ago
ipset all: use iterators over slice views more 1 year ago
ktimeout all: rename variables with lowercase-l/uppercase-I 2 months ago
memnet all: rename variables with lowercase-l/uppercase-I 2 months ago
netaddr all: rename variables with lowercase-l/uppercase-I 2 months ago
netcheck all: rename variables with lowercase-l/uppercase-I 2 months ago
neterror net/neterror, wgengine/magicsock: use UDP GSO and GRO on Linux (#7791) 3 years ago
netkernelconf all: remove non-applicable "linux" deps on Android 8 months ago
netknob all: update copyright and license headers 3 years ago
netmon net/netmon: move TailscaleInterfaceIndex out of netmon.State (#18428) 1 day ago
netns net/netns: remove spammy logs for interface binding caps 2 months ago
netstat all: add test for package comments, fix, add comments as needed 2 years ago
netutil syncs: add Mutex/RWMutex alias/wrappers for future mutex debugging 2 months ago
netx net/{netx,memnet},all: add netx.DialFunc, move memnet Network impl 9 months ago
packet net/{packet,tstun},wgengine: update disco key when receiving via TSMP (#18158) 1 month ago
ping syncs: add Mutex/RWMutex alias/wrappers for future mutex debugging 2 months ago
portmapper net/portmapper, go.mod: unfork our goupnp dependency 1 week ago
proxymux all: cleanup unused code, part 1 (#10661) 2 years ago
routetable net/routetable: don't try to fetch the route table on android 10 months ago
sockopts wgengine/magicsock,net/sockopts: export Windows ICMP suppression logic (#16917) 5 months ago
socks5 all: rename variables with lowercase-l/uppercase-I 2 months ago
sockstats net/netmon, wgengine/userspace: purge ChangeDelta.Major and address TODOs (#17823) 1 month ago
speedtest all: rename variables with lowercase-l/uppercase-I 2 months ago
stun ci: enable checklocks workflow for specific packages 2 years ago
stunserver metrics: add a NewSet and Set.NewLabelMap helpers 4 days ago
tcpinfo all: use Go 1.22 range-over-int 2 years ago
tlsdial feature/featuretags, all: add build features, use existing ones in more places 4 months ago
tsaddr net/tsaddr: include test input in test failure output 1 year ago
tsdial net/netmon, wgengine/userspace: purge ChangeDelta.Major and address TODOs (#17823) 1 month ago
tshttpproxy go.mod: bump golang.org/x/crypto (#17907) 2 months ago
tstun net/{packet,tstun},wgengine: update disco key when receiving via TSMP (#18158) 1 month ago
udprelay net/udprelay: apply netns Control func to server socket(s) 1 week ago
wsconn syncs: add Mutex/RWMutex alias/wrappers for future mutex debugging 2 months ago