tailscale/wgengine/monitor
Josh Bleecher Snyder ad5e04249b wgengine/monitor: ignore adding/removing uninteresting IPs
One of the most common "unexpected" log lines is:

"network state changed, but stringification didn't"

One way that this can occur is if an interesting interface
(non-Tailscale, has interesting IP address)
gains or loses an uninteresting IP address (link local or loopback).

The fact that the interface is interesting is enough for EqualFiltered
to inspect it. The fact that an IP address changed is enough for
EqualFiltered to declare that the interfaces are not equal.

But the State.String method reasonably declines to print any
uninteresting IP addresses. As a result, the network state appears
to have changed, but the stringification did not.

The String method is correct; nothing interesting happened.

This change fixes this by adding an IP address filter to EqualFiltered
in addition to the interface filter. This lets the network monitor
ignore the addition/removal of uninteresting IP addresses.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2021-11-22 16:33:15 -08:00
..
monitor_darwin_test.go wgengine/monitor: add skipped failing test for Darwin route message bug 2021-03-02 09:53:36 -08:00
monitor_darwin.go wgengine/monitor: ignore ipsec link monitor events on iOS/macOS 2021-09-27 20:45:51 -07:00
monitor_freebsd.go wgengine/monitor: on unsupported platforms, use a polling implementation 2021-03-02 21:49:27 -08:00
monitor_linux.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
monitor_polling.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
monitor_test.go wgengine{,/monitor}: restore Engine.LinkChange, add Mon.InjectEvent 2021-03-03 22:09:02 -08:00
monitor_windows.go wgengine/monitor: reduce Windows log spam 2021-11-18 10:57:27 -08:00
monitor.go wgengine/monitor: ignore adding/removing uninteresting IPs 2021-11-22 16:33:15 -08:00
polling.go wgengine/monitor: ignore adding/removing uninteresting IPs 2021-11-22 16:33:15 -08:00