sniffer

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

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const SNAPLEN = 1500

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TcpClientTag string
	TcpServerTag string
	UdpTag       string
	Mtu          uint
	Interface    string
}

type Sniffer

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

func CreateSniffer

func CreateSniffer(info info.Info, config Config, trace zerolog.Logger) Sniffer

func (*Sniffer) Listen

func (sniffer *Sniffer) Listen(output chan<- packet.Packet)

Jump to

Keyboard shortcuts

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