Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NFQLayout ¶
type NFQLayout struct { QueueNum string // process ID of software listening to the queue PeerPortID string // current number of packets waiting in the queue QueueTotal string // 0 and 1 only message only provide meta data. If 2, the message provides a part of packet of size copy range. CopyMode string // length of packet data to put in message CopyRange string // number of packets dropped because queue was full QueueDropped string // number of packets dropped because netlink message could not be sent to userspace. // If this counter is not zero, try to increase netlink buffer size. On the application side, // you will see gap in packet id if netlink message are lost. UserDropped string // packet id of last packet IDSequence string }
NFQLayout is the layout of /proc/net/netfilter/nfnetlink_queue
type NFQParser ¶
NFQParser holds nfqparser fields
func (*NFQParser) RetrieveAll ¶
RetrieveAll returns all layouts
func (*NFQParser) RetrieveByQueue ¶
RetrieveByQueue returns layout for a specific queue number
func (*NFQParser) Synchronize ¶
Synchronize reads from file and parses it
Click to show internal directories.
Click to hide internal directories.