Documentation
¶
Index ¶
- func CloseWarehouseCapture()
- func GetBypassFlag() int
- func GetDebugFlag() bool
- func GetShutdownChannel() chan bool
- func GetShutdownFlag() bool
- func GetWarehouseFlag() int
- func RegisterConntrackCallback(cb ConntrackCallback)
- func RegisterNetloggerCallback(cb NetloggerCallback)
- func RegisterNfqueueCallback(cb NfqueueCallback)
- func SetBypassFlag(value int)
- func SetDebugFlag()
- func SetShutdownFlag()
- func SetWarehouseFile(filename string)
- func SetWarehouseFlag(value int)
- func SetWarehouseSpeed(value int)
- func Shutdown()
- func StartCallbacks(numNfqueueThreads int, intervalSeconds int)
- func StartWarehouseCapture()
- func Startup()
- func StopCallbacks()
- func WarehousePlaybackFile(nflist map[uint32]bool, ctlist map[uint32]bool)
- type ConntrackCallback
- type NetloggerCallback
- type NfqueueCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseWarehouseCapture ¶ added in v0.1.2
func CloseWarehouseCapture()
CloseWarehouseCapture closes the warehouse traffic capture function
func GetBypassFlag ¶ added in v0.1.2
func GetBypassFlag() int
GetBypassFlag gets the live traffic bypass flag
func GetShutdownChannel ¶ added in v0.1.2
func GetShutdownChannel() chan bool
GetShutdownChannel returns a channel
func GetShutdownFlag ¶
func GetShutdownFlag() bool
GetShutdownFlag returns the shutdown flag for kernel
func GetWarehouseFlag ¶ added in v0.1.2
func GetWarehouseFlag() int
GetWarehouseFlag gets the value of the warehouse traffic capture and playback flag
func RegisterConntrackCallback ¶
func RegisterConntrackCallback(cb ConntrackCallback)
RegisterConntrackCallback registers the global conntrack callback for handling conntrack events
func RegisterNetloggerCallback ¶
func RegisterNetloggerCallback(cb NetloggerCallback)
RegisterNetloggerCallback registers the global netlogger callback for handling netlogger events
func RegisterNfqueueCallback ¶
func RegisterNfqueueCallback(cb NfqueueCallback)
RegisterNfqueueCallback registers the global nfqueue callback for handling nfqueue events
func SetBypassFlag ¶ added in v0.1.2
func SetBypassFlag(value int)
SetBypassFlag flag sets the live traffic bypass flag
func SetWarehouseFile ¶ added in v0.1.2
func SetWarehouseFile(filename string)
SetWarehouseFile sets the filename used by the warehouse for traffic capture and playback
func SetWarehouseFlag ¶ added in v0.1.2
func SetWarehouseFlag(value int)
SetWarehouseFlag sets the value of the warehouse traffic capture and playback flag
func SetWarehouseSpeed ¶ added in v0.1.2
func SetWarehouseSpeed(value int)
SetWarehouseSpeed sets the traffic playback speed
func StartCallbacks ¶
StartCallbacks donates threads for all the C services and starts other persistent tasks
func StartWarehouseCapture ¶ added in v0.1.2
func StartWarehouseCapture()
StartWarehouseCapture initializes the warehouse traffic capture function
Types ¶
type ConntrackCallback ¶
type ConntrackCallback func(uint32, uint32, uint8, uint8, uint8, net.IP, net.IP, uint16, uint16, net.IP, net.IP, uint16, uint16, uint64, uint64, uint64, uint64, uint64, uint64, uint32, uint8)
ConntrackCallback is a function to handle conntrack events