pcapinput

package
v0.0.0-...-489b733 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: NIST-PD-fallback Imports: 15 Imported by: 0

Documentation

Overview

Package pcapinput opens GoPacket input handle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handle

type Handle interface {
	gopacket.ZeroCopyPacketDataSource
	io.Closer
	Name() string
	IsLocal(mac net.HardwareAddr) bool
}

Handle represents a pcap input handle.

func Open

func Open(ifname, filename, local string) (handle Handle, e error)

Open creates a pcap input handle.

ifname: network interface name.
filename: input filename.
local: local MAC address.

Jump to

Keyboard shortcuts

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