networkcap

package
v0.0.0-...-0a64cdf Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PluginClass registered
	PluginClass = "networkcap"
)

Variables

This section is empty.

Functions

func Builder

func Builder() builder.BuildPluginFn

Builder returns a builder function

Types

type Mode

type Mode int

Mode defines modes for network capture

const (
	//Layer2 (ethernet)
	Layer2 Mode = iota
)

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

Plugin implements packetproc.Plugin interface

func New

func New(id string, a capture.Analyzer, m Mode, f filter.Filter, stop bool) *Plugin

New instance a new plugin with the capture analyzer and mode passed

func (*Plugin) CleanUp

func (p *Plugin) CleanUp()

CleanUp implements packetsniff.Plugin interface

func (*Plugin) GetID

func (p *Plugin) GetID() string

GetID implements plugin.Plugin interface

func (*Plugin) Name

func (p *Plugin) Name() string

Name implements packetsniff.Plugin interface

func (*Plugin) RegisterHooks

func (p *Plugin) RegisterHooks(hooks *packetsniff.Hooks)

RegisterHooks implements packetsniff.Plugin interface

Jump to

Keyboard shortcuts

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