You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
515 B
26 lines
515 B
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build !linux && !windows && !darwin && !openbsd
|
|
|
|
package netns
|
|
|
|
import (
|
|
"syscall"
|
|
|
|
"tailscale.com/net/netmon"
|
|
"tailscale.com/types/logger"
|
|
)
|
|
|
|
func control(logger.Logf, *netmon.Monitor) func(network, address string, c syscall.RawConn) error {
|
|
return controlC
|
|
}
|
|
|
|
// controlC does nothing to c.
|
|
func controlC(network, address string, c syscall.RawConn) error {
|
|
return nil
|
|
}
|
|
|
|
func UseSocketMark() bool {
|
|
return false
|
|
}
|
|
|