2020-02-05 14:16:58 -08:00
|
|
|
// Copyright (c) 2020 Tailscale Inc & AUTHORS All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2021-08-05 15:42:39 -07:00
|
|
|
//go:build !windows && !linux && !darwin && !openbsd && !freebsd
|
2020-02-10 14:31:39 -08:00
|
|
|
// +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"
|
|
|
|
|
2021-05-25 12:42:22 -07:00
|
|
|
"golang.zx2c4.com/wireguard/tun"
|
2020-02-14 19:23:16 -08:00
|
|
|
"tailscale.com/types/logger"
|
2021-07-20 13:28:06 -07:00
|
|
|
"tailscale.com/wgengine/monitor"
|
2020-02-05 14:16:58 -08:00
|
|
|
)
|
|
|
|
|
2021-07-20 13:28:06 -07:00
|
|
|
func newUserspaceRouter(logf logger.Logf, tunname string, tunDev tun.Device, linkMon *monitor.Mon) Router {
|
|
|
|
panic(fmt.Sprintf("unsupported OS %q", runtime.GOOS))
|
2020-02-05 14:16:58 -08:00
|
|
|
}
|
2020-07-14 09:12:00 -04:00
|
|
|
|
2020-07-31 16:27:09 -04:00
|
|
|
func cleanup(logf logger.Logf, interfaceName string) {
|
|
|
|
// Nothing to do here.
|
2020-07-14 09:12:00 -04:00
|
|
|
}
|