tcpdump

package
v0.0.0-...-2783354 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrBadSyntax is returned when the tcpdump filter syntax is invalid.
	ErrBadSyntax = errors.New("invalid filter syntax")
)

Functions

This section is empty.

Types

type Options

type Options struct {
	Count          int    // -c
	FileSize       int    // -C
	RotateSeconds  int    // -G
	Interface      string // -i
	SnapLen        int    // -s
	OutputFile     string // -w
	FileCountLimit int    // -W
}

Options for tcpdump.

type Runner

type Runner struct {
}

Runner manages the execution of tcpdump.

func (*Runner) CheckFilter

func (r *Runner) CheckFilter(filter string) error

CheckFilter checks the syntax of a BPF filter.

func (*Runner) Run

func (r *Runner) Run(opt *Options, filter string) error

Run tcpdump.

Jump to

Keyboard shortcuts

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