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
|
|
|
|
2021-08-06 06:42:39 +08:00
|
|
|
//go: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 (
|
2021-07-21 04:28:06 +08:00
|
|
|
"fmt"
|
|
|
|
"runtime"
|
|
|
|
|
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) {
|
2021-10-21 00:41:36 +08:00
|
|
|
return nil, fmt.Errorf("unsupported OS %q", runtime.GOOS)
|
2020-02-06 06:16:58 +08:00
|
|
|
}
|
2020-07-14 21:12:00 +08:00
|
|
|
|
2020-08-01 04:27:09 +08:00
|
|
|
func cleanup(logf logger.Logf, interfaceName string) {
|
|
|
|
// Nothing to do here.
|
2020-07-14 21:12:00 +08:00
|
|
|
}
|