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.
Now callers (wgengine/monitor) don't need to mutate the state to remove boring interfaces before calling State.Equal. Instead, the methods to remove boring interfaces from the State are removed, as is the reflect-using Equal method itself, and in their place is a new EqualFiltered method that takes a func predicate to match interfaces to compare. And then the FilterInteresting predicate is added for use with EqualFiltered to do the job that that wgengine/monitor previously wanted. Now wgengine/monitor can keep the full interface state around, including the "boring" interfaces, which we'll need for peerapi on macOS/iOS to bind to the interface index of the utunN device. Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> |
5 years ago | |
|---|---|---|
| .. | ||
| filter | 5 years ago | |
| magicsock | 5 years ago | |
| monitor | 5 years ago | |
| netstack | 5 years ago | |
| router | 5 years ago | |
| tstun | 5 years ago | |
| wgcfg | 5 years ago | |
| wglog | 5 years ago | |
| winnet | 5 years ago | |
| ifstatus_noop.go | 5 years ago | |
| ifstatus_windows.go | 5 years ago | |
| pendopen.go | 5 years ago | |
| userspace.go | 5 years ago | |
| userspace_test.go | 5 years ago | |
| watchdog.go | 5 years ago | |
| watchdog_test.go | 5 years ago | |
| wgengine.go | 5 years ago | |