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
Brad Fitzpatrick fee74e7ea7 net/interfaces, wgengine/monitor: fix false positives link changes
interfaces.State.String tries to print a concise summary of the
network state, removing any interfaces that don't have any or any
interesting IP addresses. On macOS and iOS, for instance, there are a
ton of misc things.

But the link monitor based its are-there-changes decision on
interfaces.State.Equal, which just used reflect.DeepEqual, including
comparing all the boring interfaces. On macOS, when turning wifi on or off, there
are a ton of misc boring interface changes, resulting in hitting an earlier
check I'd added on suspicion this was happening:

    [unexpected] network state changed, but stringification didn't

This fixes that by instead adding a new
interfaces.State.RemoveUninterestingInterfacesAndAddresses method that
does, uh, that. Then use that in the monitor. So then when Equal is
used later, it's DeepEqualing the already-cleaned version with only
interesting interfaces.

This makes cmd/tailscaled debug --monitor much less noisy.

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
5 years ago
..
dnscache control/controlclient, net/{dnscache,dnsfallback}: add DNS fallback mechanism 5 years ago
dnsfallback net/dnsfallback: fix infinite loop and limit number of candidates 5 years ago
flowtrack net/flowtrack: add Tuple.String method 5 years ago
interfaces net/interfaces, wgengine/monitor: fix false positives link changes 5 years ago
netcheck net/portmapper: add NAT-PMP client, move port mapping service probing 5 years ago
netns net/{interfaces,netns}: add some new tests, missed from prior commit 5 years ago
netstat net/netstat: remove a bit more unsafe 5 years ago
nettest net/nettest: de-flake tests on Windows 5 years ago
packet net/packet: add some more TSMP packet reject reasons and MaybeBroken bit 5 years ago
portmapper net/portmapper: fix typo 5 years ago
socks5 cmd/tailscaled, wgengine: remove --fake, replace with netstack 5 years ago
stun tstest/natlab: use net.ErrClosed instead of a new error 5 years ago
tlsdial net/tlsdial, derp/derphttp: finish DERPNode.CertName validation 6 years ago
tsaddr wgengine/router: add a dummy IPv6 address if needed for default routing. 5 years ago
tshttpproxy net/tshttpproxy: call winhttp calls from a fixed OS thread 5 years ago