MCPcopy Create free account

hub / github.com/chifflier/nfqueue-go / functions

Functions26 in github.com/chifflier/nfqueue-go

↓ 3 callersMethodClose
()
nfqueue/nfqueue.go:166
↓ 2 callersMethodBind
Bind binds a Queue to a given protocol family. Usually, the family is syscall.AF_INET for IPv4, and syscall.AF_INET6 for IPv6
nfqueue/nfqueue.go:178
↓ 2 callersMethodCreateQueue
Create a new queue handle The queue must be initialized (using Init) and bound (using Bind), and a callback function must be set (using SetCallback).
nfqueue/nfqueue.go:211
↓ 2 callersMethodDestroyQueue
Destroy a queue handle This also unbind from the nfqueue handler, so you don't have to call Unbind() Note that errors from this function can usually
nfqueue/nfqueue.go:233
↓ 2 callersMethodInit
Init creates a netfilter queue which can be used to receive packets from the kernel.
nfqueue/nfqueue.go:149
↓ 2 callersMethodLoop
Main loop: Loop starts a loop, receiving kernel events and processing packets using the callback function.
nfqueue/nfqueue.go:275
↓ 2 callersMethodSetCallback
SetCallback sets the callback function, fired when a packet is received.
nfqueue/nfqueue.go:161
↓ 2 callersMethodSetVerdict
SetVerdict issues a verdict for a packet. Every queued packet _must_ have a verdict specified by userspace.
nfqueue/nfqueue.go:335
↓ 2 callersMethodStopLoop
()
nfqueue/nfqueue.go:294
↓ 2 callersMethodUnbind
Unbind a queue from the given protocol family. Note that errors from this function can usually be ignored.
nfqueue/nfqueue.go:194
↓ 1 callersMethodGetInDev
Returns the interface that the packet was received through
nfqueue/nfqueue.go:363
↓ 1 callersMethodGetNFMark
Returns the packet mark
nfqueue/nfqueue.go:358
↓ 1 callersMethodGetOutDev
Returns the interface that the packet will be routed out
nfqueue/nfqueue.go:368
↓ 1 callersMethodGetPhysInDev
Returns the physical interface that the packet was received through
nfqueue/nfqueue.go:373
↓ 1 callersMethodGetPhysOutDev
Returns the physical interface that the packet will be routed out
nfqueue/nfqueue.go:378
↓ 1 callersMethodSetMode
SetMode sets the amount of packet data that nfqueue copies to userspace Default mode is NFQNL_COPY_PACKET
nfqueue/nfqueue.go:250
↓ 1 callersFunctionbuild_payload
(c_qh *C.struct_nfq_q_handle, ptr_nfad *unsafe.Pointer)
nfqueue/nfqueue.go:310
FunctionGoCallbackWrapper
* Cast argument to Queue* before calling the real callback Notes: - export cannot be done in the same file (nfqueue.go) else it fails to build
nfqueue/nfq_cb.go:29
MethodSetQueueMaxLen
SetQueueMaxLen fixes the number of packets the kernel will store before internally before dropping upcoming packets
nfqueue/nfqueue.go:262
MethodSetVerdictMark
SetVerdictMark issues a verdict for a packet, but a mark can be set Every queued packet _must_ have a verdict specified by userspace.
nfqueue/libnfqueue1.go:24
MethodSetVerdictMarkModified
SetVerdictMarkModified issues a verdict for a packet, but replaces the packet with the provided one, and a mark can be set. Every queued packet _must
nfqueue/libnfqueue1.go:39
MethodSetVerdictModified
SetVerdictModified issues a verdict for a packet, but replaces the packet with the provided one. Every queued packet _must_ have a verdict specified
nfqueue/nfqueue.go:345
Functionmain
()
nfqueue/test_nfqueue/test_nfqueue.go:24
Functionmain
()
nfqueue/test_nfqueue_gopacket/test_nfqueue.go:38
Functionreal_callback
(payload *nfqueue.Payload)
nfqueue/test_nfqueue/test_nfqueue.go:12
Functionreal_callback
(payload *nfqueue.Payload)
nfqueue/test_nfqueue_gopacket/test_nfqueue.go:15