tailscale/net/interfaces
Andrew Dunham 2d3ae485e3 net/interfaces: add better test for LikelyHomeRouterIP
Return a mock set of interfaces and a mock gateway during this test and
verify that LikelyHomeRouterIP returns the outcome we expect. Also
verify that we return an error if there are no IPv4 addresses available.

Follow-up to #7447

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: I8f06989e7f1f0bebd108861cbff17b820ed2e6e4
2023-03-03 20:52:57 -05:00
..
interfaces.go net/interfaces: always return an IPv4 LikelyHomeRouterIP 2023-03-03 18:36:07 -05:00
interfaces_bsd.go net/interfaces: redo how we get the default interface on macOS and iOS 2023-02-10 16:23:37 -08:00
interfaces_darwin.go ipn/ipnlocal: add delegated interface information to /interfaces PeerAPI handler 2023-02-27 09:39:49 -08:00
interfaces_darwin_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
interfaces_default_route_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
interfaces_defaultrouteif_todo.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
interfaces_freebsd.go net/interfaces: redo how we get the default interface on macOS and iOS 2023-02-10 16:23:37 -08:00
interfaces_linux.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
interfaces_linux_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
interfaces_test.go net/interfaces: add better test for LikelyHomeRouterIP 2023-03-03 20:52:57 -05:00
interfaces_windows.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
interfaces_windows_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00