Documentation ¶
Overview ¶
Go bindings for libnetfilter_queue
This library provides access to packets in the IPTables netfilter queue (NFQUEUE). The libnetfilter_queue library is part of the http://netfilter.org/projects/libnetfilter_queue/ project.
Index ¶
Constants ¶
View Source
const ( AF_INET = 2 NF_DROP Verdict = 0 NF_ACCEPT Verdict = 1 NF_STOLEN Verdict = 2 NF_QUEUE Verdict = 3 NF_REPEAT Verdict = 4 NF_STOP Verdict = 5 NF_DEFAULT_PACKET_SIZE uint32 = 0xffff NF_DEFAULT_TIMEOUT = 100 * time.Microsecond )
Variables ¶
View Source
var PacketReceiveTimeout = NF_DEFAULT_TIMEOUT
Functions ¶
This section is empty.
Types ¶
type NFPacket ¶
func (*NFPacket) SetRequeueVerdict ¶
Set the verdict for the packet
func (*NFPacket) SetVerdict ¶
Set the verdict for the packet
type NFQueue ¶
type NFQueue struct {
// contains filtered or unexported fields
}
func NewNFQueue ¶
Create and bind to queue specified by queueId
func (*NFQueue) GetPackets ¶
Get the channel for packets
Click to show internal directories.
Click to hide internal directories.