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