David Anderson
9ccbcda612
wgengine/router: rename config.Settings to config.Config, make pointer.
...
Signed-off-by: David Anderson <danderson@tailscale.com>
6 years ago
David Anderson
b01db109f5
wgengine/router: use inet.af/netaddr, not wgcfg.CIDR.
...
Signed-off-by: David Anderson <danderson@tailscale.com>
6 years ago
David Anderson
b8f01eed34
wgengine/router: remove wireguard-go config from settings.
...
Instead, pass in only exactly the relevant configuration pieces
that the OS network stack cares about.
Signed-off-by: David Anderson <danderson@tailscale.com>
6 years ago
David Anderson
1ac570def7
wgengine/router: split out from wgengine.
...
The router implementations are logically separate, with their own API.
Signed-off-by: David Anderson <danderson@tailscale.com>
6 years ago
fgergo
8296c934ac
Update ifconfig_windows.go
...
OLE calls sometimes unexpectedly fail, but retries can succeed. Change panic() to return errors. This way ConfigureInterface() retries can succeed.
6 years ago
Avery Pennarun
dc9b39e3fb
wgengine/windows: use new winipcfg.Sync{Addresses,Routes} functions.
...
This avoids flushing and reloading the whole list of addresses and
routes whenever remote node information changes.
6 years ago
Brad Fitzpatrick
50aeb5b9ad
wgengine: unexport some windows funcs
6 years ago
David Crawshaw
45d687e213
wgengine: fix build on linux/freebsd/openbsd/windows
...
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
6 years ago
Brad Fitzpatrick
745c8c92b1
wgengine: fix windows build for winipcfg-go
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
6 years ago
Earl Lee
a8d8b8719a
Move Linux client & common packages into a public repo.
6 years ago