2020-02-06 06:16:58 +08: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-11 06:31:39 +08:00
|
|
|
// +build !windows,!linux,!darwin,!openbsd,!freebsd
|
2020-02-06 06:16:58 +08:00
|
|
|
|
2020-05-01 04:20:09 +08:00
|
|
|
package router
|
2020-02-06 06:16:58 +08:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/tailscale/wireguard-go/device"
|
|
|
|
"github.com/tailscale/wireguard-go/tun"
|
2020-02-15 11:23:16 +08:00
|
|
|
"tailscale.com/types/logger"
|
2020-02-06 06:16:58 +08:00
|
|
|
)
|
|
|
|
|
2020-02-15 07:03:25 +08:00
|
|
|
func newUserspaceRouter(logf logger.Logf, tunname string, dev *device.Device, tuntap tun.Device, netChanged func()) Router {
|
2020-02-13 04:45:59 +08:00
|
|
|
return NewFakeRouter(logf, tunname, dev, tuntap, netChanged)
|
2020-02-06 06:16:58 +08:00
|
|
|
}
|
2020-07-14 21:12:00 +08:00
|
|
|
|
|
|
|
func cleanup() error {
|
|
|
|
return nil
|
|
|
|
}
|