Documentation
¶
Index ¶
- func PluginConntrackHandler(message int, entry *support.ConntrackEntry)
- func PluginGoodbye(childsync *sync.WaitGroup)
- func PluginNetfilterHandler(ch chan<- int32, mess support.TrafficMessage, ctid uint)
- func PluginNetloggerHandler(logger *support.NetloggerMessage)
- func PluginStartup(childsync *sync.WaitGroup)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PluginConntrackHandler ¶
func PluginConntrackHandler(message int, entry *support.ConntrackEntry)
PluginConntrackHandler receives conntrack events. The message will be one of three possible values: N, U, or D for new entry, an update to an existing entry, or delete of an existing entry.
func PluginGoodbye ¶
PluginGoodbye function called when the daemon is shutting down. We call Done for the argumented WaitGroup to let the main process know we're finished.
func PluginNetfilterHandler ¶
func PluginNetfilterHandler(ch chan<- int32, mess support.TrafficMessage, ctid uint)
PluginNetfilterHandler receives a TrafficMessage which includes a Tuple and a gopacket.Packet, along with the IP and TCP or UDP layer already extracted. We do whatever we like with the data, and when finished, we return an integer via the argumented channel with any bits set that we want added to the packet mark.
func PluginNetloggerHandler ¶
func PluginNetloggerHandler(logger *support.NetloggerMessage)
PluginNetloggerHandler receives NFLOG events.
func PluginStartup ¶
PluginStartup function is called to allow plugin specific initialization. We increment the argumented WaitGroup so the main process can wait for our goodbye function to return during shutdown.
Types ¶
This section is empty.