You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jonathan Nobels
fa1303d632
net/netmon: swap to swift-derived defaultRoute on macos ( #11936 )
...
Updates tailscale/corp#18960
iOS uses Apple's NetworkMonitor to track the default interface and
there's no reason we shouldn't also use this on macOS, for the same
reasons noted in the comments for why this change was made on iOS.
This eliminates the need to load and parse the routing table when
querying the defaultRouter() in almost all cases.
A slight modification here (on both platforms) to fallback to the default
BSD logic in the unhappy-path rather than making assumptions that
may not hold. If netmon is eventually parsing AF_ROUTE and able
to give a consistently correct answer for the default interface index,
we can fall back to that and eliminate the Swift dependency.
Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
2 years ago
..
art
all: use Go 1.22 range-over-int
2 years ago
connstats
all: use Go 1.22 range-over-int
2 years ago
dns
net/netns, net/dns/resolver, etc: make netmon required in most places
2 years ago
dnscache
net/netns, net/dns/resolver, etc: make netmon required in most places
2 years ago
dnsfallback
tsd, ipnlocal, etc: add tsd.System.HealthTracker, start some plumbing
2 years ago
flowtrack
all: update copyright and license headers
3 years ago
ktimeout
net/ktimeout: add a package to set TCP user timeout
2 years ago
memnet
net/memnet: export the network name ( #9111 )
3 years ago
netaddr
all: update copyright and license headers
3 years ago
netcheck
net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon
2 years ago
neterror
net/neterror, wgengine/magicsock: use UDP GSO and GRO on Linux ( #7791 )
3 years ago
netkernelconf
client/tailscale,ipn/{ipnlocal,localapi}: check UDP GRO config ( #10071 )
2 years ago
netknob
all: update copyright and license headers
3 years ago
netmon
net/netmon: swap to swift-derived defaultRoute on macos ( #11936 )
2 years ago
netns
net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon
2 years ago
netstat
net/{netns,netstat}: use new x/sys/cpu.IsBigEndian
3 years ago
netutil
net/netmon, add: add netmon.State type alias of interfaces.State
2 years ago
packet
all: use Go 1.22 range-over-int
2 years ago
ping
net/ping: fix ICMP echo code field to 0
3 years ago
portmapper
net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon
2 years ago
proxymux
all: cleanup unused code, part 1 ( #10661 )
2 years ago
routetable
net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon
2 years ago
socks5
net/socks5: add password auth support
3 years ago
sockstats
net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon
2 years ago
speedtest
all: update copyright and license headers
3 years ago
stun
wgengine/magicsock, types/nettype, etc: finish ReadFromUDPAddrPort netip migration
3 years ago
stunserver
all: use Go 1.22 range-over-int
2 years ago
tcpinfo
all: use Go 1.22 range-over-int
2 years ago
tlsdial
tsd, ipnlocal, etc: add tsd.System.HealthTracker, start some plumbing
2 years ago
tsaddr
all: use Go 1.22 range-over-int
2 years ago
tsdial
net/netns, net/dns/resolver, etc: make netmon required in most places
2 years ago
tshttpproxy
all: use Go 1.22 range-over-int
2 years ago
tstun
net/tstun: implement env var for disabling UDP GRO on Linux ( #11924 )
2 years ago
wsconn
net/wsconn: accept a remote addr string and plumb it through
3 years ago