example

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2019 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PluginConntrackHandler

func PluginConntrackHandler(message int, entry *dispatch.Conntrack)

PluginConntrackHandler receives conntrack dispatch. 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 PluginNetloggerHandler

func PluginNetloggerHandler(netlogger *dispatch.NetloggerMessage)

PluginNetloggerHandler receives NFLOG dispatch.

func PluginNfqueueHandler

func PluginNfqueueHandler(mess dispatch.NfqueueMessage, ctid uint32, newSession bool) dispatch.NfqueueResult

PluginNfqueueHandler receives a NfqueueMessage 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 PluginShutdown

func PluginShutdown()

PluginShutdown 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 PluginStartup

func PluginStartup()

PluginStartup function is called to allow plugin specific initialization. We increment the argumented WaitGroup so the main process can wait for our shutdown function to return during shutdown.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL