replay

package
v0.8.59 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultRouteInterface

func DefaultRouteInterface(fallback string) string

func Replay

func Replay(pcapPath string, host string, port string, count uint64, delay uint64, concurrency bool) error

Types

type DefaultRouteDetails

type DefaultRouteDetails struct {
	// InterfaceName is the interface name. It must always be populated.
	// It's like "eth0" (Linux), "Ethernet 2" (Windows), "en0" (macOS).
	InterfaceName string

	// InterfaceDesc is populated on Windows at least. It's a
	// longer description, like "Red Hat VirtIO Ethernet Adapter".
	InterfaceDesc string

	// InterfaceIndex is like net.Interface.Index.
	// Zero means not populated.
	InterfaceIndex int
}

func DefaultRoute

func DefaultRoute() (DefaultRouteDetails, error)

type StreamType added in v0.6.1

type StreamType string
const (
	TCP StreamType = "tcp"
	UDP StreamType = "udp"
)

Jump to

Keyboard shortcuts

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