socket

package
v0.0.0-...-781c61a Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTestimony

func RunTestimony(t Testimony)

RunTestimony runs the testimonyd server given the passed in configuration.

Types

type SocketConfig

type SocketConfig struct {
	SocketName         string // filename for the socket
	Interface          string // interface to sniff packets on
	BlockSize          int    // block size (in bytes) of a single packet block
	NumBlocks          int    // number of packet blocks in the memory region
	BlockTimeoutMillis int    // timeout for filling up a single block
	FanoutType         int    // which type of fanout to use (see linux/if_packet.h)
	FanoutSize         int    // number of threads to fan out to
	FanoutID           int    // fanout id to avoid conflicts
	User, Group        string // user/group to provide the socket to (will chown it)
	Filter             string // BPF filter to apply to this socket
}

SocketConfig defines how an individual socket should be set up.

type Testimony

type Testimony []SocketConfig

Testimony is the configuration parsed from the config file.

Jump to

Keyboard shortcuts

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