Common Arguments

Every tool in the Tcpreplay suite (tcpreplay, tcpreplay-edit, tcpprep, tcprewrite, tcpbridge, tcpliveplay, tcpcapinfo) gets these flags for free from the shared AutoOpts “tearoff” that all of their CLI parsing is built on.

Flag Purpose
--dbug=<level> Enable debugging output to STDERR. Requires building with --enable-debug (autotools) / -DENABLE_DEBUG=ON (CMake).
--verbose Print packet data using tcpdump (requires tcpdump on $PATH, or set it explicitly with --decode).
--decode=<args> Pass additional decoding arguments through to tcpdump when using --verbose.
--version Print version, copyright, and library information.
--save-opts=<file> Save the current configuration options to a file.
--load-opts=<file> Load configuration options from a file (or from a default rc file automatically, if present).
--help Print basic help for the given command.
--more-help Print detailed help for the given command (pipes through a pager).

These are separate from each tool’s own specific options (--dlt, --endpoints, --portmap, …) — see --help/--more-help on each binary, or the man pages, for those.

See also: Usage Examples for these tools used together to solve real problems.


Adapted from the Tcpreplay developer wiki.