2023-01-28 05:37:20 +08:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
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 (
|
2022-12-10 07:12:20 +08:00
|
|
|
"github.com/tailscale/wireguard-go/tun"
|
2023-04-19 05:26:58 +08:00
|
|
|
"tailscale.com/net/netmon"
|
2020-02-15 11:23:16 +08:00
|
|
|
"tailscale.com/types/logger"
|
2020-02-06 06:16:58 +08:00
|
|
|
)
|
|
|
|
|
2023-04-19 05:26:58 +08:00
|
|
|
func newUserspaceRouter(logf logger.Logf, tundev tun.Device, netMon *netmon.Monitor) (Router, error) {
|
|
|
|
return newUserspaceBSDRouter(logf, tundev, netMon)
|
2020-02-06 06:16:58 +08:00
|
|
|
}
|
|
|
|
|
2020-08-01 04:27:09 +08:00
|
|
|
func cleanup(logger.Logf, string) {
|
|
|
|
// Nothing to do.
|
|
|
|
}
|