mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-30 05:25:35 +00:00
ba48ec5e39
This package is an initial implementation of something that can read netfilter and iptables rules from the Linux kernel without needing to shell out to an external utility; it speaks directly to the kernel using syscalls and parses the data returned. Currently this is read-only since it only knows how to parse a subset of the available data. Signed-off-by: Andrew Dunham <andrew@tailscale.com> Change-Id: Iccadf5dcc081b73268d8ccf8884c24eb6a6f1ff5
19 lines
287 B
Go
19 lines
287 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build !cgo || !linux
|
|
|
|
package linuxfwtest
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
type SizeInfo struct {
|
|
SizeofSocklen uintptr
|
|
}
|
|
|
|
func TestSizes(t *testing.T, si *SizeInfo) {
|
|
t.Skip("not supported without cgo")
|
|
}
|