tcpreplay-edit.1 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735
  1. .TH TCPREPLAY 1 2010-04-04 "(tcpreplay )" "Programmer's Manual"
  2. .\" DO NOT EDIT THIS FILE (tcpreplay-edit.1)
  3. .\"
  4. .\" It has been AutoGen-ed April 4, 2010 at 05:59:20 PM by AutoGen 5.9.9
  5. .\" From the definitions tcpreplay_opts.def
  6. .\" and the template file agman1.tpl
  7. .\"
  8. .SH NAME
  9. tcpreplay \- Replay network traffic stored in pcap files
  10. .SH SYNOPSIS
  11. .B tcpreplay
  12. .\" Mixture of short (flag) options and long options
  13. .RB [ \-\fIflag\fP " [\fIvalue\fP]]... [" \--\fIopt-name\fP " [[=| ]\fIvalue\fP]]..."
  14. .br
  15. .in +8
  16. <pcap_file(s)>
  17. .PP
  18. tcpreplay is a tool for replaying network traffic from files saved with
  19. tcpdump or other tools which write pcap(3) files.
  20. .SH "DESCRIPTION"
  21. This manual page briefly documents the \fBtcpreplay\fP command.
  22. The basic operation of tcpreplay is to resend all packets from the
  23. input file(s) at the speed at which they were recorded, or a specified
  24. data rate, up to as fast as the hardware is capable.
  25. Optionally, the traffic can be split between two interfaces, written to
  26. files, filtered and edited in various ways, providing the means to test
  27. firewalls, NIDS and other network devices.
  28. For more details, please see the Tcpreplay Manual at:
  29. http://tcpreplay.synfin.net/trac/wiki/manual
  30. .SH OPTIONS
  31. .SS ""
  32. .TP
  33. .BR \-r " \fIstring\fP, " \--portmap "=" \fIstring\fP
  34. Rewrite TCP/UDP ports.
  35. This option may appear up to \-1 times.
  36. .sp
  37. Specify a list of comma delimited port mappingings consisting of
  38. colon delimited port number pairs. Each colon delimited port pair
  39. consists of the port to match followed by the port number to rewrite.
  40. Examples:
  41. .nf
  42. \--portmap=80:8000 \--portmap=8080:80 # 80->8000 and 8080->80
  43. \--portmap=8000,8080,88888:80 # 3 different ports become 80
  44. \--portmap=8000-8999:80 # ports 8000 to 8999 become 80
  45. .fi
  46. .TP
  47. .BR \-s " \fInumber\fP, " \--seed "=" \fInumber\fP
  48. Randomize src/dst IPv4/v6 addresses w/ given seed.
  49. This option may appear up to 1 times.
  50. This option takes an integer number as its argument.
  51. .sp
  52. Causes the source and destination IPv4/v6 addresses to be pseudo
  53. randomized but still maintain client/server relationships.
  54. Since the randomization is deterministic based on the seed,
  55. you can reuse the same seed value to recreate the traffic.
  56. .TP
  57. .BR \-N " \fIstring\fP, " \--pnat "=" \fIstring\fP
  58. Rewrite IPv4/v6 addresses using pseudo-NAT.
  59. This option may appear up to 2 times.
  60. This option must not appear in combination with any of the following options:
  61. srcipmap.
  62. .sp
  63. Takes a comma delimited series of colon delimited CIDR
  64. netblock pairs. Each netblock pair is evaluated in order against
  65. the IP addresses. If the IP address in the packet matches the
  66. first netblock, it is rewriten using the second netblock as a
  67. mask against the high order bits.
  68. IPv4 Example:
  69. .nf
  70. \--pnat=192.168.0.0/16:10.77.0.0/16,172.16.0.0/12:10.1.0.0/24
  71. .fi
  72. IPv6 Example:
  73. .nf
  74. \--pnat=[2001:db8::/32]:[dead::/16],[2001:db8::/32]:[::ffff:0:0/96]
  75. .fi
  76. .TP
  77. .BR \-S " \fIstring\fP, " \--srcipmap "=" \fIstring\fP
  78. Rewrite source IPv4/v6 addresses using pseudo-NAT.
  79. This option may appear up to 1 times.
  80. This option must not appear in combination with any of the following options:
  81. pnat.
  82. .sp
  83. Works just like the \--pnat option, but only affects the source IP
  84. addresses in the IPv4/v6 header.
  85. .TP
  86. .BR \-D " \fIstring\fP, " \--dstipmap "=" \fIstring\fP
  87. Rewrite destination IPv4/v6 addresses using pseudo-NAT.
  88. This option may appear up to 1 times.
  89. This option must not appear in combination with any of the following options:
  90. pnat.
  91. .sp
  92. Works just like the \--pnat option, but only affects the destination IP
  93. addresses in the IPv4/v6 header.
  94. .TP
  95. .BR \-e " \fIstring\fP, " \--endpoints "=" \fIstring\fP
  96. Rewrite IP addresses to be between two endpoints.
  97. This option may appear up to 1 times.
  98. This option must appear in combination with the following options:
  99. cachefile.
  100. .sp
  101. Takes a pair of colon delimited IPv4/v6 addresses which will be used to rewrite
  102. all traffic to appear to be between the two IP's.
  103. IPv4 Example:
  104. .nf
  105. \--endpoints=172.16.0.1:172.16.0.2
  106. .fi
  107. IPv6 Example:
  108. .nf
  109. \--endpoints=[2001:db8::dead:beef]:[::ffff:0:0:ac:f:0:2]
  110. .fi
  111. .TP
  112. .BR \-b ", " \--skipbroadcast
  113. Skip rewriting broadcast/multicast IPv4/v6 addresses.
  114. .sp
  115. By default \--seed, \--pnat and \--endpoints will rewrite
  116. broadcast and multicast IPv4/v6 and MAC addresses. Setting this flag
  117. will keep broadcast/multicast IPv4/v6 and MAC addresses from being rewritten.
  118. .TP
  119. .BR \-C ", " \--fixcsum
  120. Force recalculation of IPv4/TCP/UDP header checksums.
  121. .sp
  122. Causes each IPv4/v6 packet to have it's checksums recalcualted and
  123. fixed. Automatically enabled for packets modified with \fB--seed\fP,
  124. \fB--pnat\fP, \fB--endpoints\fP or \fB--fixlen\fP.
  125. .TP
  126. .BR \-m " \fInumber\fP, " \--mtu "=" \fInumber\fP
  127. Override default MTU length (1500 bytes).
  128. This option may appear up to 1 times.
  129. This option takes an integer number as its argument.
  130. The value of \fInumber\fP is constrained to being:
  131. .in +4
  132. .nf
  133. .na
  134. in the range 1 through MAXPACKET
  135. .fi
  136. .in -4
  137. .sp
  138. Override the default 1500 byte MTU size for determining the maximum padding length
  139. (--fixlen=pad) or when truncating (--mtu-trunc).
  140. .TP
  141. .BR \--mtu-trunc
  142. Truncate packets larger then specified MTU.
  143. This option may appear up to 1 times.
  144. .sp
  145. Similar to \--fixlen, this option will truncate data in packets from Layer 3 and above to be
  146. no larger then the MTU.
  147. .TP
  148. .BR \-E ", " \--efcs
  149. Remove Ethernet checksums (FCS) from end of frames.
  150. .sp
  151. Note, this option is pretty dangerous! We don't actually check to see if a FCS
  152. actually exists in the frame, we just blindly delete the last two bytes. Hence,
  153. you should only use this if you know know that your OS provides the FCS when
  154. reading raw packets.
  155. .TP
  156. .BR \--ttl "=\fIstring\fP"
  157. Modify the IPv4/v6 TTL/Hop Limit.
  158. .sp
  159. Allows you to modify the TTL/Hop Limit of all the IPv4/v6 packets. Specify a number to hard-code
  160. the value or +/-value to increase or decrease by the value provided (limited to 1-255).
  161. Examples:
  162. .nf
  163. \--ttl=10
  164. \--ttl=+7
  165. \--ttl=-64
  166. .fi
  167. .TP
  168. .BR \--tos "=\fInumber\fP"
  169. Set the IPv4 TOS/DiffServ/ECN byte.
  170. This option may appear up to 1 times.
  171. This option takes an integer number as its argument.
  172. The value of \fInumber\fP is constrained to being:
  173. .in +4
  174. .nf
  175. .na
  176. in the range 0 through 255
  177. .fi
  178. .in -4
  179. .sp
  180. Allows you to override the TOS (also known as DiffServ/ECN) value in IPv4.
  181. .TP
  182. .BR \--tclass "=\fInumber\fP"
  183. Set the IPv6 Traffic Class byte.
  184. This option may appear up to 1 times.
  185. This option takes an integer number as its argument.
  186. The value of \fInumber\fP is constrained to being:
  187. .in +4
  188. .nf
  189. .na
  190. in the range 0 through 255
  191. .fi
  192. .in -4
  193. .sp
  194. Allows you to override the IPv6 Traffic Class field.
  195. .TP
  196. .BR \--flowlabel "=\fInumber\fP"
  197. Set the IPv6 Flow Label.
  198. This option may appear up to 1 times.
  199. This option takes an integer number as its argument.
  200. The value of \fInumber\fP is constrained to being:
  201. .in +4
  202. .nf
  203. .na
  204. in the range 0 through 1048575
  205. .fi
  206. .in -4
  207. .sp
  208. Allows you to override the 20bit IPv6 Flow Label field. Has no effect on IPv4
  209. packets.
  210. .TP
  211. .BR \-F " \fIstring\fP, " \--fixlen "=" \fIstring\fP
  212. Pad or truncate packet data to match header length.
  213. This option may appear up to 1 times.
  214. .sp
  215. Packets may be truncated during capture if the snaplen is smaller then the
  216. packet. This option allows you to modify the packet to pad the packet back
  217. out to the size stored in the IPv4/v6 header or rewrite the IP header total length
  218. to reflect the stored packet length.
  219. .sp 1
  220. \fBpad\fP
  221. Truncated packets will be padded out so that the packet length matches the
  222. IPv4 total length
  223. .sp 1
  224. \fBtrunc\fP
  225. Truncated packets will have their IPv4 total length field rewritten to match
  226. the actual packet length
  227. .sp 1
  228. \fBdel\fP
  229. Delete the packet
  230. .TP
  231. .BR \--skipl2broadcast
  232. Skip rewriting broadcast/multicast Layer 2 addresses.
  233. .sp
  234. By default, editing Layer 2 addresses will rewrite
  235. broadcast and multicast MAC addresses. Setting this flag
  236. will keep broadcast/multicast MAC addresses from being rewritten.
  237. .TP
  238. .BR \--dlt "=\fIstring\fP"
  239. Override output DLT encapsulation.
  240. This option may appear up to 1 times.
  241. .sp
  242. By default, no DLT (data link type) conversion will be made.
  243. To change the DLT type of the output pcap, select one of the following values:
  244. .sp 1
  245. \fBenet\fP
  246. Ethernet aka DLT_EN10MB
  247. .sp 1
  248. \fBhdlc\fP
  249. Cisco HDLC aka DLT_C_HDLC
  250. .sp 1
  251. \fBuser\fP
  252. User specified Layer 2 header and DLT type
  253. .br
  254. .TP
  255. .BR \--enet-dmac "=\fIstring\fP"
  256. Override destination ethernet MAC addresses.
  257. This option may appear up to 1 times.
  258. .sp
  259. Takes a pair of comma deliminated ethernet MAC addresses which
  260. will replace the destination MAC address of outbound packets.
  261. The first MAC address will be used for the server to client traffic
  262. and the optional second MAC address will be used for the client
  263. to server traffic.
  264. Example:
  265. .nf
  266. \--enet-dmac=00:12:13:14:15:16,00:22:33:44:55:66
  267. .fi
  268. .TP
  269. .BR \--enet-smac "=\fIstring\fP"
  270. Override source ethernet MAC addresses.
  271. This option may appear up to 1 times.
  272. .sp
  273. Takes a pair of comma deliminated ethernet MAC addresses which
  274. will replace the source MAC address of outbound packets.
  275. The first MAC address will be used for the server to client traffic
  276. and the optional second MAC address will be used for the client
  277. to server traffic.
  278. Example:
  279. .nf
  280. \--enet-smac=00:12:13:14:15:16,00:22:33:44:55:66
  281. .fi
  282. .TP
  283. .BR \--enet-vlan "=\fIstring\fP"
  284. Specify ethernet 802.1q VLAN tag mode.
  285. This option may appear up to 1 times.
  286. .sp
  287. Allows you to rewrite ethernet frames to add a 802.1q header to standard 802.3
  288. ethernet headers or remove the 802.1q VLAN tag information.
  289. .sp 1
  290. \fBadd\fP
  291. Rewrites the existing 802.3 ethernet header as an 802.1q VLAN header
  292. .sp 1
  293. \fBdel\fP
  294. Rewrites the existing 802.1q VLAN header as an 802.3 ethernet header
  295. .TP
  296. .BR \--enet-vlan-tag "=\fInumber\fP"
  297. Specify the new ethernet 802.1q VLAN tag value.
  298. This option may appear up to 1 times.
  299. This option must appear in combination with the following options:
  300. enet-vlan.
  301. This option takes an integer number as its argument.
  302. The value of \fInumber\fP is constrained to being:
  303. .in +4
  304. .nf
  305. .na
  306. in the range 0 through 4095
  307. .fi
  308. .in -4
  309. .sp
  310. .TP
  311. .BR \--enet-vlan-cfi "=\fInumber\fP"
  312. Specify the ethernet 802.1q VLAN CFI value.
  313. This option may appear up to 1 times.
  314. This option must appear in combination with the following options:
  315. enet-vlan.
  316. This option takes an integer number as its argument.
  317. The value of \fInumber\fP is constrained to being:
  318. .in +4
  319. .nf
  320. .na
  321. in the range 0 through 1
  322. .fi
  323. .in -4
  324. .sp
  325. .TP
  326. .BR \--enet-vlan-pri "=\fInumber\fP"
  327. Specify the ethernet 802.1q VLAN priority.
  328. This option may appear up to 1 times.
  329. This option must appear in combination with the following options:
  330. enet-vlan.
  331. This option takes an integer number as its argument.
  332. The value of \fInumber\fP is constrained to being:
  333. .in +4
  334. .nf
  335. .na
  336. in the range 0 through 7
  337. .fi
  338. .in -4
  339. .sp
  340. .TP
  341. .BR \--hdlc-control "=\fInumber\fP"
  342. Specify HDLC control value.
  343. This option may appear up to 1 times.
  344. This option takes an integer number as its argument.
  345. .sp
  346. The Cisco HDLC header has a 1 byte "control" field. Apparently this should
  347. always be 0, but if you can use any 1 byte value.
  348. .TP
  349. .BR \--hdlc-address "=\fInumber\fP"
  350. Specify HDLC address.
  351. This option may appear up to 1 times.
  352. This option takes an integer number as its argument.
  353. .sp
  354. The Cisco HDLC header has a 1 byte "address" field which has two valid
  355. values:
  356. .sp 1
  357. \fB0x0F\fP
  358. Unicast
  359. .sp 1
  360. \fB0xBF\fP
  361. Broadcast
  362. .br
  363. You can however specify any single byte value.
  364. .TP
  365. .BR \--user-dlt "=\fInumber\fP"
  366. Set output file DLT type.
  367. This option may appear up to 1 times.
  368. This option takes an integer number as its argument.
  369. .sp
  370. Set the DLT value of the output pcap file.
  371. .TP
  372. .BR \--user-dlink "=\fIstring\fP"
  373. Rewrite Data-Link layer with user specified data.
  374. This option may appear up to 2 times.
  375. .sp
  376. Provide a series of comma deliminated hex values which will be
  377. used to rewrite or create the Layer 2 header of the packets.
  378. The first instance of this argument will rewrite both server
  379. and client traffic, but if this argument is specified a second
  380. time, it will be used for the client traffic.
  381. Example:
  382. .nf
  383. \--user-dlink=01,02,03,04,05,06,00,1A,2B,3C,4D,5E,6F,08,00
  384. .fi
  385. .TP
  386. .BR \-d " \fInumber\fP, " \--dbug "=" \fInumber\fP
  387. Enable debugging output.
  388. This option may appear up to 1 times.
  389. This option takes an integer number as its argument.
  390. The value of \fInumber\fP is constrained to being:
  391. .in +4
  392. .nf
  393. .na
  394. in the range 0 through 5
  395. .fi
  396. .in -4
  397. The default \fInumber\fP for this option is:
  398. .ti +4
  399. 0
  400. .sp
  401. If configured with \--enable-debug, then you can specify a verbosity
  402. level for debugging output. Higher numbers increase verbosity.
  403. .TP
  404. .BR \-q ", " \--quiet
  405. Quiet mode.
  406. .sp
  407. Print nothing except the statistics at the end of the run
  408. .TP
  409. .BR \-T " \fIstring\fP, " \--timer "=" \fIstring\fP
  410. Select packet timing mode: select, ioport, rdtsc, gtod, nano, abstime.
  411. This option may appear up to 1 times.
  412. The default \fIstring\fP for this option is:
  413. .ti +4
  414. gtod
  415. .sp
  416. Allows you to select the packet timing method to use:
  417. .sp
  418. .IR "nano"
  419. - Use nanosleep() API
  420. .sp
  421. .IR "select"
  422. - Use select() API
  423. .sp
  424. .IR "ioport"
  425. - Write to the i386 IO Port 0x80
  426. .sp
  427. .IR "rdtsc"
  428. - Use the x86/x86_64/PPC RDTSC
  429. .sp
  430. .IR "gtod [default]"
  431. - Use a gettimeofday() loop
  432. .sp
  433. .IR "abstime"
  434. - Use OS X's AbsoluteTime API
  435. .br
  436. .TP
  437. .BR \--sleep-accel "=\fInumber\fP"
  438. Reduce the amount of time to sleep by specified usec.
  439. This option takes an integer number as its argument.
  440. The default \fInumber\fP for this option is:
  441. .ti +4
  442. 0
  443. .sp
  444. Reduce the amount of time we would normally sleep between two packets by the
  445. specified number of usec. This provides a "fuzz factor" to compensate for
  446. running on a non-RTOS and other processes using CPU time. Default is disabled.
  447. .TP
  448. .BR \--rdtsc-clicks "=\fInumber\fP"
  449. Specify the RDTSC clicks/usec.
  450. This option may appear up to 1 times.
  451. This option takes an integer number as its argument.
  452. The default \fInumber\fP for this option is:
  453. .ti +4
  454. 0
  455. .sp
  456. Override the calculated number of RDTSC clicks/usec which is often the speed of the
  457. CPU in Mhz. Only useful if you specified \fB--timer=rdtsc\fP
  458. .TP
  459. .BR \-v ", " \--verbose
  460. Print decoded packets via tcpdump to STDOUT.
  461. This option may appear up to 1 times.
  462. .sp
  463. .TP
  464. .BR \-A " \fIstring\fP, " \--decode "=" \fIstring\fP
  465. Arguments passed to tcpdump decoder.
  466. This option may appear up to 1 times.
  467. This option must appear in combination with the following options:
  468. verbose.
  469. .sp
  470. When enabling verbose mode (\fB-v\fP) you may also specify one or more
  471. additional arguments to pass to \fBtcpdump\fP to modify the way packets
  472. are decoded. By default, \-n and \-l are used. Be sure to
  473. quote the arguments like: \-A "-axxx" so that they are not interpreted
  474. by tcpreplay. Please see the tcpdump(1) man page for a complete list of
  475. options.
  476. .TP
  477. .BR \-K ", " \--enable-file-cache
  478. Enable caching of packets to internal memory.
  479. This option must appear in combination with the following options:
  480. loop.
  481. .sp
  482. Cache pcap file(s) the first time they are cached in RAM so that subsequent
  483. loops don't incurr any disk I/O latency in order to increase performance. Make
  484. sure you have enough free RAM to store the entire pcap file(s) in memory or the
  485. system will swap and performance will suffer.
  486. .TP
  487. .BR \--preload-pcap
  488. Preloads packets into RAM before sending.
  489. .sp
  490. This option loads the specified pcap(s) into RAM before starting to send in order
  491. to improve replay performance while introducing a startup performance hit.
  492. Preloading can be used with or without \fB--loop\fP and implies
  493. \fB--enable-file-cache\fP.
  494. .TP
  495. .BR \-c " \fIstring\fP, " \--cachefile "=" \fIstring\fP
  496. Split traffic via a tcpprep cache file.
  497. This option may appear up to 1 times.
  498. .sp
  499. .TP
  500. .BR \-i " \fIstring\fP, " \--intf1 "=" \fIstring\fP
  501. Server/primary traffic output interface.
  502. This option may appear up to 1 times.
  503. .sp
  504. .TP
  505. .BR \-I " \fIstring\fP, " \--intf2 "=" \fIstring\fP
  506. Client/secondary traffic output interface.
  507. This option may appear up to 1 times.
  508. This option must appear in combination with the following options:
  509. cachefile.
  510. .sp
  511. .TP
  512. .BR \--listnics
  513. List available network interfaces and exit.
  514. .sp
  515. .TP
  516. .BR \-l " \fInumber\fP, " \--loop "=" \fInumber\fP
  517. Loop through the capture file X times.
  518. This option may appear up to 1 times.
  519. This option takes an integer number as its argument.
  520. The value of \fInumber\fP is constrained to being:
  521. .in +4
  522. .nf
  523. .na
  524. greater than or equal to 0
  525. .fi
  526. .in -4
  527. The default \fInumber\fP for this option is:
  528. .ti +4
  529. 1
  530. .sp
  531. .TP
  532. .BR \--pktlen
  533. Override the snaplen and use the actual packet len.
  534. This option may appear up to 1 times.
  535. .sp
  536. By default, tcpreplay will send packets based on the size of the "snaplen"
  537. stored in the pcap file which is usually the correct thing to do. However,
  538. occasionally, tools will store more bytes then told to. By specifying this
  539. option, tcpreplay will ignore the snaplen field and instead try to send
  540. packets based on the original packet length. Bad things may happen if
  541. you specify this option.
  542. .TP
  543. .BR \-L " \fInumber\fP, " \--limit "=" \fInumber\fP
  544. Limit the number of packets to send.
  545. This option may appear up to 1 times.
  546. This option takes an integer number as its argument.
  547. The value of \fInumber\fP is constrained to being:
  548. .in +4
  549. .nf
  550. .na
  551. greater than or equal to 1
  552. .fi
  553. .in -4
  554. The default \fInumber\fP for this option is:
  555. .ti +4
  556. \-1
  557. .sp
  558. By default, tcpreplay will send all the packets. Alternatively, you can
  559. specify a maximum number of packets to send.
  560. .TP
  561. .BR \-x " \fIstring\fP, " \--multiplier "=" \fIstring\fP
  562. Modify replay speed to a given multiple.
  563. This option may appear up to 1 times.
  564. This option must not appear in combination with any of the following options:
  565. pps, mbps, oneatatime, topspeed.
  566. .sp
  567. Specify a floating point value to modify the packet replay speed.
  568. Examples:
  569. .nf
  570. 2.0 will replay traffic at twice the speed captured
  571. 0.7 will replay traffic at 70% the speed captured
  572. .fi
  573. .TP
  574. .BR \-p " \fInumber\fP, " \--pps "=" \fInumber\fP
  575. Replay packets at a given packets/sec.
  576. This option may appear up to 1 times.
  577. This option must not appear in combination with any of the following options:
  578. multiplier, mbps, oneatatime, topspeed.
  579. This option takes an integer number as its argument.
  580. .sp
  581. .TP
  582. .BR \-M " \fIstring\fP, " \--mbps "=" \fIstring\fP
  583. Replay packets at a given Mbps.
  584. This option may appear up to 1 times.
  585. This option must not appear in combination with any of the following options:
  586. multiplier, pps, oneatatime, topspeed.
  587. .sp
  588. Specify a floating point value for the Mbps rate that tcpreplay
  589. should send packets at.
  590. .TP
  591. .BR \-t ", " \--topspeed
  592. Replay packets as fast as possible.
  593. This option must not appear in combination with any of the following options:
  594. mbps, multiplier, pps, oneatatime.
  595. .sp
  596. .TP
  597. .BR \-o ", " \--oneatatime
  598. Replay one packet at a time for each user input.
  599. This option must not appear in combination with any of the following options:
  600. mbps, pps, multiplier, topspeed.
  601. .sp
  602. Allows you to step through one or more packets at a time.
  603. .TP
  604. .BR \--pps-multi "=\fInumber\fP"
  605. Number of packets to send for each time interval.
  606. This option must appear in combination with the following options:
  607. pps.
  608. This option takes an integer number as its argument.
  609. The value of \fInumber\fP is constrained to being:
  610. .in +4
  611. .nf
  612. .na
  613. greater than or equal to 1
  614. .fi
  615. .in -4
  616. The default \fInumber\fP for this option is:
  617. .ti +4
  618. 1
  619. .sp
  620. When trying to send packets at very high rates, the time between each packet
  621. can be so short that it is impossible to accurately sleep for the required
  622. period of time. This option allows you to send multiple packets at a time,
  623. thus allowing for longer sleep times which can be more accurately implemented.
  624. .TP
  625. .BR \-P ", " \--pid
  626. Print the PID of tcpreplay at startup.
  627. .sp
  628. .TP
  629. .BR \--stats "=\fInumber\fP"
  630. Print statistics every X seconds.
  631. This option takes an integer number as its argument.
  632. The value of \fInumber\fP is constrained to being:
  633. .in +4
  634. .nf
  635. .na
  636. greater than or equal to 1
  637. .fi
  638. .in -4
  639. .sp
  640. Note that this is very much a "best effort" and long delays between
  641. sending packets may cause equally long delays between printing statistics.
  642. .TP
  643. .BR \-V ", " \--version
  644. Print version information.
  645. .sp
  646. .TP
  647. .BR \-h ", " \--less-help
  648. Display less usage information and exit.
  649. .sp
  650. .TP
  651. .BR \-H , " \--help"
  652. Display usage information and exit.
  653. .TP
  654. .BR \-! , " \--more-help"
  655. Extended usage information passed thru pager.
  656. .TP
  657. .BR \- " [\fIrcfile\fP]," " \--save-opts" "[=\fIrcfile\fP]"
  658. Save the option state to \fIrcfile\fP. The default is the \fIlast\fP
  659. configuration file listed in the \fBOPTION PRESETS\fP section, below.
  660. .TP
  661. .BR \- " \fIrcfile\fP," " \--load-opts" "=\fIrcfile\fP," " \--no-load-opts"
  662. Load options from \fIrcfile\fP.
  663. The \fIno-load-opts\fP form will disable the loading
  664. of earlier RC/INI files. \fI--no-load-opts\fP is handled early,
  665. out of order.
  666. .SH OPTION PRESETS
  667. Any option that is not marked as \fInot presettable\fP may be preset
  668. by loading values from configuration ("RC" or ".INI") file(s).
  669. The \fIhomerc\fP file is "\fI$$/\fP", unless that is a directory.
  670. In that case, the file "\fI.tcpreplayrc\fP"
  671. is searched for within that directory.
  672. .SH "SIGNALS"
  673. tcpreplay understands the following signals:
  674. .sp
  675. .IR "\fBSIGUSR1\fP"
  676. Suspend tcpreplay
  677. .sp
  678. .IR "\fBSIGCONT\fP"
  679. Restart tcpreplay
  680. .br
  681. .SH "SEE ALSO"
  682. tcpreplay-edit(1), tcpdump(1), tcpprep(1), tcprewrite(1), libnet(3)
  683. .SH "BUGS"
  684. tcpreplay can only send packets as fast as your computer's interface,
  685. processor, disk and system bus will allow.
  686. Packet timing at high speeds is a black art and very OS/CPU dependent.
  687. Replaying captured traffic may simulate odd or broken conditions on your
  688. network and cause all sorts of problems.
  689. In most cases, you can not replay traffic back to/at a server.
  690. Some operating systems by default do not allow for forging source MAC
  691. addresses. Please consult your operating system's documentation and the
  692. tcpreplay FAQ if you experience this issue.
  693. .SH AUTHOR
  694. Copyright 2000-2010 Aaron Turner
  695. For support please use the tcpreplay-users@lists.sourceforge.net mailing list.
  696. The latest version of this software is always available from:
  697. http://tcpreplay.synfin.net/
  698. .PP
  699. Released under the Free BSD License.
  700. .PP
  701. This manual page was \fIAutoGen\fP-erated from the \fBtcpreplay\fP
  702. option definitions.