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