2023-01-28 05:37:20 +08:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2020-05-29 08:43:15 +08:00
|
|
|
|
2022-11-30 09:54:45 +08:00
|
|
|
//go:build !linux && !windows && !darwin
|
2020-05-29 08:43:15 +08:00
|
|
|
|
|
|
|
package netns
|
|
|
|
|
2021-11-19 04:18:02 +08:00
|
|
|
import (
|
|
|
|
"syscall"
|
2020-05-29 08:43:15 +08:00
|
|
|
|
2023-04-18 07:01:41 +08:00
|
|
|
"tailscale.com/net/netmon"
|
2021-11-19 04:18:02 +08:00
|
|
|
"tailscale.com/types/logger"
|
|
|
|
)
|
|
|
|
|
2023-04-18 07:01:41 +08:00
|
|
|
func control(logger.Logf, *netmon.Monitor) func(network, address string, c syscall.RawConn) error {
|
2021-11-19 04:18:02 +08:00
|
|
|
return controlC
|
|
|
|
}
|
|
|
|
|
|
|
|
// controlC does nothing to c.
|
|
|
|
func controlC(network, address string, c syscall.RawConn) error {
|
2020-05-29 08:43:15 +08:00
|
|
|
return nil
|
|
|
|
}
|