package
0.0.0-20250210062315-4927232b2f26
Repository: https://github.com/rbmk-project/x.git
Documentation: pkg.go.dev
# Functions
NewNetworkDeviceIOChannels constructs two channels with size == [DefaultBufferChannel].
# Constants
CONTINUE lets the [*Packet] continue through the chain.
DefaultBufferChannel is the required buffering for [NetworkDevice] channels.
DROP silently discards the [*Packet].
IPProtocolTCP is the TCP protocol number.
IPProtocolUDP is the UDP protocol number.
TCPFlagACK is the ACK flag.
TCPFlagFIN is the FIN flag.
TCPFlagPSH is the PSH flag.
TCPFlagRST is the RST flag.
TCPFlagSYN is the SYN flag.
# Interfaces
Filter processes [*Packet] and determines its fate.
NetworkDevice is a network device to read/write [*Packet].
# Type aliases
FilterFunc allows using a function as a [Filter].
IPProtocol is the protocol number of an IP packet.
Target represents what to do with a [*Packet] similarly to `iptables` target.
TCPFlags is a set of TCP flags.