2020-05-29 01:43:15 +01: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 23:42:39 +01:00
|
|
|
//go:build (!linux && !windows && !darwin) || (darwin && ts_macext)
|
2021-06-03 16:18:59 +01:00
|
|
|
// +build !linux,!windows,!darwin darwin,ts_macext
|
2020-05-29 01:43:15 +01:00
|
|
|
|
|
|
|
package netns
|
|
|
|
|
2021-11-18 20:18:02 +00:00
|
|
|
import (
|
|
|
|
"syscall"
|
2020-05-29 01:43:15 +01: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 01:43:15 +01:00
|
|
|
return nil
|
|
|
|
}
|