2023-01-27 13:37:20 -08:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2020-02-05 14:16:58 -08:00
|
|
|
|
2020-04-30 13:20:09 -07:00
|
|
|
package router
|
2020-02-05 14:16:58 -08:00
|
|
|
|
|
|
|
import (
|
2022-12-09 15:12:20 -08:00
|
|
|
"github.com/tailscale/wireguard-go/tun"
|
2023-04-18 14:26:58 -07:00
|
|
|
"tailscale.com/net/netmon"
|
2020-02-14 19:23:16 -08:00
|
|
|
"tailscale.com/types/logger"
|
2020-02-05 14:16:58 -08:00
|
|
|
)
|
|
|
|
|
2023-04-18 14:26:58 -07:00
|
|
|
func newUserspaceRouter(logf logger.Logf, tundev tun.Device, netMon *netmon.Monitor) (Router, error) {
|
|
|
|
return newUserspaceBSDRouter(logf, tundev, netMon)
|
2020-02-05 14:16:58 -08:00
|
|
|
}
|
|
|
|
|
2020-07-31 16:27:09 -04:00
|
|
|
func cleanup(logger.Logf, string) {
|
|
|
|
// Nothing to do.
|
|
|
|
}
|