source

package
v0.0.0-...-853a2e8 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLiveSource

func NewLiveSource(c *LiveSourceConfig) (*gopacket.PacketSource, error)

func NewOfflineSource

func NewOfflineSource(c *OfflineSourceConfig) (*gopacket.PacketSource, error)

func NewTcpSource

func NewTcpSource(ctx context.Context, c *TcpSourceConfig) (chan *gopacket.PacketSource, error)

Types

type LiveSourceConfig

type LiveSourceConfig struct {
	Dev     string
	Caplen  int32
	Promisc bool
	Bpf     string
}

type OfflineSourceConfig

type OfflineSourceConfig struct {
	FilePath string
	Bpf      string
}

type TcpSourceConfig

type TcpSourceConfig struct {
	Address string
	MaxConn int
}

Jump to

Keyboard shortcuts

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