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 ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NFPacket ¶
type NFPacket struct { Packet gopacket.Packet Mark uint32 // contains filtered or unexported fields }
func (*NFPacket) SetRequeueVerdict ¶
Set the verdict for the packet (in the case of requeue)
func (*NFPacket) SetVerdict ¶
Set the verdict for the packet
func (*NFPacket) SetVerdictMark ¶
Set the verdict for the packet with a mark
func (*NFPacket) SetVerdictWithPacket ¶
Set the verdict for the packet AND provide new packet content for injection
type NFQueue ¶
type NFQueue struct {
// contains filtered or unexported fields
}
func NewNFQueue ¶
func NewNFQueue(queueId uint16, maxPacketsInQueue uint32, packetSize uint32, failOpen bool) (*NFQueue, error)
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.