Documentation ¶
Index ¶
- func GetDebugFlag() bool
- func GetShutdownFlag() int
- func RegisterConntrackCallback(cb ConntrackCallback)
- func RegisterNetloggerCallback(cb NetloggerCallback)
- func RegisterNfqueueCallback(cb NfqueueCallback)
- func SetDebugFlag()
- func SetShutdownFlag()
- func Shutdown()
- func StartCallbacks()
- func Startup()
- func StopCallbacks()
- func UpdateConntrackMark(ctid uint32, mask uint32, value uint32)
- type ConntrackCallback
- type NetloggerCallback
- type NfqueueCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterConntrackCallback ¶
func RegisterConntrackCallback(cb ConntrackCallback)
RegisterConntrackCallback registers the global conntrack callback for handling conntrack events
func RegisterNetloggerCallback ¶
func RegisterNetloggerCallback(cb NetloggerCallback)
RegisterNetloggerCallback registers the global netlogger callback for handling netlogger events
func RegisterNfqueueCallback ¶
func RegisterNfqueueCallback(cb NfqueueCallback)
RegisterNfqueueCallback registers the global nfqueue callback for handling nfqueue events
func StartCallbacks ¶
func StartCallbacks()
StartCallbacks donates threads for all the C services and starts other persistent tasks
func UpdateConntrackMark ¶
UpdateConntrackMark updates the conntrack entry specified by ctid by anding it with mask and oring it with value
Types ¶
type ConntrackCallback ¶
type ConntrackCallback func(uint32, uint8, uint8, uint8, net.IP, net.IP, uint16, uint16, net.IP, net.IP, uint16, uint16, uint64, uint64)
ConntrackCallback is a function to handle conntrack events
Click to show internal directories.
Click to hide internal directories.