netns_default.go 453 B

12345678910111213141516171819202122
  1. // Copyright (c) Tailscale Inc & AUTHORS
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. //go:build !linux && !windows && !darwin
  4. package netns
  5. import (
  6. "syscall"
  7. "tailscale.com/net/netmon"
  8. "tailscale.com/types/logger"
  9. )
  10. func control(logger.Logf, *netmon.Monitor) func(network, address string, c syscall.RawConn) error {
  11. return controlC
  12. }
  13. // controlC does nothing to c.
  14. func controlC(network, address string, c syscall.RawConn) error {
  15. return nil
  16. }