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
|
|
|
|
2020-04-30 20:20:09 +00:00
|
|
|
package router
|
2020-02-05 22:16:58 +00:00
|
|
|
|
|
|
|
import (
|
2021-05-25 19:42:22 +00:00
|
|
|
"golang.zx2c4.com/wireguard/tun"
|
2020-02-15 03:23:16 +00:00
|
|
|
"tailscale.com/types/logger"
|
2020-02-05 22:16:58 +00:00
|
|
|
)
|
|
|
|
|
2021-03-27 02:22:35 +00:00
|
|
|
func newUserspaceRouter(logf logger.Logf, tunname string, tunDev tun.Device, netChanged func()) Router {
|
|
|
|
return NewFakeRouter(logf, tunname, tunDev, netChanged)
|
2020-02-05 22:16:58 +00:00
|
|
|
}
|
2020-07-14 13:12:00 +00:00
|
|
|
|
2020-07-31 20:27:09 +00:00
|
|
|
func cleanup(logf logger.Logf, interfaceName string) {
|
|
|
|
// Nothing to do here.
|
2020-07-14 13:12:00 +00:00
|
|
|
}
|