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/interfaces
Josh Bleecher Snyder 1ebbaaaebb net/interfaces: make syscall and netstat agree when multiple gateways are present
likelyHomeRouterIPDarwinSyscall iterates through the list of routes,
looking for a private gateway, returning the first one it finds.

likelyHomeRouterIPDarwinExec does the same thing,
except that it returns the last one it finds.

As a result, when there are multiple gateways,
TestLikelyHomeRouterIPSyscallExec fails.
(At least, I think that that is what is happening;
I am going inferring from observed behavior.)

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
4 years ago
..
interfaces.go ipn, wgengine, magicsock, tsdns: be quieter and less aggressive when offline 4 years ago
interfaces_darwin.go net/interfaces: make syscall and netstat agree when multiple gateways are present 4 years ago
interfaces_darwin_cgo.go net/interfaces: remove old debug old 4 years ago
interfaces_darwin_cgo_test.go net/interfaces: use syscalls to find private gateway IP address 4 years ago
interfaces_darwin_nocgo.go net/interfaces: use syscalls to find private gateway IP address 4 years ago
interfaces_defaultrouteif_todo.go net/interfaces, net/netns: move default route interface code to interfaces 4 years ago
interfaces_linux.go net/netns, net/interfaces: move defaultRouteInterface, add Android fallback 4 years ago
interfaces_linux_test.go net/netns, net/interfaces: move defaultRouteInterface, add Android fallback 4 years ago
interfaces_test.go net/interfaces: add interfaces.State.String method 4 years ago
interfaces_windows.go net/interfaces: ignore bogus proxy URLs from winhttp [windows] 4 years ago
interfaces_windows_test.go net/interfaces: quiet PAC detection logging in no-PAC case, add benchmark 4 years ago
route.h net/interfaces: use syscalls to find private gateway IP address 4 years ago