capture

package
v0.0.0-...-228d4f2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handle

type Handle pcap.Handle

Handle is a wrapper for pcap.Handle

func Handler

func Handler(name string) (*Handle, error)

Returns the handler for the given interface

func (*Handle) Close

func (handler *Handle) Close()

Closes the handler

func (*Handle) Filter

func (handler *Handle) Filter(expression string) error

Filter the packets

func (*Handle) Start

func (handler *Handle) Start(sniffer Sniffer)

Analyzes the given packet using the given analyzer.

type Sniffer

type Sniffer func(packet gopacket.Packet) error

Sniffer is a function that analyzes the given packet.

Jump to

Keyboard shortcuts

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