123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050 |
- <!-- Creator : groff version 1.18.1 -->
- <!-- CreationDate: Wed Dec 22 15:16:48 2004 -->
- <html>
- <head>
- <meta name="generator" content="groff -Thtml, see www.gnu.org">
- <meta name="Content-Style" content="text/css">
- <title>TCPREPLAY</title>
- </head>
- <body>
- <h1 align=center>TCPREPLAY</h1>
- <a href="#NAME">NAME</a><br>
- <a href="#SYNTAX">SYNTAX</a><br>
- <a href="#DESCRIPTION">DESCRIPTION</a><br>
- <a href="#OPTIONS">OPTIONS</a><br>
- <a href="#SIGNALS">SIGNALS</a><br>
- <a href="#SEE ALSO">SEE ALSO</a><br>
- <a href="#AUTHORS">AUTHORS</a><br>
- <a href="#AVAILABILITY">AVAILABILITY</a><br>
- <a href="#LIMITATIONS">LIMITATIONS</a><br>
- <hr>
- <a name="NAME"></a>
- <h2>NAME</h2>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p>tcpreplay − replay packets back out onto the
- network from pcap files</p>
- </td>
- </table>
- <a name="SYNTAX"></a>
- <h2>SYNTAX</h2>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>tcpreplay −i</b> <i>intf</i> [ <b>options</b> ]
- [ <i><file1> <file2> ...</i> | − ]</p>
- </td>
- </table>
- <a name="DESCRIPTION"></a>
- <h2>DESCRIPTION</h2>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>tcpreplay</b> is a tool for replaying network traffic
- from files saved with <b>tcpdump</b> or other tools which
- write <b>pcap(3)</b> files.</p>
- <!-- INDENTATION -->
- <p>The basic operation of <b>tcpreplay</b> is to resend all
- packets from the input file(s) at the speed at which they
- were recorded, or a specified data rate, up to as fast as
- the hardware is capable.</p>
- <!-- INDENTATION -->
- <p>Optionally, the traffic can be split between two
- interfaces, written to files, filtered and edited in various
- ways, providing the means to test firewalls, NIDS and other
- network devices.</p>
- </td>
- </table>
- <a name="OPTIONS"></a>
- <h2>OPTIONS</h2>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−A or tcpdump_args</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>When enabling verbose mode (−v) you may also
- specify one or more additional arguments to pass to
- <b>tcpdump</b> to modify the way packets are decoded. By
- default, −n and −l are used. Be sure to quote
- the arguments like: −A "−axxx" so that
- they are not interpreted by tcpreplay. The following
- arguments are vaild:<br>
- [ −aAeNqRStuvxX ]<br>
- [ −E spi@ipaddr algo:secret,...]<br>
- [ −s snaplen ]</p>
- </td>
- </table>
- <p><b>−c or cachefile</b></p>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Specify the <i>tcpprep cache</i> to use to process
- packets.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−C or cidr</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Given a list of CIDR networks, packets with a source
- address matching an entry in the list are sent out the
- primary interface. All other packets are sent via the
- secondary interface. CIDR lists are comma−separated
- and do not contain spaces, <i>192.168.0.0/28,10.0.0.0/16</i>
- and <i>10.1.1.0/29</i>, for example. Overrides the −c
- option.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−D or datadump_mode</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>When used in conjunction with −w and −W,
- rather then dumping the entire packets to the files, only
- the layer 7 data is dumped.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−e or endpoints</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Specifies a pair of IP addresses seperated by a colon
- which are then used to rewrite all IP traffic to appear to
- be between the two IP’s.</p>
- </td>
- </table>
- <!-- TABS -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="4" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="13%"></td>
- <td width="2%">
- <p><b>−f</b></p>
- </td>
- <td width="5%"></td>
- <td width="77%">
- <p>Specify a file that contains configuration options.
- Option tokens are listed next to the corresponding
- command−line flag.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−F or fixchecksums</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Fixes IP and TCP/UDP checksums in packets.
- Auto−forced with −s, −u, −T −N
- or −4</p>
- </td>
- </table>
- <!-- TABS -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="5" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="11%"></td>
- <td width="2%">
- <p><b>−h</b></p>
- </td>
- <td width="13%"></td>
- <td width="25%">
- <p>Prints help/usage</p>
- </td>
- <td width="46%">
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−i or intf</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Specify the prmary interface in which to send
- packets.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−I or primary_mac</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Specify the <i>destination MAC</i> to use for packets
- being sent out the primary interface.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−j or second_intf</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Specify the <i>secondary interface</i> in which to send
- packets.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−J or second_mac</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Specify the <i>destination MAC</i> to use for packets
- being sent out the secondary interface.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−k or primary_smac</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Specify the <i>source MAC</i> to use for packets being
- sent out the primary interface.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−K or second_smac</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Specify the <i>source MAC</i> to use for packets being
- sent out the secondary interface.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−l or loop</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Resend the capture file(s) <i>loop count</i> times.
- Setting this to 0 (zero) will cause tcpreplay to loop
- infinitely.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−L or limit_send</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Causes tcpreplay to exit after sending the specified
- number of packets</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−m or multiplier</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Resend the packets at a <i>multiple</i> of the speed at
- which they were recorded, specified as a
- floating−point number.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−M or no_martians</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Disable sending martian packets (source networks: 0/8,
- 127/8, 255/8)</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−n or not_nosy</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Don’t listen in promiscuous mode when sniffing with
- −S</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−N or nat</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Specify the nat transation table(s) where a table is one
- or more pairs of CIDR’s seperated by a colon and each
- pair is sererated by a comma:<br>
- <FROMCIDR1>:<TOCIDR1>,<FROMCIDR2>:<TOCIDR2><br>
- The first instance of this argument is used for the primary
- interface while the second instance is used for the
- secondary interface. If no second instance of this argument
- exists, then the NAT table is used for both.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−o or offset</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Jump to packet at the nearest specified byte offset and
- start replaying packets from there.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−O or one_output</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Processes packets internally for dual interfaces/files
- for purposes of NAT and MAC rewriting, but only write
- packets to a single interface or file.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−p or packetrate</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Specify the replay rate in packets per second. Negates
- all other speed options.</p>
- </td>
- </table>
- <!-- TABS -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="3" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="11%"></td>
- <td width="2%">
- <p><b>−P</b></p>
- </td>
- <td width="85%">
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Print the PID of the tcpreplay process at startup. Useful
- when wanting to use SIGUSR1 and SIGCONT to
- pause/restart.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−r or rate</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Resend the packets at <i>rate</i> megabits
- per−second, specified as a floating−point
- number.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−R or topspeed</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Resend the packets as fast as possible. Negates all other
- speed options.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−s or seed</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Specify a seed value to allow rewriting the source and
- destination IP addresses (only in IP header) to
- pseudo−random values. Will also recalculate the IP
- header as necessary.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−S or sniff_snaplen</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Instead of reading from a saved tcpdump file, perform
- live capture. The argument is the number of bytes to capture
- off the wire. The name of the capture interface will be the
- nominal filename. Please read the FAQ for more
- details/warnings about this feature.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−t or mtu</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Specify the MTU in bytes of the interface(s) being used.
- Default is 1500 which is standard for 10/100 Ethernet.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−T or truncate</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>If a packet is larger then the MTU of the interface, the
- frame will be truncated so that it can be sent. With out
- this, these frames are skipped. Not to be confused with
- −u which pads/truncates packets which are larger then
- the snaplen used to capture the packet.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−u or untruncate</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>When a packet is truncated in the capture file because
- the snaplen was too small, this option will <i>pad</i> the
- end of the packet with zeros, or truncate (<i>trunc</i>) it
- by re−adjusting the length in the IP header. The
- <i>trunc</i> option will only alter IPv4 packets, all others
- will be sent unmodified.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−v or verbose</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Verbose mode, dump decoded packets via tcpdump to
- STDOUT.</p>
- </td>
- </table>
- <!-- TABS -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="5" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="11%"></td>
- <td width="2%">
- <p><b>−V</b></p>
- </td>
- <td width="13%"></td>
- <td width="41%">
- <p>Print version info and exit.</p>
- </td>
- <td width="30%">
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−w or write</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Specify the output file to write the primary packets to
- instead of the network. You still must specify the primary
- interface via −i. If −D is set before it, it
- will write only the layer 7 data.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−W or secondary_write</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Specify the output file to write the secondary packets to
- instead of the network. You still must specify the secondary
- interface via −j. If −D is set before it, it
- will write only the layer 7 data.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−x or include</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Specifies which packets from the capture file(s) to send.
- Can be one of:</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p>S:<CIDR1>,... Src IP must match specified
- CIDR(s)</p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p>D:<CIDR1>,... Dst IP must match specified
- CIDR(s)</p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p>B:<CIDR1>,... Both src and dst addresses must
- match</p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p>E:<CIDR1>,... Either src or dst address must
- match</p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p>P:<list> Must be one of the listed packets where
- the list corresponds to the packet number in the capture
- file. Ex: −x P:1−5,9,15 would only send packets
- 1 through 5, 9 and 15.</p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p>F:"<filter>" BPF filter. See the
- <b>tcpdump(1)</b> man page for syntax.</p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−X or exclude</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Specifies which packets from the capture file(s) to NOT
- send. Can be one of:</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p>S:<CIDR1>,... Src IP must match specified
- CIDR(s)</p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p>D:<CIDR1>,... Dst IP must match specified
- CIDR(s)</p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p>B:<CIDR1>,... Both src and dst addresses must
- match</p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p>E:<CIDR1>,... Either src or dst address must
- match</p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p>P:<list> Must be one of the listed packets where
- the list corresponds to the packet number in the capture
- file. Ex: −X P:1−5,9,15 would send all packets
- except 1 through 5, 9 and 15.</p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−1 or one_at_a_time</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Resend one packet at a time, once for each keypress.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−2 or l2data</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Specifies a string of comma seperated numbers in hex to
- be used instead of the Layer 2 header in the packet. Useful
- for converting between 802.x types or adding a header when
- the pcap file doesn’t contain a header (as in the case
- of DLT_RAW). Currently this only supports the following
- pcap(3) types: DLT_EN10MB, DLT_LINUX_SLL, DLT_CHDLC and
- DLT_RAW.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>−4 or portmap</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Specify a port mapping, where the mapping looks like:<br>
- <FROMPORT1>:<TOPORT1>,<FROMPORT2>:<TOPORT2><br>
- For example, if this mapping was specified:<br>
- 80:8080<br>
- then any packets with a source or destination port of 80
- would be changed to 8080. This option can be specified
- multiple times to specify multiple mappings. Mappings are
- not transitive: each source or destination port is mapped
- only once.</p>
- </td>
- </table>
- <a name="SIGNALS"></a>
- <h2>SIGNALS</h2>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><i>Tcpreplay</i> understands the following signals:</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>SIGUSR1</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Suspend tcpreplay.</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p><b>SIGCONT</b></p></td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="21%"></td>
- <td width="77%">
- <p>Restart tcpreplay after it has been suspended.</p>
- </td>
- </table>
- <a name="SEE ALSO"></a>
- <h2>SEE ALSO</h2>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p>tcpdump(1), tcpprep(1), capinfo(1), editcap(1)</p>
- </td>
- </table>
- <a name="AUTHORS"></a>
- <h2>AUTHORS</h2>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p>Aaron Turner <aturner@pobox.com><br>
- Matt Undy, Anzen Computing.<br>
- Matt Bing <mbing@nfr.net></p>
- </td>
- </table>
- <a name="AVAILABILITY"></a>
- <h2>AVAILABILITY</h2>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p>The current version is available via HTTP:</p>
- </td>
- </table>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="20%"></td>
- <td width="79%">
- <p><i>http://www.sourceforge.net/projects/tcpreplay/</i></p></td>
- </table>
- <a name="LIMITATIONS"></a>
- <h2>LIMITATIONS</h2>
- <!-- INDENTATION -->
- <table width="100%" border=0 rules="none" frame="void"
- cols="2" cellspacing="0" cellpadding="0">
- <tr valign="top" align="left">
- <td width="10%"></td>
- <td width="89%">
- <p>Please see the tcpreplay FAQ for a list of limitations
- and any possible work−arounds:
- <i>http://tcpreplay.sourceforge.net/</i></p>
- </td>
- </table>
- <hr>
- </body>
- </html>
|