Skip to content

History / Using libtcpedit

Revisions

  • Add Using libtcpreplay page, documenting issue #133's shipped library libtcpreplay (implemented in #1027, closing #133, shipping in 4.6.0) had no wiki documentation. Written directly from src/tcpreplay_api.h, examples/replay_stats.c, and examples/README.md - the API flow, setter table, stats struct fields, and the static-only design rationale are all verified against the current tree, not copied from anywhere. Cross-linked with Using-libtcpedit.md (the companion library) and Home. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

    @galastar galastar committed Jul 21, 2026
  • Fix: tcpedit_post_args() is declared in parse_args.h, not tcpedit.h Caught while re-verifying the page after a request to confirm it's correct. The code example itself was accurate (tcpedit.h transitively includes parse_args.h), but the page's "verified against" file list didn't mention where tcpedit_post_args() actually lives. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

    @galastar galastar committed Jul 21, 2026
  • Port and modernize remaining useful content from the legacy Trac wiki Adds Usage Examples, Common Arguments, Using libtcpedit, and Tcpedit Plugin Architecture, ported from tcpreplay.synfin.net (no longer reachable - see DLT-Plugin-Developer-Guide.md for why) and re-verified against the current 4.6.0-beta1 tree, not just copy-pasted: - tcpprep --port classification now uses a /etc/services-derived lookup, not the old docs' fixed "port < 1024" rule. - tcpedit_init()/tcpedit_close() signatures have changed since the 2009 libtcpedit example (DLT-by-int now, tcpedit_t** now). - The original tcpedit plugin design proposed L3 and L4-7 plugin groups; only DLT/Layer2 plugins were ever actually built - L3+ rewriting lives in the core tcpedit_set_*() API instead. Called this out explicitly rather than presenting the old plan as current. - --enet-dmac/--enet-smac and --endpoints/--srcipmap/--dstipmap/ --portmap/--intf1/--intf2 all checked out unchanged against the current *_opts.def files. Cross-linked all pages together and from Home. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

    @galastar galastar committed Jul 21, 2026