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
|
|
|
|
2021-08-05 22:42:39 +00:00
|
|
|
//go:build !windows && !linux && !darwin && !openbsd && !freebsd
|
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 (
|
2021-07-20 20:28:06 +00:00
|
|
|
"fmt"
|
|
|
|
"runtime"
|
|
|
|
|
2022-12-09 23:12:20 +00:00
|
|
|
"github.com/tailscale/wireguard-go/tun"
|
2020-02-15 03:23:16 +00:00
|
|
|
"tailscale.com/types/logger"
|
2021-07-20 20:28:06 +00:00
|
|
|
"tailscale.com/wgengine/monitor"
|
2020-02-05 22:16:58 +00:00
|
|
|
)
|
|
|
|
|
2021-10-20 16:41:36 +00:00
|
|
|
func newUserspaceRouter(logf logger.Logf, tunDev tun.Device, linkMon *monitor.Mon) (Router, error) {
|
|
|
|
return nil, fmt.Errorf("unsupported OS %q", runtime.GOOS)
|
2020-02-05 22:16:58 +00:00
|
|
|
}
|
2020-07-14 13:12:00 +00:00
|
|
|
|
2020-07-31 20:27:09 +00:00
|
|
|
func cleanup(logf logger.Logf, interfaceName string) {
|
|
|
|
// Nothing to do here.
|
2020-07-14 13:12:00 +00:00
|
|
|
}
|