package
2.0.0-rc2+incompatible
Repository: https://github.com/buger/goreplay.git
Documentation: pkg.go.dev

# Functions

NewListener creates and initialize a new Listener.
NewSocket returns new M'maped sock_raw on packet version 2.
NewWriter returns a new writer object, for writing packet data out to the given writer.
NewWriterNanos returns a new writer object, for writing packet data out to the given writer.

# Constants

2mb / 64kb.
BLOCKSIZE ring buffer block_size.
Available engines for intercepting traffic.
Available engines for intercepting traffic.
Available engines for intercepting traffic.
Available engines for intercepting traffic.
ETHALL htons(ETH_P_ALL).
FRAMENR ring buffer frame_nr.
FRAMESIZE ring buffer frame_size.
MAPHUGE2MB 2mb huge map.

# Structs

Listener handle traffic capture, this is its representation.
PcapOptions options that can be set on a pcap capture handle, these options take effect on inactive pcap handles.
SockRaw is a linux M'maped af_packet socket.
Writer wraps an underlying io.Writer to write packet data in PCAP format.

# Interfaces

Socket is any interface that defines the behaviors of Socket.

# Type aliases

EngineType ...
PacketHandler is a function that is used to handle packets.