capture

package
v0.0.0-...-c97f47a Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Overview

Provides the basic interface for packet capturing and injection. Different implementations ("pcap", "file", ...) are provided as subpackages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handle

type Handle interface {
	LinkType() packet.Type

	SetMTU(mtu int) error
	SetPromiscMode(promisc bool) error
	SetMonitorMode(monitor bool) error

	ApplyFilter(filter *filter.Filter) error

	Activate() error

	Capture() ([]byte, error)
	Inject(buf []byte) error

	Close()
}

Directories

Path Synopsis
Provides native packet capturing and injection on pcap dump files without requiring the libpcap library.
Provides native packet capturing and injection on pcap dump files without requiring the libpcap library.
Provides packet capturing and injection on live network interfaces via libpcap.
Provides packet capturing and injection on live network interfaces via libpcap.

Jump to

Keyboard shortcuts

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