tailscale/wgengine/router
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
..
callback.go wgengine/router: avoid unncessary routing configuration changes 2022-06-28 16:59:37 -07:00
ifconfig_windows_test.go wgengine/router: windows: set SkipAsSource on IPv6 LL addresses 2022-06-22 15:26:40 -07:00
ifconfig_windows.go wgengine/router: windows: set SkipAsSource on IPv6 LL addresses 2022-06-22 15:26:40 -07:00
router_darwin.go wgengine/router: take a link monitor 2021-07-20 13:43:40 -07:00
router_default.go all: fix some js/wasm compilation issues 2021-10-20 10:06:16 -07:00
router_fake.go wgengine: pass in an explicit router.Router, rather than a generator. 2021-03-26 22:01:55 -07:00
router_freebsd.go wgengine/router: take a link monitor 2021-07-20 13:43:40 -07:00
router_linux_test.go wgengine/router: demote TestDebugListRules fail to skip 2021-11-22 11:04:45 -08:00
router_linux.go Revert "wgengine/router,util/kmod: load & log xt_mark" 2022-04-21 09:53:23 -07:00
router_openbsd.go wgengine/router: take a link monitor 2021-07-20 13:43:40 -07:00
router_test.go wgengine/router: avoid unncessary routing configuration changes 2022-06-28 16:59:37 -07:00
router_userspace_bsd.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
router_windows.go all: use any instead of interface{} 2022-03-17 11:35:09 -07:00
router.go wgengine/router: avoid unncessary routing configuration changes 2022-06-28 16:59:37 -07:00
runner.go wgengine/router: ignore Linux ip route error adding dup route 2021-10-14 14:00:45 -07:00