Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 is called to handle netfilter packet data. We extract the source and destination IP address from the packet, lookup the GeoIP country code for each, and store them in the conntrack dictionary.
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.
Click to show internal directories.
Click to hide internal directories.