2022-08-24 04:00:06 +00:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
2023-02-14 05:56:28 +00:00
|
|
|
// NOTE: linux_{386,loong64,arm,armbe} are currently unsupported due to missing
|
2022-08-24 04:00:06 +00:00
|
|
|
// support in upstream dependencies.
|
|
|
|
|
2023-02-14 05:56:28 +00:00
|
|
|
//go:build !linux || (linux && (386 || loong64 || arm || armbe))
|
2022-08-24 04:00:06 +00:00
|
|
|
|
|
|
|
package linuxfw
|
|
|
|
|
|
|
|
import (
|
|
|
|
"tailscale.com/types/logger"
|
|
|
|
)
|
|
|
|
|
|
|
|
// DebugNetfilter is not supported on non-Linux platforms.
|
|
|
|
func DebugNetfilter(logf logger.Logf) error {
|
|
|
|
return ErrUnsupported
|
|
|
|
}
|
|
|
|
|
|
|
|
// DetectNetfilter is not supported on non-Linux platforms.
|
|
|
|
func DetectNetfilter() (int, error) {
|
|
|
|
return 0, ErrUnsupported
|
|
|
|
}
|
|
|
|
|
|
|
|
// DebugIptables is not supported on non-Linux platforms.
|
|
|
|
func DebugIptables(logf logger.Logf) error {
|
|
|
|
return ErrUnsupported
|
|
|
|
}
|
|
|
|
|
|
|
|
// DetectIptables is not supported on non-Linux platforms.
|
|
|
|
func DetectIptables() (int, error) {
|
|
|
|
return 0, ErrUnsupported
|
|
|
|
}
|