linuxfw_unsupported.go 837 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright (c) Tailscale Inc & AUTHORS
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. // NOTE: linux_{386,loong64,arm,armbe} are currently unsupported due to missing
  4. // support in upstream dependencies.
  5. //go:build !linux || (linux && (386 || loong64 || arm || armbe))
  6. package linuxfw
  7. import (
  8. "tailscale.com/types/logger"
  9. )
  10. // DebugNetfilter is not supported on non-Linux platforms.
  11. func DebugNetfilter(logf logger.Logf) error {
  12. return ErrUnsupported
  13. }
  14. // DetectNetfilter is not supported on non-Linux platforms.
  15. func DetectNetfilter() (int, error) {
  16. return 0, ErrUnsupported
  17. }
  18. // DebugIptables is not supported on non-Linux platforms.
  19. func DebugIptables(logf logger.Logf) error {
  20. return ErrUnsupported
  21. }
  22. // DetectIptables is not supported on non-Linux platforms.
  23. func DetectIptables() (int, error) {
  24. return 0, ErrUnsupported
  25. }