tailscale/wgengine
Mihai Parparita 06aa141632 wgengine/router: avoid unncessary routing configuration changes
The iOS and macOS networking extension API only exposes a single setter
for the entire routing and DNS configuration, and does not appear to
do any kind of diffing or deltas when applying changes. This results
in spurious "network changed" errors in Chrome, even when the
`OneCGNATRoute` flag from df9ce972c7 is
used (because we're setting the same configuration repeatedly).

Since we already keep track of the current routing and DNS configuration
in CallbackRouter, use that to detect if they're actually changing, and
only invoke the platform setter if it's actually necessary.

Updates #3102

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
2022-06-28 16:59:37 -07:00
..
bench types/netmap: use key.NodePublic instead of tailcfg.NodeKey. 2021-11-01 17:07:40 -07:00
filter wgengine/filter: preallocate some hot slices in MatchesFromFilterRules (#4672) 2022-05-13 13:56:53 -07:00
magicsock wasm: exclude code that's not used on iOS for Wasm too 2022-06-06 13:52:52 -07:00
monitor wgengine/monitor: do not ignore changes to pdp_ip* 2022-04-25 12:17:00 -07:00
netstack wgengine/netstack: close ipstack when netstack.Impl is closed 2022-06-28 14:59:29 -07:00
router wgengine/router: avoid unncessary routing configuration changes 2022-06-28 16:59:37 -07:00
wgcfg cmd/cloner,util/codegen: refactor cloner internals to allow reuse 2022-05-06 10:58:10 -07:00
wglog all: use any instead of interface{} 2022-03-17 11:35:09 -07:00
winnet all: gofmt all 2022-04-29 13:06:04 -07:00
mem_ios.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 2021-05-25 13:18:21 -07:00
pendopen.go *: use WireGuard where logged, printed or named 2022-05-04 13:36:05 -07:00
userspace_ext_test.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 2021-05-25 13:18:21 -07:00
userspace_test.go all: gofmt -w -s (simplify) tests 2021-12-15 08:43:41 -08:00
userspace.go net/tstun, wgengine: use correct type for counter metrics 2022-05-12 09:30:50 -07:00
watchdog_js.go wasm: drop pprof dependency 2022-06-07 12:16:16 -07:00
watchdog_test.go all: use any instead of interface{} 2022-03-17 11:35:09 -07:00
watchdog.go wasm: drop pprof dependency 2022-06-07 12:16:16 -07:00
wgengine.go wgengine, net/packet, cmd/tailscale: add ICMP echo 2022-05-03 13:03:45 -07:00