mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-01 22:15:51 +00:00
6ebd87c669
Exclide GOARCHs including: mips, mips64, mips64le, mipsle, riscv64. These archs are not supported by gvisor.dev/gvisor/pkg/hostarch. Fixes: #391 Signed-off-by: KevinLiang10 <kevinliang@tailscale.com>
41 lines
1.0 KiB
Go
41 lines
1.0 KiB
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
// NOTE: linux_{arm64, x86} are the only two currently supported archs due to missing
|
|
// support in upstream dependencies.
|
|
|
|
// TODO(#8502): add support for more architectures
|
|
//go:build !linux || (linux && !(arm64 || amd64))
|
|
|
|
package linuxfw
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"tailscale.com/types/logger"
|
|
)
|
|
|
|
// ErrUnsupported is the error returned from all functions on non-Linux
|
|
// platforms.
|
|
var ErrUnsupported = errors.New("linuxfw:unsupported")
|
|
|
|
// 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
|
|
}
|