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
|
|
|
|
2021-08-05 15:42:39 -07:00
|
|
|
//go:build !windows && !linux && !darwin && !openbsd && !freebsd
|
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 (
|
2021-07-20 13:28:06 -07:00
|
|
|
"fmt"
|
|
|
|
"runtime"
|
|
|
|
|
2022-12-09 15:12:20 -08:00
|
|
|
"github.com/tailscale/wireguard-go/tun"
|
2024-04-26 10:12:46 -07:00
|
|
|
"tailscale.com/health"
|
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
|
|
|
)
|
|
|
|
|
2024-04-26 10:12:46 -07:00
|
|
|
func newUserspaceRouter(logf logger.Logf, tunDev tun.Device, netMon *netmon.Monitor, health *health.Tracker) (Router, error) {
|
2021-10-20 09:41:36 -07:00
|
|
|
return nil, fmt.Errorf("unsupported OS %q", runtime.GOOS)
|
2020-02-05 14:16:58 -08:00
|
|
|
}
|
2020-07-14 09:12:00 -04:00
|
|
|
|
2024-04-02 19:52:19 -07:00
|
|
|
func cleanUp(logf logger.Logf, interfaceName string) {
|
2020-07-31 16:27:09 -04:00
|
|
|
// Nothing to do here.
|
2020-07-14 09:12:00 -04:00
|
|
|
}
|