kernel

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2018 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDebugFlag

func GetDebugFlag() bool

GetDebugFlag gets the shared debug flag

func GetShutdownFlag

func GetShutdownFlag() int

GetShutdownFlag returns the C shutdown 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 SetDebugFlag

func SetDebugFlag()

SetDebugFlag sets the shared debug flag

func SetShutdownFlag

func SetShutdownFlag()

SetShutdownFlag sets the C shutdown flag

func Shutdown

func Shutdown()

Shutdown all C services

func StartCallbacks

func StartCallbacks()

StartCallbacks donates threads for all the C services and starts other persistent tasks

func Startup

func Startup()

Startup starts C services

func StopCallbacks

func StopCallbacks()

StopCallbacks stops all C services and callbacks

func UpdateConntrackMark

func UpdateConntrackMark(ctid uint32, mask uint32, value uint32)

UpdateConntrackMark updates the conntrack entry specified by ctid by anding it with mask and oring it with value

Types

type ConntrackCallback

type ConntrackCallback func(uint32, uint8, uint8, uint8, net.IP, net.IP, uint16, uint16, net.IP, net.IP, uint16, uint16, uint64, uint64)

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, gopacket.Packet, int, uint32) uint32

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