tailscale/net
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
..
connstats net/connstats: fix ticker in NewStatistics (#7225) 2023-02-09 01:24:52 -08:00
dns sockstats: instrument networking code paths 2023-03-01 12:09:31 -08:00
dnscache tstest: add method to Replace values for tests 2023-03-03 17:02:33 -08:00
dnsfallback util/slicesx: add package for generic slice functions, use 2023-03-03 16:25:48 -05:00
flowtrack all: update copyright and license headers 2023-01-27 15:36:29 -08:00
interfaces net/interfaces: add better test for LikelyHomeRouterIP 2023-03-03 20:52:57 -05:00
memnet net/memnet: rename from net/nettest 2023-01-30 13:03:32 -08:00
netaddr all: update copyright and license headers 2023-01-27 15:36:29 -08:00
netcheck tstest: add method to Replace values for tests 2023-03-03 17:02:33 -08:00
neterror all: update copyright and license headers 2023-01-27 15:36:29 -08:00
netknob all: update copyright and license headers 2023-01-27 15:36:29 -08:00
netns net/interfaces, net/netns: add node attributes to control default interface getting and binding 2023-02-08 13:15:10 -08:00
netstat net/{netns,netstat}: use new x/sys/cpu.IsBigEndian 2023-02-02 07:41:49 -08:00
netutil net/netutil: only check Linux sysctls w/ procfs, assume absent means false 2023-02-08 12:23:36 -08:00
packet all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ping all: update copyright and license headers 2023-01-27 15:36:29 -08:00
portmapper cmd/tailscale, cmd/tailscaled: move portmapper debugging into tailscale CLI 2023-03-03 14:21:38 -05:00
proxymux all: update copyright and license headers 2023-01-27 15:36:29 -08:00
routetable net/routetable: include unknown flags in the routetable doctor output 2023-02-10 15:54:31 -08:00
socks5 all: update copyright and license headers 2023-01-27 15:36:29 -08:00
sockstats net/sockstats: remove explicit dependency on wgengine/monitor 2023-03-03 08:37:14 -08:00
speedtest all: update copyright and license headers 2023-01-27 15:36:29 -08:00
stun all: use Go 1.20's bytes.Clone 2023-02-01 17:39:18 -08:00
tlsdial health, net/tlsdial: add healthcheck for self-signed cert 2023-02-01 23:17:41 -05:00
tsaddr all: update copyright and license headers 2023-01-27 15:36:29 -08:00
tsdial all: update copyright and license headers 2023-01-27 15:36:29 -08:00
tshttpproxy net/tshttpproxy: more directly use Transport proxy CONNECT hooks 2023-02-03 16:51:50 -08:00
tstun wgengine: start logging DISCO frames to pcap stream 2023-02-10 11:22:34 -10:00
wsconn all: update copyright and license headers 2023-01-27 15:36:29 -08:00