Documentation
¶
Index ¶
Constants ¶
View Source
const ( IPv4 = IPVersion(4) IPv6 = IPVersion(6) //convience really IGMP = IPProtocol(syscall.IPPROTO_IGMP) RAW = IPProtocol(syscall.IPPROTO_RAW) TCP = IPProtocol(syscall.IPPROTO_TCP) UDP = IPProtocol(syscall.IPPROTO_UDP) ICMP = IPProtocol(syscall.IPPROTO_ICMP) ICMPv6 = IPProtocol(syscall.IPPROTO_ICMPV6) )
Variables ¶
View Source
var (
ErrVerdictSentOrTimedOut error = fmt.Errorf("The verdict was already sent or timed out.")
)
Functions ¶
func NewMultiQueue ¶
func NewMultiQueue(min, max uint16) (mq *multiQueue)
func NewNFQueue ¶
func NewNFQueue(qid uint16) (nfq *nfQueue)
Types ¶
type IPHeader ¶
type IPHeader struct { Version IPVersion Tos, TTL uint8 Protocol IPProtocol Src, Dst net.IP }
type IPProtocol ¶
type IPProtocol uint8
func (IPProtocol) String ¶
func (p IPProtocol) String() string
type IPVersion ¶
type IPVersion uint8
type Packet ¶
type TCPUDPHeader ¶
Click to show internal directories.
Click to hide internal directories.