xtables

package
v0.0.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

A wrapper for google/gopacket pcap compilation for use with xt_bpf

A library for marshaling xt_bpf structs for use with nftables

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileBpfForXtInfo

func CompileBpfForXtInfo(filter string) ([]bpf.RawInstruction, error)

Compile a tcpdump-style filter string to bpf compatible with xtables

func MarshalBpfBytecode

func MarshalBpfBytecode(filter string) ([]byte, error)

Marshal a tcpdump-style filter string into bytes compatible with xtables

func MarshalBpfFd

func MarshalBpfFd(fd int32) ([]byte, error)

Marshal a socket file descriptor into bytes compatible with xtables

func MarshalBpfPinned

func MarshalBpfPinned(path string) ([]byte, error)

Marshal a pinned program path into bytes compatible with xtables

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL