tailscale/net/interfaces
Brad Fitzpatrick e78ac523da net/interfaces: fix default route lookup on Windows
It wasn't using the right metric. Apparently you're supposed to sum the route
metric and interface metric. Whoops.

While here, optimize a few little things too, not that this code
should be too hot.

Fixes #2707 (at least; probably dups but I'm failing to find)

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
(cherry picked from commit 3606e68721)
2021-08-26 14:51:47 -07:00
..
interfaces_darwin_test.go net/{dnscache,interfaces}: use netaddr.IP.IsPrivate, delete copied code 2021-07-26 20:30:28 -07:00
interfaces_darwin.go net/interface: remove darwin fetchRoutingTable workaround 2021-05-10 08:24:11 -07:00
interfaces_default_route_test.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
interfaces_defaultrouteif_todo.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
interfaces_linux_test.go net/interface: add AWS App Runner /proc/net/route test 2021-07-14 10:01:14 -07:00
interfaces_linux.go net/{dnscache,interfaces}: use netaddr.IP.IsPrivate, delete copied code 2021-07-26 20:30:28 -07:00
interfaces_test.go net/interfaces: explicitly check netaddr.IP.Is6 in isUsableV6 2021-07-30 19:56:11 -07:00
interfaces_windows_test.go net/interfaces: quiet PAC detection logging in no-PAC case, add benchmark 2020-10-01 22:02:39 -07:00
interfaces_windows.go net/interfaces: fix default route lookup on Windows 2021-08-26 14:51:47 -07:00
interfaces.go net/interfaces: explicitly check netaddr.IP.Is6 in isUsableV6 2021-07-30 19:56:11 -07:00
route.h net/interfaces: use syscalls to find private gateway IP address 2020-08-04 15:45:56 -07:00