tcpreplay.1 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635
  1. .de1 NOP
  2. . it 1 an-trap
  3. . if \\n[.$] \,\\$*\/
  4. ..
  5. .ie t \
  6. .ds B-Font [CB]
  7. .ds I-Font [CI]
  8. .ds R-Font [CR]
  9. .el \
  10. .ds B-Font B
  11. .ds I-Font I
  12. .ds R-Font R
  13. .TH tcpreplay 1 "12 Jul 2024" "tcpreplay" "User Commands"
  14. .\"
  15. .\" DO NOT EDIT THIS FILE (in-mem file)
  16. .\"
  17. .\" It has been AutoGen-ed
  18. .\" From the definitions ../../src/tcpreplay_opts.def
  19. .\" and the template file agman-cmd.tpl
  20. .SH NAME
  21. \f\*[B-Font]tcpreplay\fP
  22. \- Replay network traffic stored in pcap files
  23. .SH SYNOPSIS
  24. \f\*[B-Font]tcpreplay\fP
  25. .\" Mixture of short (flag) options and long options
  26. [\f\*[B-Font]\-flags\f[]]
  27. [\f\*[B-Font]\-flag\f[] [\f\*[I-Font]value\f[]]]
  28. [\f\*[B-Font]\-\-option-name\f[][[=| ]\f\*[I-Font]value\f[]]]
  29. <pcap_file(s)> | <pcap_dir(s)>
  30. .sp \n(Ppu
  31. .ne 2
  32. tcpreplay is a tool for replaying network traffic from files saved with
  33. tcpdump or other tools which write pcap(3) files.
  34. .SH "DESCRIPTION"
  35. The basic operation of tcpreplay is to resend all packets from the
  36. input file(s) at the speed at which they were recorded, or a specified
  37. data rate, up to as fast as the hardware is capable.
  38. .sp
  39. Optionally, the traffic can be split between two interfaces, written to
  40. files, filtered and edited in various ways, providing the means to test
  41. firewalls, NIDS and other network devices.
  42. .sp
  43. For more details, please see the Tcpreplay Manual at:
  44. http://tcpreplay.appneta.com
  45. .SH "OPTIONS"
  46. .TP
  47. .NOP \f\*[B-Font]\-d\f[] \f\*[I-Font]number\f[], \f\*[B-Font]\-\-dbug\f[]=\f\*[I-Font]number\f[]
  48. Enable debugging output.
  49. This option may appear up to 1 times.
  50. This option takes an integer number as its argument.
  51. The value of
  52. \f\*[I-Font]number\f[]
  53. is constrained to being:
  54. .in +4
  55. .nf
  56. .na
  57. in the range 0 through 5
  58. .fi
  59. .in -4
  60. The default
  61. \f\*[I-Font]number\f[]
  62. for this option is:
  63. .ti +4
  64. 0
  65. .sp
  66. If configured with \--enable-debug, then you can specify a verbosity
  67. level for debugging output. Higher numbers increase verbosity.
  68. .TP
  69. .NOP \f\*[B-Font]\-q\f[], \f\*[B-Font]\-\-quiet\f[]
  70. Quiet mode.
  71. .sp
  72. Print nothing except the statistics at the end of the run
  73. .TP
  74. .NOP \f\*[B-Font]\-T\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-timer\f[]=\f\*[I-Font]string\f[]
  75. Select packet timing mode: select, ioport, gtod, nano.
  76. This option may appear up to 1 times.
  77. The default
  78. \f\*[I-Font]string\f[]
  79. for this option is:
  80. .ti +4
  81. gtod
  82. .sp
  83. Allows you to select the packet timing method to use:
  84. .sp
  85. .IR "nano"
  86. - Use nanosleep() API
  87. .sp
  88. .IR "select"
  89. - Use select() API
  90. .sp
  91. .IR "ioport"
  92. - Write to the i386 IO Port 0x80
  93. .sp
  94. .IR "gtod [default]"
  95. - Use a gettimeofday() loop
  96. .br
  97. .TP
  98. .NOP \f\*[B-Font]\-\-maxsleep\f[]=\f\*[I-Font]number\f[]
  99. Sleep for no more then X milliseconds between packets.
  100. This option takes an integer number as its argument.
  101. The default
  102. \f\*[I-Font]number\f[]
  103. for this option is:
  104. .ti +4
  105. 0
  106. .sp
  107. Set a limit for the maximum number of milliseconds that tcpreplay will sleep
  108. between packets. Effectively prevents long delays between packets without
  109. effecting the majority of packets. Default is disabled.
  110. .TP
  111. .NOP \f\*[B-Font]\-v\f[], \f\*[B-Font]\-\-verbose\f[]
  112. Print decoded packets via tcpdump to STDOUT.
  113. This option may appear up to 1 times.
  114. .sp
  115. .TP
  116. .NOP \f\*[B-Font]\-A\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-decode\f[]=\f\*[I-Font]string\f[]
  117. Arguments passed to tcpdump decoder.
  118. This option may appear up to 1 times.
  119. This option must appear in combination with the following options:
  120. verbose.
  121. .sp
  122. When enabling verbose mode (\fB-v\fP) you may also specify one or more
  123. additional arguments to pass to \fBtcpdump\fP to modify the way packets
  124. are decoded. By default, \-n and \-l are used. Be sure to
  125. quote the arguments like: \-A "-axxx" so that they are not interpreted
  126. by tcpreplay. Please see the tcpdump(1) man page for a complete list of
  127. options.
  128. .TP
  129. .NOP \f\*[B-Font]\-K\f[], \f\*[B-Font]\-\-preload\-pcap\f[]
  130. Preloads packets into RAM before sending.
  131. .sp
  132. This option loads the specified pcap(s) into RAM before starting to send in order
  133. to improve replay performance while introducing a startup performance hit.
  134. Preloading can be used with or without \fB--loop\fP. This option also suppresses
  135. flow statistics collection for every iteration, which can significantly reduce
  136. memory usage. Flow statistics are predicted based on options supplied and
  137. statistics collected from the first loop iteration.
  138. .TP
  139. .NOP \f\*[B-Font]\-c\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-cachefile\f[]=\f\*[I-Font]string\f[]
  140. Split traffic via a tcpprep cache file.
  141. This option may appear up to 1 times.
  142. This option must appear in combination with the following options:
  143. intf2.
  144. This option must not appear in combination with any of the following options:
  145. dualfile.
  146. .sp
  147. If you have a pcap file you would like to use to send bi-directional
  148. traffic through a device (firewall, router, IDS, etc) then using tcpprep
  149. you can create a cachefile which tcpreplay will use to split the traffic
  150. across two network interfaces.
  151. .TP
  152. .NOP \f\*[B-Font]\-2\f[], \f\*[B-Font]\-\-dualfile\f[]
  153. Replay two files at a time from a network tap.
  154. This option may appear up to 1 times.
  155. This option must appear in combination with the following options:
  156. intf2.
  157. This option must not appear in combination with any of the following options:
  158. cachefile.
  159. .sp
  160. If you captured network traffic using a network tap, then you can end up with
  161. two pcap files- one for each direction. This option will replay these two
  162. files at the same time, one on each interface and inter-mix them using the
  163. timestamps in each.
  164. .TP
  165. .NOP \f\*[B-Font]\-i\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-intf1\f[]=\f\*[I-Font]string\f[]
  166. Client to server/RX/primary traffic output interface.
  167. This option may appear up to 1 times.
  168. This option is a member of the intf1 class of options.
  169. .sp
  170. Required network interface used to send either all traffic or traffic which is
  171. marked as 'primary' via tcpprep. Primary traffic is usually client-to-server
  172. or inbound (RX) on khial virtual interfaces.
  173. .TP
  174. .NOP \f\*[B-Font]\-I\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-intf2\f[]=\f\*[I-Font]string\f[]
  175. Server to client/TX/secondary traffic output interface.
  176. This option may appear up to 1 times.
  177. .sp
  178. Optional network interface used to send traffic which is marked as 'secondary'
  179. via tcpprep. Secondary traffic is usually server-to-client or outbound
  180. (TX) on khial virtual interfaces. Generally, it only makes sense to use this
  181. option with \--cachefile.
  182. .TP
  183. .NOP \f\*[B-Font]\-w\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-write\f[]=\f\*[I-Font]string\f[]
  184. Pcap file to receive traffic outputs.
  185. This option may appear up to 1 times.
  186. This option is a member of the intf1 class of options.
  187. This option must not appear in combination with any of the following options:
  188. intf2.
  189. .sp
  190. Optional pcap file name used to receive traffic.
  191. .TP
  192. .NOP \f\*[B-Font]\-\-include\f[]=\f\*[I-Font]string\f[]
  193. Send only selected packet numbers.
  194. This option may appear up to 1 times.
  195. This option must not appear in combination with any of the following options:
  196. exclude.
  197. .sp
  198. Override default of processing all packets stored in the capture file and only
  199. send packets that are part of a supplied list of packet numbers.
  200. .sp
  201. .nf
  202. \-x P:1-5,9,15,72-
  203. .fi
  204. would skip packets 1 through 5, the 9th and 15th packet, and packets 72 until the
  205. end of the file
  206. .TP
  207. .NOP \f\*[B-Font]\-\-exclude\f[]=\f\*[I-Font]string\f[]
  208. Send all but selected packet numbers.
  209. This option may appear up to 1 times.
  210. This option must not appear in combination with any of the following options:
  211. include.
  212. .sp
  213. Override default of processing all packets stored in the capture file and only
  214. send packets that are NOT part of a supplied list of packet numbers.
  215. .sp
  216. .nf
  217. \-x P:1-5,9,15,72-
  218. .fi
  219. would skip packets 1 through 5, the 9th and 15th packet, and packets 72 until the
  220. end of the file
  221. .TP
  222. .NOP \f\*[B-Font]\-\-listnics\f[]
  223. List available network interfaces and exit.
  224. .sp
  225. .TP
  226. .NOP \f\*[B-Font]\-l\f[] \f\*[I-Font]number\f[], \f\*[B-Font]\-\-loop\f[]=\f\*[I-Font]number\f[]
  227. Loop through the capture file X times.
  228. This option may appear up to 1 times.
  229. This option takes an integer number as its argument.
  230. The value of
  231. \f\*[I-Font]number\f[]
  232. is constrained to being:
  233. .in +4
  234. .nf
  235. .na
  236. greater than or equal to 0
  237. .fi
  238. .in -4
  239. The default
  240. \f\*[I-Font]number\f[]
  241. for this option is:
  242. .ti +4
  243. 1
  244. .sp
  245. .TP
  246. .NOP \f\*[B-Font]\-\-loopdelay\-ms\f[]=\f\*[I-Font]number\f[]
  247. Delay between loops in milliseconds.
  248. This option must appear in combination with the following options:
  249. loop.
  250. This option must not appear in combination with any of the following options:
  251. loopdelay-ns.
  252. This option takes an integer number as its argument.
  253. The value of
  254. \f\*[I-Font]number\f[]
  255. is constrained to being:
  256. .in +4
  257. .nf
  258. .na
  259. greater than or equal to 0
  260. .fi
  261. .in -4
  262. The default
  263. \f\*[I-Font]number\f[]
  264. for this option is:
  265. .ti +4
  266. 0
  267. .sp
  268. .TP
  269. .NOP \f\*[B-Font]\-\-loopdelay\-ns\f[]=\f\*[I-Font]number\f[]
  270. Delay between loops in nanoseconds.
  271. This option must appear in combination with the following options:
  272. loop.
  273. This option must not appear in combination with any of the following options:
  274. loopdelay-ms.
  275. This option takes an integer number as its argument.
  276. The value of
  277. \f\*[I-Font]number\f[]
  278. is constrained to being:
  279. .in +4
  280. .nf
  281. .na
  282. greater than or equal to 0
  283. .fi
  284. .in -4
  285. The default
  286. \f\*[I-Font]number\f[]
  287. for this option is:
  288. .ti +4
  289. 0
  290. .sp
  291. By default, tcpreplay will use loop delay with microsecond accuracy (loopdelay-ms).
  292. In order to use loop delay with nanosecond accuracy you need to use nano packet timing mode.
  293. .TP
  294. .NOP \f\*[B-Font]\-\-pktlen\f[]
  295. Override the snaplen and use the actual packet len.
  296. This option may appear up to 1 times.
  297. .sp
  298. By default, tcpreplay will send packets based on the size of the "snaplen"
  299. stored in the pcap file which is usually the correct thing to do. However,
  300. occasionally, tools will store more bytes then told to. By specifying this
  301. option, tcpreplay will ignore the snaplen field and instead try to send
  302. packets based on the original packet length. Bad things may happen if
  303. you specify this option.
  304. .TP
  305. .NOP \f\*[B-Font]\-L\f[] \f\*[I-Font]number\f[], \f\*[B-Font]\-\-limit\f[]=\f\*[I-Font]number\f[]
  306. Limit the number of packets to send.
  307. This option may appear up to 1 times.
  308. This option takes an integer number as its argument.
  309. The value of
  310. \f\*[I-Font]number\f[]
  311. is constrained to being:
  312. .in +4
  313. .nf
  314. .na
  315. greater than or equal to 1
  316. .fi
  317. .in -4
  318. The default
  319. \f\*[I-Font]number\f[]
  320. for this option is:
  321. .ti +4
  322. \-1
  323. .sp
  324. By default, tcpreplay will send all the packets. Alternatively, you can
  325. specify a maximum number of packets to send.
  326. .TP
  327. .NOP \f\*[B-Font]\-\-duration\f[]=\f\*[I-Font]number\f[]
  328. Limit the number of seconds to send.
  329. This option may appear up to 1 times.
  330. This option takes an integer number as its argument.
  331. The value of
  332. \f\*[I-Font]number\f[]
  333. is constrained to being:
  334. .in +4
  335. .nf
  336. .na
  337. greater than or equal to 1
  338. .fi
  339. .in -4
  340. The default
  341. \f\*[I-Font]number\f[]
  342. for this option is:
  343. .ti +4
  344. \-1
  345. .sp
  346. By default, tcpreplay will send all the packets. Alternatively, you can
  347. specify a maximum number of seconds to transmit.
  348. .TP
  349. .NOP \f\*[B-Font]\-x\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-multiplier\f[]=\f\*[I-Font]string\f[]
  350. Modify replay speed to a given multiple.
  351. This option may appear up to 1 times.
  352. This option must not appear in combination with any of the following options:
  353. pps, mbps, oneatatime, topspeed.
  354. .sp
  355. Specify a value to modify the packet replay speed.
  356. Examples:
  357. .nf
  358. 2.0 will replay traffic at twice the speed captured
  359. 0.7 will replay traffic at 70% the speed captured
  360. .fi
  361. .TP
  362. .NOP \f\*[B-Font]\-p\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-pps\f[]=\f\*[I-Font]string\f[]
  363. Replay packets at a given packets/sec.
  364. This option may appear up to 1 times.
  365. This option must not appear in combination with any of the following options:
  366. multiplier, mbps, oneatatime, topspeed.
  367. .sp
  368. Specify a value to regulate the packet replay to a specific packet-per-second rate.
  369. Examples:
  370. .nf
  371. 200 will replay traffic at 200 packets per second
  372. 0.25 will replay traffic at 15 packets per minute
  373. .fi
  374. .TP
  375. .NOP \f\*[B-Font]\-M\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-mbps\f[]=\f\*[I-Font]string\f[]
  376. Replay packets at a given Mbps.
  377. This option may appear up to 1 times.
  378. This option must not appear in combination with any of the following options:
  379. multiplier, pps, oneatatime, topspeed.
  380. .sp
  381. Specify a floating point value for the Mbps rate that tcpreplay
  382. should send packets at.
  383. .TP
  384. .NOP \f\*[B-Font]\-t\f[], \f\*[B-Font]\-\-topspeed\f[]
  385. Replay packets as fast as possible.
  386. This option must not appear in combination with any of the following options:
  387. mbps, multiplier, pps, oneatatime.
  388. .sp
  389. .TP
  390. .NOP \f\*[B-Font]\-o\f[], \f\*[B-Font]\-\-oneatatime\f[]
  391. Replay one packet at a time for each user input.
  392. This option must not appear in combination with any of the following options:
  393. mbps, pps, multiplier, topspeed.
  394. .sp
  395. Allows you to step through one or more packets at a time.
  396. .TP
  397. .NOP \f\*[B-Font]\-\-pps\-multi\f[]=\f\*[I-Font]number\f[]
  398. Number of packets to send for each time interval.
  399. This option must appear in combination with the following options:
  400. pps.
  401. This option takes an integer number as its argument.
  402. The value of
  403. \f\*[I-Font]number\f[]
  404. is constrained to being:
  405. .in +4
  406. .nf
  407. .na
  408. greater than or equal to 1
  409. .fi
  410. .in -4
  411. The default
  412. \f\*[I-Font]number\f[]
  413. for this option is:
  414. .ti +4
  415. 1
  416. .sp
  417. When trying to send packets at very high rates, the time between each packet
  418. can be so short that it is impossible to accurately sleep for the required
  419. period of time. This option allows you to send multiple packets at a time,
  420. thus allowing for longer sleep times which can be more accurately implemented.
  421. .TP
  422. .NOP \f\*[B-Font]\-\-unique\-ip\f[]
  423. Modify IP addresses each loop iteration to generate unique flows.
  424. This option must appear in combination with the following options:
  425. loop.
  426. .sp
  427. Ensure IPv4 and IPv6 packets will be unique for each \fB--loop\fP iteration.
  428. This is done in a way that will not alter packet CRC, and therefore will generally
  429. not affect performance. This option will significantly increase the flows/sec over
  430. generated over multiple loop iterations.
  431. .TP
  432. .NOP \f\*[B-Font]\-\-unique\-ip\-loops\f[]=\f\*[I-Font]string\f[]
  433. Number of times to loop before assigning new unique ip.
  434. This option may appear up to 1 times.
  435. This option must appear in combination with the following options:
  436. unique-ip.
  437. .sp
  438. Number of \fB--loop\fP iterations before a new unique IP is assigned. Default
  439. is 1. Assumes both \fB--loop\fP and \fB--unique-ip\fP.
  440. .TP
  441. .NOP \f\*[B-Font]\-\-netmap\f[]
  442. Write packets directly to netmap enabled network adapter.
  443. .sp
  444. This feature will detect netmap capable network drivers on Linux and BSD
  445. systems. If detected, the network driver is bypassed for the execution
  446. duration, and network buffers will be written to directly. This will allow
  447. you to achieve full line rates on commodity network adapters, similar to rates
  448. achieved by commercial network traffic generators. Note that bypassing the network
  449. driver will disrupt other applications connected through the test interface. See
  450. INSTALL for more information.
  451. .sp
  452. This feature can also be enabled by specifying an interface as 'netmap:<intf>'
  453. or 'vale:<intf>. For example 'netmap:eth0' specifies netmap over interface eth0.
  454. .TP
  455. .NOP \f\*[B-Font]\-\-nm\-delay\f[]=\f\*[I-Font]number\f[]
  456. Netmap startup delay.
  457. This option takes an integer number as its argument.
  458. The default
  459. \f\*[I-Font]number\f[]
  460. for this option is:
  461. .ti +4
  462. 10
  463. .sp
  464. Number of seconds to delay after netmap is loaded. Required to ensure interfaces
  465. are fully up before netmap transmit. Requires netmap option. Default is 10 seconds.
  466. .TP
  467. .NOP \f\*[B-Font]\-\-no\-flow\-stats\f[]
  468. Suppress printing and tracking flow count, rates and expirations.
  469. .sp
  470. Suppress the collection and printing of flow statistics. This option may
  471. improve performance when not using \fB--preload-pcap\fP option, otherwise
  472. its only function is to suppress printing.
  473. .sp
  474. The flow feature will track and print statistics of the flows being sent.
  475. A flow is loosely defined as a unique combination of a 5-tuple, i.e.
  476. source IP, destination IP, source port, destination port and protocol.
  477. .sp
  478. If \fB--loop\fP is specified, the flows from one iteration to the next
  479. will not be unique, unless the packets are altered. Use \fB--unique-ip\fP
  480. or \fBtcpreplay-edit\fP to alter packets between iterations.
  481. .TP
  482. .NOP \f\*[B-Font]\-\-flow\-expiry\f[]=\f\*[I-Font]number\f[]
  483. Number of inactive seconds before a flow is considered expired.
  484. This option must not appear in combination with any of the following options:
  485. no-flow-stats.
  486. This option takes an integer number as its argument.
  487. The value of
  488. \f\*[I-Font]number\f[]
  489. is constrained to being:
  490. .in +4
  491. .nf
  492. .na
  493. greater than or equal to 0
  494. .fi
  495. .in -4
  496. The default
  497. \f\*[I-Font]number\f[]
  498. for this option is:
  499. .ti +4
  500. 0
  501. .sp
  502. This option will track and report flow expirations based on the flow idle
  503. times. The timestamps within the pcap file are used to determine the expiry,
  504. not the actual timestamp of the packets are replayed. For example, a value of
  505. 30 suggests that if no traffic is seen on a flow for 30 seconds, any
  506. subsequent traffic would be considered a new flow, and thereby will increment
  507. the flows and flows per second (fps) statistics.
  508. .sp
  509. This option can be used to optimize flow timeout settings for flow products.
  510. Setting the timeout low may lead to flows being dropped when in fact the flow
  511. is simply slow to respond. Configuring your flow timeouts too high may
  512. increase resources required by your flow product.
  513. .sp
  514. Note that using this option while replaying at higher than original speeds
  515. can lead to inflated flows and fps counts.
  516. .sp
  517. Default is 0 (no expiry) and a typical value is 30-120 seconds.
  518. .TP
  519. .NOP \f\*[B-Font]\-P\f[], \f\*[B-Font]\-\-pid\f[]
  520. Print the PID of tcpreplay at startup.
  521. .sp
  522. .TP
  523. .NOP \f\*[B-Font]\-\-stats\f[]=\f\*[I-Font]number\f[]
  524. Print statistics every X seconds, or every loop if '0'.
  525. This option takes an integer number as its argument.
  526. The value of
  527. \f\*[I-Font]number\f[]
  528. is constrained to being:
  529. .in +4
  530. .nf
  531. .na
  532. greater than or equal to 0
  533. .fi
  534. .in -4
  535. .sp
  536. Note that timed delays are a "best effort" and long delays between
  537. sending packets may cause equally long delays between printing statistics.
  538. .TP
  539. .NOP \f\*[B-Font]\-W\f[], \f\*[B-Font]\-\-suppress\-warnings\f[]
  540. suppress printing warning messages.
  541. .sp
  542. .TP
  543. .NOP \f\*[B-Font]\-\-xdp\f[]
  544. Write packets directly to AF_XDP enabled network adapter.
  545. .sp
  546. This feature will detect AF_XDP capable network drivers on Linux systems
  547. that have 'libxdp-dev' and 'libbpf-dev' installed. If detected, the network
  548. stack is bypassed and packets are sent directly to an eBPF enabled driver directly.
  549. This will allow you to achieve full line rates on commodity network adapters, similar to rates
  550. achieved by commercial network traffic generators.
  551. .TP
  552. .NOP \f\*[B-Font]\-\-xdp\-batch\-size\f[]=\f\*[I-Font]number\f[]
  553. The maximum number of packets that can be submitted to the AF_XDP TX ring at once.
  554. This option takes an integer number as its argument.
  555. The value of
  556. \f\*[I-Font]number\f[]
  557. is constrained to being:
  558. .in +4
  559. .nf
  560. .na
  561. in the range 1 through 4096
  562. .fi
  563. .in -4
  564. The default
  565. \f\*[I-Font]number\f[]
  566. for this option is:
  567. .ti +4
  568. 25
  569. .sp
  570. Higher values may improve performance at the cost of accuracy
  571. .TP
  572. .NOP \f\*[B-Font]\-V\f[], \f\*[B-Font]\-\-version\f[]
  573. Print version information.
  574. .sp
  575. .TP
  576. .NOP \f\*[B-Font]\-h\f[], \f\*[B-Font]\-\-less\-help\f[]
  577. Display less usage information and exit.
  578. .sp
  579. .TP
  580. .NOP \f\*[B-Font]\-H\f[], \f\*[B-Font]\-\-help\f[]
  581. Display usage information and exit.
  582. .TP
  583. .NOP \f\*[B-Font]\-\&!\f[], \f\*[B-Font]\-\-more-help\f[]
  584. Pass the extended usage information through a pager.
  585. .TP
  586. .NOP \f\*[B-Font]\-\-save-opts\f[] [=\f\*[I-Font]cfgfile\f[]]
  587. Save the option state to \fIcfgfile\fP. The default is the \fIlast\fP
  588. configuration file listed in the \fBOPTION PRESETS\fP section, below.
  589. The command will exit after updating the config file.
  590. .TP
  591. .NOP \f\*[B-Font]\-\-load-opts\f[]=\f\*[I-Font]cfgfile\f[], \f\*[B-Font]\-\-no-load-opts\f[]
  592. Load options from \fIcfgfile\fP.
  593. The \fIno-load-opts\fP form will disable the loading
  594. of earlier config/rc/ini files. \fI\-\-no-load-opts\fP is handled early,
  595. out of order.
  596. .PP
  597. .SH "OPTION PRESETS"
  598. Any option that is not marked as \fInot presettable\fP may be preset
  599. by loading values from configuration ("RC" or ".INI") file(s).
  600. The \fIhomerc\fP file is "\fI$$/\fP", unless that is a directory.
  601. In that case, the file "\fI.tcpreplayrc\fP"
  602. is searched for within that directory.
  603. .SH "FILES"
  604. See \fBOPTION PRESETS\fP for configuration files.
  605. .SH "EXIT STATUS"
  606. One of the following exit values will be returned:
  607. .TP
  608. .NOP 0 " (EXIT_SUCCESS)"
  609. Successful program execution.
  610. .TP
  611. .NOP 1 " (EXIT_FAILURE)"
  612. The operation failed or the command syntax was not valid.
  613. .TP
  614. .NOP 66 " (EX_NOINPUT)"
  615. A specified configuration file could not be loaded.
  616. .TP
  617. .NOP 70 " (EX_SOFTWARE)"
  618. libopts had an internal operational error. Please report
  619. it to autogen-users@lists.sourceforge.net. Thank you.
  620. .PP
  621. .SH "AUTHORS"
  622. Copyright 2013-2024 Fred Klassen \- AppNeta
  623. Copyright 2000-2012 Aaron Turner
  624. For support please use the tcpreplay-users@lists.sourceforge.net mailing list.
  625. The latest version of this software is always available from:
  626. http://tcpreplay.appneta.com/
  627. .SH "COPYRIGHT"
  628. Copyright (C) 2000-2024 Aaron Turner and Fred Klassen all rights reserved.
  629. This program is released under the terms of the GNU General Public License, version 3 or later.
  630. .SH "BUGS"
  631. Please send bug reports to: tcpreplay-users@lists.sourceforge.net
  632. .SH "NOTES"
  633. This manual page was \fIAutoGen\fP-erated from the \fBtcpreplay\fP
  634. option definitions.