kernel

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

Documentation

Index

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 GetDebugFlag

func GetDebugFlag() bool

GetDebugFlag gets the shared debug 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 SetDebugFlag

func SetDebugFlag()

SetDebugFlag sets the shared debug flag

func SetShutdownFlag

func SetShutdownFlag()

SetShutdownFlag sets the shutdown flag for kernel

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 Shutdown

func Shutdown()

Shutdown stops kernel services

func StartCallbacks

func StartCallbacks(numNfqueueThreads int, intervalSeconds int)

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

func Startup

func Startup()

Startup starts kernel services

func StopCallbacks

func StopCallbacks()

StopCallbacks stops all C services and callbacks

func WarehousePlaybackFile added in v0.1.2

func WarehousePlaybackFile(nflist map[uint32]bool, ctlist map[uint32]bool)

WarehousePlaybackFile plays a warehouse capture file and returns the list of netfilter conntrack sessions that were detected so the caller can clean them up

Types

type ConntrackCallback

ConntrackCallback is a function to handle conntrack events

type NetloggerCallback

type NetloggerCallback func(uint8, uint8, uint16, uint8, uint8, string, string, uint16, uint16, uint32, string)

NetloggerCallback is a function to handle netlogger events

type NfqueueCallback

type NfqueueCallback func(uint32, uint32, gopacket.Packet, int, uint32) int

NfqueueCallback is a function to handle nfqueue events

Jump to

Keyboard shortcuts

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