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.
tailscale/wgengine
Fletcher Nichol a49df5cfda wgenine/router: fix OpenBSD route creation
The route creation for the `tun` device was augmented in #1469 but
didn't account for adding IPv4 vs. IPv6 routes. There are 2 primary
changes as a result:

* Ensure that either `-inet` or `-inet6` was used in the
  [`route(8)`](https://man.openbsd.org/route) command
* Use either the `localAddr4` or `localAddr6` for the gateway argument
  depending which destination network is being added

The basis for the approach is based on the implementation from
`router_userspace_bsd.go`, including the `inet()` helper function.

Fixes #2048
References #1469

Signed-off-by: Fletcher Nichol <fnichol@nichol.ca>
4 years ago
..
bench go.mod: upgrade wireguard-windows, de-fork wireguard-go 4 years ago
filter go.mod: update netaddr 4 years ago
magicsock wgengine/magicsock: delete dead code 4 years ago
monitor all: adapt to opaque netaddr types 4 years ago
netstack all: adapt to opaque netaddr types 4 years ago
router wgenine/router: fix OpenBSD route creation 4 years ago
wgcfg go.mod: upgrade wireguard-windows, de-fork wireguard-go 4 years ago
wglog wgengine/wglog: match upstream wireguard-go's code for wireguardGoString 4 years ago
winnet wgengine/winnet: don't build on non-windows 4 years ago
mem_ios.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 4 years ago
pendopen.go all: adapt to opaque netaddr types 4 years ago
userspace.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 4 years ago
userspace_ext_test.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 4 years ago
userspace_test.go all: adapt to opaque netaddr types 4 years ago
watchdog.go wgengine: take in dns.Config, split out to resolver.Config and dns.OSConfig. 4 years ago
watchdog_test.go wgengine: extend TestWatchdog timeout on macOS 4 years ago
wgengine.go tailcfg: add Endpoint, EndpointType, MapRequest.EndpointType 4 years ago