revdns

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PluginNfqueueClientHandler

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

PluginNfqueueClientHandler is called to handle nfqueue packet data. We look at the first packet of every connection, and put the reverse DNS name for the client address in the session and the dictionary. We get the names from cache if they are available, otherwise we do the reverse lookup and store them in the cache.

func PluginNfqueueServerHandler

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

PluginNfqueueServerHandler is called to handle nfqueue packet data. We look at the first packet of every connection, and put the reverse DNS name for the server address in the session and the dictionary. We get the names from cache if they are available, otherwise we do the reverse lookup and store them in the cache.

func PluginShutdown

func PluginShutdown()

PluginShutdown function called when the daemon is shutting down.

func PluginStartup

func PluginStartup()

PluginStartup function is called to allow plugin specific initialization.

Types

type ReverseHolder

type ReverseHolder struct {
	AccessTime time.Time
	NameList   []string
	Available  bool
	WaitGroup  sync.WaitGroup
	DataMutex  sync.Mutex
}

ReverseHolder is used to cache a list of DNS names for an IP address

Jump to

Keyboard shortcuts

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