pcapreplay

package
v0.1.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MulanPSL-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package pcapreplay 按 plan 与墙钟锚点执行客户端侧 PCAP 回放。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, c Config) error

Run 阻塞直至回放结束(与 client.Run 同形态输出)。

Types

type Config

type Config struct {
	ServerAddr       string
	ResolvedPlanPath string
	PcapPlanName     string
	OutputRoot       string
	TestID           string
	SampleInterval   time.Duration
	TimeDeltaNs      int64
	StatsInterval    time.Duration
	StatsWriter      io.Writer
	Speed            float64
	MaxPayload       int
	NoPad            bool
	GracePeriod      time.Duration
	AnchorLead       time.Duration
	MinDuration      time.Duration
	Logger           *slog.Logger
}

Config 为 PCAP 回放客户端参数。

Source Files

  • replay.go

Jump to

Keyboard shortcuts

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