Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PluginNfqueueHandler ¶
func PluginNfqueueHandler(mess dispatch.NfqueueMessage, ctid uint32, newSession bool) dispatch.NfqueueResult
PluginNfqueueHandler is called to handle nfqueue 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 PluginShutdown ¶
func PluginShutdown()
PluginShutdown is called when the daemon is shutting down. We close our GeoIP engine and call done for the argumented WaitGroup to let the main process know we're finished.
func PluginStartup ¶
func PluginStartup()
PluginStartup is called to allow plugin specific initialization. We initialize an instance of the GeoIP engine using any existing database we can find, or we download if needed. We increment the argumented WaitGroup so the main process can wait for our shutdown function to return during shutdown.
Types ¶
This section is empty.