2020-05-29 00:43:15 +00: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.
|
|
|
|
|
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
|
|
|
|
2021-11-18 20:18:02 +00:00
|
|
|
"tailscale.com/types/logger"
|
|
|
|
)
|
|
|
|
|
|
|
|
func control(logger.Logf) func(network, address string, c syscall.RawConn) error {
|
|
|
|
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
|
|
|
|
}
|