2020-02-05 22:16:58 +00:00
|
|
|
// Copyright (c) 2020 Tailscale Inc & AUTHORS All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2020-02-10 22:31:39 +00:00
|
|
|
// +build !windows,!linux,!darwin,!openbsd,!freebsd
|
2020-02-05 22:16:58 +00:00
|
|
|
|
|
|
|
package wgengine
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/tailscale/wireguard-go/device"
|
|
|
|
"github.com/tailscale/wireguard-go/tun"
|
2020-02-15 03:23:16 +00:00
|
|
|
"tailscale.com/types/logger"
|
2020-02-05 22:16:58 +00:00
|
|
|
)
|
|
|
|
|
2020-03-08 05:05:34 +00:00
|
|
|
const DefaultTunName = "tailscale0"
|
|
|
|
|
2020-02-14 23:03:25 +00:00
|
|
|
func newUserspaceRouter(logf logger.Logf, tunname string, dev *device.Device, tuntap tun.Device, netChanged func()) Router {
|
2020-02-12 20:45:59 +00:00
|
|
|
return NewFakeRouter(logf, tunname, dev, tuntap, netChanged)
|
2020-02-05 22:16:58 +00:00
|
|
|
}
|