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
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
3 years ago
..
connstats net/connstats: fix ticker in NewStatistics (#7225) 3 years ago
dns sockstats: instrument networking code paths 3 years ago
dnscache tstest: add method to Replace values for tests 3 years ago
dnsfallback util/slicesx: add package for generic slice functions, use 3 years ago
flowtrack all: update copyright and license headers 3 years ago
interfaces net/interfaces: add better test for LikelyHomeRouterIP 3 years ago
memnet net/memnet: rename from net/nettest 3 years ago
netaddr all: update copyright and license headers 3 years ago
netcheck tstest: add method to Replace values for tests 3 years ago
neterror all: update copyright and license headers 3 years ago
netknob all: update copyright and license headers 3 years ago
netns net/interfaces, net/netns: add node attributes to control default interface getting and binding 3 years ago
netstat net/{netns,netstat}: use new x/sys/cpu.IsBigEndian 3 years ago
netutil net/netutil: only check Linux sysctls w/ procfs, assume absent means false 3 years ago
packet all: update copyright and license headers 3 years ago
ping all: update copyright and license headers 3 years ago
portmapper cmd/tailscale, cmd/tailscaled: move portmapper debugging into tailscale CLI 3 years ago
proxymux all: update copyright and license headers 3 years ago
routetable net/routetable: include unknown flags in the routetable doctor output 3 years ago
socks5 all: update copyright and license headers 3 years ago
sockstats net/sockstats: remove explicit dependency on wgengine/monitor 3 years ago
speedtest all: update copyright and license headers 3 years ago
stun all: use Go 1.20's bytes.Clone 3 years ago
tlsdial health, net/tlsdial: add healthcheck for self-signed cert 3 years ago
tsaddr all: update copyright and license headers 3 years ago
tsdial all: update copyright and license headers 3 years ago
tshttpproxy net/tshttpproxy: more directly use Transport proxy CONNECT hooks 3 years ago
tstun wgengine: start logging DISCO frames to pcap stream 3 years ago
wsconn all: update copyright and license headers 3 years ago