tcpreplay-edit.1 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169
  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-edit 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-edit\fP
  22. \- Replay network traffic stored in pcap files
  23. .SH SYNOPSIS
  24. \f\*[B-Font]tcpreplay-edit\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. .SS ""
  47. .TP
  48. .NOP \f\*[B-Font]\-r\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-portmap\f[]=\f\*[I-Font]string\f[]
  49. Rewrite TCP/UDP ports.
  50. This option may appear up to 9999 times.
  51. .sp
  52. Specify a list of comma delimited port mappings consisting of
  53. colon delimited port number pairs. Each colon delimited port pair
  54. consists of the port to match followed by the port number to rewrite.
  55. .sp
  56. Examples:
  57. .nf
  58. \--portmap=80:8000 \--portmap=8080:80 # 80->8000 and 8080->80
  59. \--portmap=8000,8080,88888:80 # 3 different ports become 80
  60. \--portmap=8000-8999:80 # ports 8000 to 8999 become 80
  61. .fi
  62. .TP
  63. .NOP \f\*[B-Font]\-s\f[] \f\*[I-Font]number\f[], \f\*[B-Font]\-\-seed\f[]=\f\*[I-Font]number\f[]
  64. Randomize src/dst IPv4/v6 addresses w/ given seed.
  65. This option may appear up to 1 times.
  66. This option must not appear in combination with any of the following options:
  67. fuzz-seed.
  68. This option takes an integer number as its argument.
  69. .sp
  70. Causes the source and destination IPv4/v6 addresses to be pseudo
  71. randomized but still maintain client/server relationships.
  72. Since the randomization is deterministic based on the seed,
  73. you can reuse the same seed value to recreate the traffic.
  74. .TP
  75. .NOP \f\*[B-Font]\-N\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-pnat\f[]=\f\*[I-Font]string\f[]
  76. Rewrite IPv4/v6 addresses using pseudo-NAT.
  77. This option may appear up to 2 times.
  78. This option must not appear in combination with any of the following options:
  79. srcipmap.
  80. .sp
  81. Takes a comma delimited series of colon delimited CIDR
  82. netblock pairs. Each netblock pair is evaluated in order against
  83. the IP addresses. If the IP address in the packet matches the
  84. first netblock, it is rewritten using the second netblock as a
  85. mask against the high order bits.
  86. .sp
  87. IPv4 Example:
  88. .nf
  89. \--pnat=192.168.0.0/16:10.77.0.0/16,172.16.0.0/12:10.1.0.0/24
  90. .fi
  91. IPv6 Example:
  92. .nf
  93. \--pnat=[2001:db8::/32]:[dead::/16],[2001:db8::/32]:[::ffff:0:0/96]
  94. .fi
  95. .TP
  96. .NOP \f\*[B-Font]\-S\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-srcipmap\f[]=\f\*[I-Font]string\f[]
  97. Rewrite source IPv4/v6 addresses using pseudo-NAT.
  98. This option may appear up to 1 times.
  99. This option must not appear in combination with any of the following options:
  100. pnat.
  101. .sp
  102. Works just like the \--pnat option, but only affects the source IP
  103. addresses in the IPv4/v6 header.
  104. .TP
  105. .NOP \f\*[B-Font]\-D\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-dstipmap\f[]=\f\*[I-Font]string\f[]
  106. Rewrite destination IPv4/v6 addresses using pseudo-NAT.
  107. This option may appear up to 1 times.
  108. This option must not appear in combination with any of the following options:
  109. pnat.
  110. .sp
  111. Works just like the \--pnat option, but only affects the destination IP
  112. addresses in the IPv4/v6 header.
  113. .TP
  114. .NOP \f\*[B-Font]\-e\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-endpoints\f[]=\f\*[I-Font]string\f[]
  115. Rewrite IP addresses to be between two endpoints.
  116. This option may appear up to 1 times.
  117. This option must appear in combination with the following options:
  118. cachefile.
  119. .sp
  120. Takes a pair of colon delimited IPv4/v6 addresses which will be used to rewrite
  121. all traffic to appear to be between the two IP addresses.
  122. .sp
  123. IPv4 Example:
  124. .nf
  125. \--endpoints=172.16.0.1:172.16.0.2
  126. .fi
  127. IPv6 Example:
  128. .nf
  129. \--endpoints=[2001:db8::dead:beef]:[::ffff:0:0:ac:f:0:2]
  130. .fi
  131. .TP
  132. .NOP \f\*[B-Font]\-\-tcp\-sequence\f[]=\f\*[I-Font]number\f[]
  133. Change TCP Sequence (and ACK) numbers /w given seed.
  134. This option takes an integer number as its argument.
  135. The value of
  136. \f\*[I-Font]number\f[]
  137. is constrained to being:
  138. .in +4
  139. .nf
  140. .na
  141. greater than or equal to 1
  142. .fi
  143. .in -4
  144. The default
  145. \f\*[I-Font]number\f[]
  146. for this option is:
  147. .ti +4
  148. 0
  149. .sp
  150. Change all TCP sequence numbers, and related sequence-acknowledgement numbers.
  151. They will be shifted by a random amount based on the provided seed.
  152. .TP
  153. .NOP \f\*[B-Font]\-b\f[], \f\*[B-Font]\-\-skipbroadcast\f[]
  154. Skip rewriting broadcast/multicast IPv4/v6 addresses.
  155. .sp
  156. By default \--seed, \--pnat and \--endpoints will rewrite
  157. broadcast and multicast IPv4/v6 and MAC addresses. Setting this flag
  158. will keep broadcast/multicast IPv4/v6 and MAC addresses from being rewritten.
  159. .TP
  160. .NOP \f\*[B-Font]\-C\f[], \f\*[B-Font]\-\-fixcsum\f[]
  161. Force recalculation of IPv4/TCP/UDP header checksums.
  162. .sp
  163. Causes each IPv4/v6 packet to have their checksums recalculated and
  164. fixed. Automatically enabled for packets modified with \fB--seed\fP,
  165. \fB--pnat\fP, \fB--endpoints\fP or \fB--fixlen\fP.
  166. .TP
  167. .NOP \f\*[B-Font]\-\-fixhdrlen\f[]
  168. Alter IP/TCP header len to match packet length.
  169. .sp
  170. By default, tcpreplay will send packets with the original packet length,
  171. However, you may want the packet length revised to minimum packet size.
  172. Using this option, tcpreplay will rewrite (fix) the packet length,
  173. and recalculate checksums when packet length changes.
  174. Caution: undesired packet changes may occur when this option is specified.
  175. .TP
  176. .NOP \f\*[B-Font]\-m\f[] \f\*[I-Font]number\f[], \f\*[B-Font]\-\-mtu\f[]=\f\*[I-Font]number\f[]
  177. Override default MTU length (1500 bytes).
  178. This option may appear up to 1 times.
  179. This option takes an integer number as its argument.
  180. The value of
  181. \f\*[I-Font]number\f[]
  182. is constrained to being:
  183. .in +4
  184. .nf
  185. .na
  186. in the range 1 through MAX_SNAPLEN
  187. .fi
  188. .in -4
  189. .sp
  190. Override the default 1500 byte MTU size for determining the maximum padding length
  191. (--fixlen=pad) or when truncating (--mtu-trunc).
  192. .TP
  193. .NOP \f\*[B-Font]\-\-mtu\-trunc\f[]
  194. Truncate packets larger then specified MTU.
  195. This option may appear up to 1 times.
  196. .sp
  197. Similar to \--fixlen, this option will truncate data in packets from Layer 3 and above to be
  198. no larger then the MTU.
  199. .TP
  200. .NOP \f\*[B-Font]\-E\f[], \f\*[B-Font]\-\-efcs\f[]
  201. Remove Ethernet checksums (FCS) from end of frames.
  202. .sp
  203. Note, this option is pretty dangerous! We do not actually check to see if a FCS
  204. actually exists in the frame, we just blindly delete the last 4 bytes. Hence,
  205. you should only use this if you know know that your OS provides the FCS when
  206. reading raw packets.
  207. .TP
  208. .NOP \f\*[B-Font]\-\-ttl\f[]=\f\*[I-Font]string\f[]
  209. Modify the IPv4/v6 TTL/Hop Limit.
  210. .sp
  211. Allows you to modify the TTL/Hop Limit of all the IPv4/v6 packets. Specify a number to hard-code
  212. the value or +/-value to increase or decrease by the value provided (limited to 1-255).
  213. .sp
  214. Examples:
  215. .nf
  216. \--ttl=10
  217. \--ttl=+7
  218. \--ttl=-64
  219. .fi
  220. .TP
  221. .NOP \f\*[B-Font]\-\-tos\f[]=\f\*[I-Font]number\f[]
  222. Set the IPv4 TOS/DiffServ/ECN byte.
  223. This option may appear up to 1 times.
  224. This option takes an integer number as its argument.
  225. The value of
  226. \f\*[I-Font]number\f[]
  227. is constrained to being:
  228. .in +4
  229. .nf
  230. .na
  231. in the range 0 through 255
  232. .fi
  233. .in -4
  234. .sp
  235. Allows you to override the TOS (also known as DiffServ/ECN) value in IPv4.
  236. .TP
  237. .NOP \f\*[B-Font]\-\-tclass\f[]=\f\*[I-Font]number\f[]
  238. Set the IPv6 Traffic Class byte.
  239. This option may appear up to 1 times.
  240. This option takes an integer number as its argument.
  241. The value of
  242. \f\*[I-Font]number\f[]
  243. is constrained to being:
  244. .in +4
  245. .nf
  246. .na
  247. in the range 0 through 255
  248. .fi
  249. .in -4
  250. .sp
  251. Allows you to override the IPv6 Traffic Class field.
  252. .TP
  253. .NOP \f\*[B-Font]\-\-flowlabel\f[]=\f\*[I-Font]number\f[]
  254. Set the IPv6 Flow Label.
  255. This option may appear up to 1 times.
  256. This option takes an integer number as its argument.
  257. The value of
  258. \f\*[I-Font]number\f[]
  259. is constrained to being:
  260. .in +4
  261. .nf
  262. .na
  263. in the range 0 through 1048575
  264. .fi
  265. .in -4
  266. .sp
  267. Allows you to override the 20bit IPv6 Flow Label field. Has no effect on IPv4
  268. packets.
  269. .TP
  270. .NOP \f\*[B-Font]\-F\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-fixlen\f[]=\f\*[I-Font]string\f[]
  271. Pad or truncate packet data to match header length.
  272. This option may appear up to 1 times.
  273. .sp
  274. Packets may be truncated during capture if the snaplen is smaller then the
  275. packet. This option allows you to modify the packet to pad the packet back
  276. out to the size stored in the IPv4/v6 header or rewrite the IP header total length
  277. to reflect the stored packet length.
  278. .sp 1
  279. \fBpad\fP
  280. Truncated packets will be padded out so that the packet length matches the
  281. IPv4 total length
  282. .sp 1
  283. \fBtrunc\fP
  284. Truncated packets will have their IPv4 total length field rewritten to match
  285. the actual packet length
  286. .sp 1
  287. \fBdel\fP
  288. Delete the packet
  289. .TP
  290. .NOP \f\*[B-Font]\-\-fuzz\-seed\f[]=\f\*[I-Font]number\f[]
  291. Fuzz 1 in X packets. Edit bytes, length, or emulate packet drop.
  292. This option takes an integer number as its argument.
  293. The value of
  294. \f\*[I-Font]number\f[]
  295. is constrained to being:
  296. .in +4
  297. .nf
  298. .na
  299. greater than or equal to 0
  300. .fi
  301. .in -4
  302. The default
  303. \f\*[I-Font]number\f[]
  304. for this option is:
  305. .ti +4
  306. 0
  307. .sp
  308. This fuzzing was designed as to test layer 7 protocols such as voip protocols.
  309. It modifies randomly 1 out of X packets (where X = \fB--fuzz-factor\fP) in order
  310. for stateful protocols to cover more of their code. The random fuzzing actions
  311. focus on data start and end because it often is the part of the data application
  312. protocols base their decisions on.
  313. .sp
  314. Possible fuzzing actions list:
  315. * drop packet
  316. * reduce packet size
  317. * edit packet Bytes:
  318. * Not all Bytes have the same probability of appearance in real life.
  319. Replace with 0x00, 0xFF, or a random byte with equal likelihood.
  320. * Not all Bytes have the same significance in a packet.
  321. Replace the start, the end, or the middle of the packet with equal likelihood.
  322. * do nothing (7 out of 8 packets)
  323. .TP
  324. .NOP \f\*[B-Font]\-\-fuzz\-factor\f[]=\f\*[I-Font]number\f[]
  325. Set the Fuzz 1 in X packet ratio (default 1 in 8 packets).
  326. This option must appear in combination with the following options:
  327. fuzz-seed.
  328. This option takes an integer number as its argument.
  329. The value of
  330. \f\*[I-Font]number\f[]
  331. is constrained to being:
  332. .in +4
  333. .nf
  334. .na
  335. greater than or equal to 1
  336. .fi
  337. .in -4
  338. The default
  339. \f\*[I-Font]number\f[]
  340. for this option is:
  341. .ti +4
  342. 8
  343. .sp
  344. Sets the ratio of for \fB--fuzz-seed\fP option. By default this value is 8,
  345. which means 1 in 8 packets are modified by fuzzing. Note that this ratio is
  346. based on the random number generated by the supplied fuzz seed. Therefore by
  347. default you cannot expect that exactly every eighth packet will be modified.
  348. .TP
  349. .NOP \f\*[B-Font]\-\-skipl2broadcast\f[]
  350. Skip rewriting broadcast/multicast Layer 2 addresses.
  351. .sp
  352. By default, editing Layer 2 addresses will rewrite
  353. broadcast and multicast MAC addresses. Setting this flag
  354. will keep broadcast/multicast MAC addresses from being rewritten.
  355. .TP
  356. .NOP \f\*[B-Font]\-\-dlt\f[]=\f\*[I-Font]string\f[]
  357. Override output DLT encapsulation.
  358. This option may appear up to 1 times.
  359. .sp
  360. By default, no DLT (data link type) conversion will be made.
  361. To change the DLT type of the output pcap, select one of the following values:
  362. .sp 1
  363. \fBenet\fP
  364. Ethernet aka DLT_EN10MB
  365. .sp 1
  366. \fBhdlc\fP
  367. Cisco HDLC aka DLT_C_HDLC
  368. .sp 1
  369. \fBjnpr_eth\fP
  370. Juniper Ethernet DLT_C_JNPR_ETHER
  371. .sp 1
  372. \fBpppserial\fP
  373. PPP Serial aka DLT_PPP_SERIAL
  374. .sp 1
  375. \fBuser\fP
  376. User specified Layer 2 header and DLT type
  377. .br
  378. .TP
  379. .NOP \f\*[B-Font]\-\-enet\-dmac\f[]=\f\*[I-Font]string\f[]
  380. Override destination ethernet MAC addresses.
  381. This option may appear up to 1 times.
  382. .sp
  383. Takes a pair of comma deliminated ethernet MAC addresses which
  384. will replace the destination MAC address of outbound packets.
  385. The first MAC address will be used for the server to client traffic
  386. and the optional second MAC address will be used for the client
  387. to server traffic.
  388. .sp
  389. Example:
  390. .nf
  391. \--enet-dmac=00:12:13:14:15:16,00:22:33:44:55:66
  392. .fi
  393. .TP
  394. .NOP \f\*[B-Font]\-\-enet\-smac\f[]=\f\*[I-Font]string\f[]
  395. Override source ethernet MAC addresses.
  396. This option may appear up to 1 times.
  397. .sp
  398. Takes a pair of comma deliminated ethernet MAC addresses which
  399. will replace the source MAC address of outbound packets.
  400. The first MAC address will be used for the server to client traffic
  401. and the optional second MAC address will be used for the client
  402. to server traffic.
  403. .sp
  404. Example:
  405. .nf
  406. \--enet-smac=00:12:13:14:15:16,00:22:33:44:55:66
  407. .fi
  408. .TP
  409. .NOP \f\*[B-Font]\-\-enet\-subsmac\f[]=\f\*[I-Font]string\f[]
  410. Substitute MAC addresses.
  411. This option may appear up to 9999 times.
  412. .sp
  413. Allows you to rewrite ethernet MAC addresses of packets. It takes
  414. comma delimited pair or MACs address and rewrites all occurrences of
  415. the first MAC with the value of the second MAC.
  416. Example:
  417. .nf
  418. \--enet-subsmac=00:12:13:14:15:16,00:22:33:44:55:66
  419. .fi
  420. .TP
  421. .NOP \f\*[B-Font]\-\-enet\-mac\-seed\f[]=\f\*[I-Font]number\f[]
  422. Randomize MAC addresses.
  423. This option may appear up to 1 times.
  424. This option must not appear in combination with any of the following options:
  425. enet-smac, enet-dmac, enet-subsmac.
  426. This option takes an integer number as its argument.
  427. .sp
  428. Allows you to randomize ethernet MAC addresses of packets, mostly
  429. like what \fB--seed\fP option does for IPv4/IPv6 addresses.
  430. .TP
  431. .NOP \f\*[B-Font]\-\-enet\-mac\-seed\-keep\-bytes\f[]=\f\*[I-Font]number\f[]
  432. Randomize MAC addresses.
  433. This option may appear up to 1 times.
  434. This option must appear in combination with the following options:
  435. enet-mac-seed.
  436. This option takes an integer number as its argument.
  437. The value of
  438. \f\*[I-Font]number\f[]
  439. is constrained to being:
  440. .in +4
  441. .nf
  442. .na
  443. in the range 1 through 6
  444. .fi
  445. .in -4
  446. .sp
  447. Keep some bytes untouched when usinging \fB--enet-mac-seed\fP option.
  448. .TP
  449. .NOP \f\*[B-Font]\-\-enet\-vlan\f[]=\f\*[I-Font]string\f[]
  450. Specify ethernet 802.1q VLAN tag mode.
  451. This option may appear up to 1 times.
  452. .sp
  453. Allows you to rewrite ethernet frames to add a 802.1q header to standard 802.3
  454. ethernet headers or remove the 802.1q VLAN tag information.
  455. .sp 1
  456. \fBadd\fP
  457. Adds an 802.1q VLAN header to the existing 802.3 ethernet header. If
  458. a VLAN header already exists, a new VLAN header is added outside of the
  459. existing header.
  460. .sp
  461. Note that you will be allowed to run this option multiple times to create
  462. more than 2 VLAN headers, however those packets will be valid. At most
  463. you should have 2 X 802.1q VLAN tags, or outer an 802.1ad and an inner 802.1q
  464. VLAN tag.
  465. .sp 1
  466. \fBdel\fP
  467. Rewrites the existing 802.1q VLAN header as an 802.3 ethernet header
  468. .TP
  469. .NOP \f\*[B-Font]\-\-enet\-vlan\-tag\f[]=\f\*[I-Font]number\f[]
  470. Specify the new ethernet 802.1q VLAN tag value.
  471. This option may appear up to 1 times.
  472. This option must appear in combination with the following options:
  473. enet-vlan.
  474. This option takes an integer number as its argument.
  475. The value of
  476. \f\*[I-Font]number\f[]
  477. is constrained to being:
  478. .in +4
  479. .nf
  480. .na
  481. in the range 0 through 4095
  482. .fi
  483. .in -4
  484. .sp
  485. .TP
  486. .NOP \f\*[B-Font]\-\-enet\-vlan\-cfi\f[]=\f\*[I-Font]number\f[]
  487. Specify the ethernet 802.1q VLAN CFI value.
  488. This option may appear up to 1 times.
  489. This option must appear in combination with the following options:
  490. enet-vlan.
  491. This option takes an integer number as its argument.
  492. The value of
  493. \f\*[I-Font]number\f[]
  494. is constrained to being:
  495. .in +4
  496. .nf
  497. .na
  498. in the range 0 through 1
  499. .fi
  500. .in -4
  501. .sp
  502. .TP
  503. .NOP \f\*[B-Font]\-\-enet\-vlan\-pri\f[]=\f\*[I-Font]number\f[]
  504. Specify the ethernet 802.1q VLAN priority.
  505. This option may appear up to 1 times.
  506. This option must appear in combination with the following options:
  507. enet-vlan.
  508. This option takes an integer number as its argument.
  509. The value of
  510. \f\*[I-Font]number\f[]
  511. is constrained to being:
  512. .in +4
  513. .nf
  514. .na
  515. in the range 0 through 7
  516. .fi
  517. .in -4
  518. .sp
  519. .TP
  520. .NOP \f\*[B-Font]\-\-enet\-vlan\-proto\f[]=\f\*[I-Font]string\f[]
  521. Specify VLAN tag protocol 802.1q or 802.1ad.
  522. This option may appear up to 1 times.
  523. .sp
  524. Allows you to specify the protocol of the added VLAN tags.
  525. .sp 1
  526. \fB802.1q\fP
  527. Specifies that 802.1q VLAN headers are to be added. This is the default.
  528. .sp 1
  529. \fB802.1ad\fP
  530. Specifies that 802.1ad Q-in-Q VLAN headers are to be added. To make valid packets,
  531. input packets must already have 802.1q VLAN headers.
  532. .TP
  533. .NOP \f\*[B-Font]\-\-hdlc\-control\f[]=\f\*[I-Font]number\f[]
  534. Specify HDLC control value.
  535. This option may appear up to 1 times.
  536. This option takes an integer number as its argument.
  537. .sp
  538. The Cisco HDLC header has a 1 byte "control" field. Apparently this should
  539. always be 0, but if you can use any 1 byte value.
  540. .TP
  541. .NOP \f\*[B-Font]\-\-hdlc\-address\f[]=\f\*[I-Font]number\f[]
  542. Specify HDLC address.
  543. This option may appear up to 1 times.
  544. This option takes an integer number as its argument.
  545. .sp
  546. The Cisco HDLC header has a 1 byte "address" field which has two valid
  547. values:
  548. .sp 1
  549. \fB0x0F\fP
  550. Unicast
  551. .sp 1
  552. \fB0xBF\fP
  553. Broadcast
  554. .br
  555. You can however specify any single byte value.
  556. .TP
  557. .NOP \f\*[B-Font]\-\-user\-dlt\f[]=\f\*[I-Font]number\f[]
  558. Set output file DLT type.
  559. This option may appear up to 1 times.
  560. This option takes an integer number as its argument.
  561. .sp
  562. Set the DLT value of the output pcap file.
  563. .TP
  564. .NOP \f\*[B-Font]\-\-user\-dlink\f[]=\f\*[I-Font]string\f[]
  565. Rewrite Data-Link layer with user specified data.
  566. This option may appear up to 2 times.
  567. .sp
  568. Provide a series of comma deliminated hex values which will be
  569. used to rewrite or create the Layer 2 header of the packets.
  570. The first instance of this argument will rewrite both server
  571. and client traffic, but if this argument is specified a second
  572. time, it will be used for the client traffic.
  573. .sp
  574. Example:
  575. .nf
  576. \--user-dlink=01,02,03,04,05,06,00,1A,2B,3C,4D,5E,6F,08,00
  577. .fi
  578. .TP
  579. .NOP \f\*[B-Font]\-d\f[] \f\*[I-Font]number\f[], \f\*[B-Font]\-\-dbug\f[]=\f\*[I-Font]number\f[]
  580. Enable debugging output.
  581. This option may appear up to 1 times.
  582. This option takes an integer number as its argument.
  583. The value of
  584. \f\*[I-Font]number\f[]
  585. is constrained to being:
  586. .in +4
  587. .nf
  588. .na
  589. in the range 0 through 5
  590. .fi
  591. .in -4
  592. The default
  593. \f\*[I-Font]number\f[]
  594. for this option is:
  595. .ti +4
  596. 0
  597. .sp
  598. If configured with \--enable-debug, then you can specify a verbosity
  599. level for debugging output. Higher numbers increase verbosity.
  600. .TP
  601. .NOP \f\*[B-Font]\-q\f[], \f\*[B-Font]\-\-quiet\f[]
  602. Quiet mode.
  603. .sp
  604. Print nothing except the statistics at the end of the run
  605. .TP
  606. .NOP \f\*[B-Font]\-T\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-timer\f[]=\f\*[I-Font]string\f[]
  607. Select packet timing mode: select, ioport, gtod, nano.
  608. This option may appear up to 1 times.
  609. The default
  610. \f\*[I-Font]string\f[]
  611. for this option is:
  612. .ti +4
  613. gtod
  614. .sp
  615. Allows you to select the packet timing method to use:
  616. .sp
  617. .IR "nano"
  618. - Use nanosleep() API
  619. .sp
  620. .IR "select"
  621. - Use select() API
  622. .sp
  623. .IR "ioport"
  624. - Write to the i386 IO Port 0x80
  625. .sp
  626. .IR "gtod [default]"
  627. - Use a gettimeofday() loop
  628. .br
  629. .TP
  630. .NOP \f\*[B-Font]\-\-maxsleep\f[]=\f\*[I-Font]number\f[]
  631. Sleep for no more then X milliseconds between packets.
  632. This option takes an integer number as its argument.
  633. The default
  634. \f\*[I-Font]number\f[]
  635. for this option is:
  636. .ti +4
  637. 0
  638. .sp
  639. Set a limit for the maximum number of milliseconds that tcpreplay will sleep
  640. between packets. Effectively prevents long delays between packets without
  641. effecting the majority of packets. Default is disabled.
  642. .TP
  643. .NOP \f\*[B-Font]\-v\f[], \f\*[B-Font]\-\-verbose\f[]
  644. Print decoded packets via tcpdump to STDOUT.
  645. This option may appear up to 1 times.
  646. .sp
  647. .TP
  648. .NOP \f\*[B-Font]\-A\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-decode\f[]=\f\*[I-Font]string\f[]
  649. Arguments passed to tcpdump decoder.
  650. This option may appear up to 1 times.
  651. This option must appear in combination with the following options:
  652. verbose.
  653. .sp
  654. When enabling verbose mode (\fB-v\fP) you may also specify one or more
  655. additional arguments to pass to \fBtcpdump\fP to modify the way packets
  656. are decoded. By default, \-n and \-l are used. Be sure to
  657. quote the arguments like: \-A "-axxx" so that they are not interpreted
  658. by tcpreplay. Please see the tcpdump(1) man page for a complete list of
  659. options.
  660. .TP
  661. .NOP \f\*[B-Font]\-K\f[], \f\*[B-Font]\-\-preload\-pcap\f[]
  662. Preloads packets into RAM before sending.
  663. .sp
  664. This option loads the specified pcap(s) into RAM before starting to send in order
  665. to improve replay performance while introducing a startup performance hit.
  666. Preloading can be used with or without \fB--loop\fP. This option also suppresses
  667. flow statistics collection for every iteration, which can significantly reduce
  668. memory usage. Flow statistics are predicted based on options supplied and
  669. statistics collected from the first loop iteration.
  670. .TP
  671. .NOP \f\*[B-Font]\-c\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-cachefile\f[]=\f\*[I-Font]string\f[]
  672. Split traffic via a tcpprep cache file.
  673. This option may appear up to 1 times.
  674. This option must appear in combination with the following options:
  675. intf2.
  676. This option must not appear in combination with any of the following options:
  677. dualfile.
  678. .sp
  679. If you have a pcap file you would like to use to send bi-directional
  680. traffic through a device (firewall, router, IDS, etc) then using tcpprep
  681. you can create a cachefile which tcpreplay will use to split the traffic
  682. across two network interfaces.
  683. .TP
  684. .NOP \f\*[B-Font]\-2\f[], \f\*[B-Font]\-\-dualfile\f[]
  685. Replay two files at a time from a network tap.
  686. This option may appear up to 1 times.
  687. This option must appear in combination with the following options:
  688. intf2.
  689. This option must not appear in combination with any of the following options:
  690. cachefile.
  691. .sp
  692. If you captured network traffic using a network tap, then you can end up with
  693. two pcap files- one for each direction. This option will replay these two
  694. files at the same time, one on each interface and inter-mix them using the
  695. timestamps in each.
  696. .TP
  697. .NOP \f\*[B-Font]\-i\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-intf1\f[]=\f\*[I-Font]string\f[]
  698. Client to server/RX/primary traffic output interface.
  699. This option may appear up to 1 times.
  700. This option is a member of the intf1 class of options.
  701. .sp
  702. Required network interface used to send either all traffic or traffic which is
  703. marked as 'primary' via tcpprep. Primary traffic is usually client-to-server
  704. or inbound (RX) on khial virtual interfaces.
  705. .TP
  706. .NOP \f\*[B-Font]\-I\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-intf2\f[]=\f\*[I-Font]string\f[]
  707. Server to client/TX/secondary traffic output interface.
  708. This option may appear up to 1 times.
  709. .sp
  710. Optional network interface used to send traffic which is marked as 'secondary'
  711. via tcpprep. Secondary traffic is usually server-to-client or outbound
  712. (TX) on khial virtual interfaces. Generally, it only makes sense to use this
  713. option with \--cachefile.
  714. .TP
  715. .NOP \f\*[B-Font]\-w\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-write\f[]=\f\*[I-Font]string\f[]
  716. Pcap file to receive traffic outputs.
  717. This option may appear up to 1 times.
  718. This option is a member of the intf1 class of options.
  719. This option must not appear in combination with any of the following options:
  720. intf2.
  721. .sp
  722. Optional pcap file name used to receive traffic.
  723. .TP
  724. .NOP \f\*[B-Font]\-\-include\f[]=\f\*[I-Font]string\f[]
  725. Send only selected packet numbers.
  726. This option may appear up to 1 times.
  727. This option must not appear in combination with any of the following options:
  728. exclude.
  729. .sp
  730. Override default of processing all packets stored in the capture file and only
  731. send packets that are part of a supplied list of packet numbers.
  732. .sp
  733. .nf
  734. \-x P:1-5,9,15,72-
  735. .fi
  736. would skip packets 1 through 5, the 9th and 15th packet, and packets 72 until the
  737. end of the file
  738. .TP
  739. .NOP \f\*[B-Font]\-\-exclude\f[]=\f\*[I-Font]string\f[]
  740. Send all but selected packet numbers.
  741. This option may appear up to 1 times.
  742. This option must not appear in combination with any of the following options:
  743. include.
  744. .sp
  745. Override default of processing all packets stored in the capture file and only
  746. send packets that are NOT part of a supplied list of packet numbers.
  747. .sp
  748. .nf
  749. \-x P:1-5,9,15,72-
  750. .fi
  751. would skip packets 1 through 5, the 9th and 15th packet, and packets 72 until the
  752. end of the file
  753. .TP
  754. .NOP \f\*[B-Font]\-\-listnics\f[]
  755. List available network interfaces and exit.
  756. .sp
  757. .TP
  758. .NOP \f\*[B-Font]\-l\f[] \f\*[I-Font]number\f[], \f\*[B-Font]\-\-loop\f[]=\f\*[I-Font]number\f[]
  759. Loop through the capture file X times.
  760. This option may appear up to 1 times.
  761. This option takes an integer number as its argument.
  762. The value of
  763. \f\*[I-Font]number\f[]
  764. is constrained to being:
  765. .in +4
  766. .nf
  767. .na
  768. greater than or equal to 0
  769. .fi
  770. .in -4
  771. The default
  772. \f\*[I-Font]number\f[]
  773. for this option is:
  774. .ti +4
  775. 1
  776. .sp
  777. .TP
  778. .NOP \f\*[B-Font]\-\-loopdelay\-ms\f[]=\f\*[I-Font]number\f[]
  779. Delay between loops in milliseconds.
  780. This option must appear in combination with the following options:
  781. loop.
  782. This option must not appear in combination with any of the following options:
  783. loopdelay-ns.
  784. This option takes an integer number as its argument.
  785. The value of
  786. \f\*[I-Font]number\f[]
  787. is constrained to being:
  788. .in +4
  789. .nf
  790. .na
  791. greater than or equal to 0
  792. .fi
  793. .in -4
  794. The default
  795. \f\*[I-Font]number\f[]
  796. for this option is:
  797. .ti +4
  798. 0
  799. .sp
  800. .TP
  801. .NOP \f\*[B-Font]\-\-loopdelay\-ns\f[]=\f\*[I-Font]number\f[]
  802. Delay between loops in nanoseconds.
  803. This option must appear in combination with the following options:
  804. loop.
  805. This option must not appear in combination with any of the following options:
  806. loopdelay-ms.
  807. This option takes an integer number as its argument.
  808. The value of
  809. \f\*[I-Font]number\f[]
  810. is constrained to being:
  811. .in +4
  812. .nf
  813. .na
  814. greater than or equal to 0
  815. .fi
  816. .in -4
  817. The default
  818. \f\*[I-Font]number\f[]
  819. for this option is:
  820. .ti +4
  821. 0
  822. .sp
  823. By default, tcpreplay will use loop delay with microsecond accuracy (loopdelay-ms).
  824. In order to use loop delay with nanosecond accuracy you need to use nano packet timing mode.
  825. .TP
  826. .NOP \f\*[B-Font]\-\-pktlen\f[]
  827. Override the snaplen and use the actual packet len.
  828. This option may appear up to 1 times.
  829. .sp
  830. By default, tcpreplay will send packets based on the size of the "snaplen"
  831. stored in the pcap file which is usually the correct thing to do. However,
  832. occasionally, tools will store more bytes then told to. By specifying this
  833. option, tcpreplay will ignore the snaplen field and instead try to send
  834. packets based on the original packet length. Bad things may happen if
  835. you specify this option.
  836. .TP
  837. .NOP \f\*[B-Font]\-L\f[] \f\*[I-Font]number\f[], \f\*[B-Font]\-\-limit\f[]=\f\*[I-Font]number\f[]
  838. Limit the number of packets to send.
  839. This option may appear up to 1 times.
  840. This option takes an integer number as its argument.
  841. The value of
  842. \f\*[I-Font]number\f[]
  843. is constrained to being:
  844. .in +4
  845. .nf
  846. .na
  847. greater than or equal to 1
  848. .fi
  849. .in -4
  850. The default
  851. \f\*[I-Font]number\f[]
  852. for this option is:
  853. .ti +4
  854. \-1
  855. .sp
  856. By default, tcpreplay will send all the packets. Alternatively, you can
  857. specify a maximum number of packets to send.
  858. .TP
  859. .NOP \f\*[B-Font]\-\-duration\f[]=\f\*[I-Font]number\f[]
  860. Limit the number of seconds to send.
  861. This option may appear up to 1 times.
  862. This option takes an integer number as its argument.
  863. The value of
  864. \f\*[I-Font]number\f[]
  865. is constrained to being:
  866. .in +4
  867. .nf
  868. .na
  869. greater than or equal to 1
  870. .fi
  871. .in -4
  872. The default
  873. \f\*[I-Font]number\f[]
  874. for this option is:
  875. .ti +4
  876. \-1
  877. .sp
  878. By default, tcpreplay will send all the packets. Alternatively, you can
  879. specify a maximum number of seconds to transmit.
  880. .TP
  881. .NOP \f\*[B-Font]\-x\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-multiplier\f[]=\f\*[I-Font]string\f[]
  882. Modify replay speed to a given multiple.
  883. This option may appear up to 1 times.
  884. This option must not appear in combination with any of the following options:
  885. pps, mbps, oneatatime, topspeed.
  886. .sp
  887. Specify a value to modify the packet replay speed.
  888. Examples:
  889. .nf
  890. 2.0 will replay traffic at twice the speed captured
  891. 0.7 will replay traffic at 70% the speed captured
  892. .fi
  893. .TP
  894. .NOP \f\*[B-Font]\-p\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-pps\f[]=\f\*[I-Font]string\f[]
  895. Replay packets at a given packets/sec.
  896. This option may appear up to 1 times.
  897. This option must not appear in combination with any of the following options:
  898. multiplier, mbps, oneatatime, topspeed.
  899. .sp
  900. Specify a value to regulate the packet replay to a specific packet-per-second rate.
  901. Examples:
  902. .nf
  903. 200 will replay traffic at 200 packets per second
  904. 0.25 will replay traffic at 15 packets per minute
  905. .fi
  906. .TP
  907. .NOP \f\*[B-Font]\-M\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-mbps\f[]=\f\*[I-Font]string\f[]
  908. Replay packets at a given Mbps.
  909. This option may appear up to 1 times.
  910. This option must not appear in combination with any of the following options:
  911. multiplier, pps, oneatatime, topspeed.
  912. .sp
  913. Specify a floating point value for the Mbps rate that tcpreplay
  914. should send packets at.
  915. .TP
  916. .NOP \f\*[B-Font]\-t\f[], \f\*[B-Font]\-\-topspeed\f[]
  917. Replay packets as fast as possible.
  918. This option must not appear in combination with any of the following options:
  919. mbps, multiplier, pps, oneatatime.
  920. .sp
  921. .TP
  922. .NOP \f\*[B-Font]\-o\f[], \f\*[B-Font]\-\-oneatatime\f[]
  923. Replay one packet at a time for each user input.
  924. This option must not appear in combination with any of the following options:
  925. mbps, pps, multiplier, topspeed.
  926. .sp
  927. Allows you to step through one or more packets at a time.
  928. .TP
  929. .NOP \f\*[B-Font]\-\-pps\-multi\f[]=\f\*[I-Font]number\f[]
  930. Number of packets to send for each time interval.
  931. This option must appear in combination with the following options:
  932. pps.
  933. This option takes an integer number as its argument.
  934. The value of
  935. \f\*[I-Font]number\f[]
  936. is constrained to being:
  937. .in +4
  938. .nf
  939. .na
  940. greater than or equal to 1
  941. .fi
  942. .in -4
  943. The default
  944. \f\*[I-Font]number\f[]
  945. for this option is:
  946. .ti +4
  947. 1
  948. .sp
  949. When trying to send packets at very high rates, the time between each packet
  950. can be so short that it is impossible to accurately sleep for the required
  951. period of time. This option allows you to send multiple packets at a time,
  952. thus allowing for longer sleep times which can be more accurately implemented.
  953. .TP
  954. .NOP \f\*[B-Font]\-\-unique\-ip\f[]
  955. Modify IP addresses each loop iteration to generate unique flows.
  956. This option must appear in combination with the following options:
  957. loop.
  958. This option must not appear in combination with any of the following options:
  959. seed, fuzz-seed.
  960. .sp
  961. Ensure IPv4 and IPv6 packets will be unique for each \fB--loop\fP iteration.
  962. This is done in a way that will not alter packet CRC, and therefore will generally
  963. not affect performance. This option will significantly increase the flows/sec over
  964. generated over multiple loop iterations.
  965. .TP
  966. .NOP \f\*[B-Font]\-\-unique\-ip\-loops\f[]=\f\*[I-Font]string\f[]
  967. Number of times to loop before assigning new unique ip.
  968. This option may appear up to 1 times.
  969. This option must appear in combination with the following options:
  970. unique-ip.
  971. .sp
  972. Number of \fB--loop\fP iterations before a new unique IP is assigned. Default
  973. is 1. Assumes both \fB--loop\fP and \fB--unique-ip\fP.
  974. .TP
  975. .NOP \f\*[B-Font]\-\-netmap\f[]
  976. Write packets directly to netmap enabled network adapter.
  977. .sp
  978. This feature will detect netmap capable network drivers on Linux and BSD
  979. systems. If detected, the network driver is bypassed for the execution
  980. duration, and network buffers will be written to directly. This will allow
  981. you to achieve full line rates on commodity network adapters, similar to rates
  982. achieved by commercial network traffic generators. Note that bypassing the network
  983. driver will disrupt other applications connected through the test interface. See
  984. INSTALL for more information.
  985. .sp
  986. This feature can also be enabled by specifying an interface as 'netmap:<intf>'
  987. or 'vale:<intf>. For example 'netmap:eth0' specifies netmap over interface eth0.
  988. .TP
  989. .NOP \f\*[B-Font]\-\-nm\-delay\f[]=\f\*[I-Font]number\f[]
  990. Netmap startup delay.
  991. This option takes an integer number as its argument.
  992. The default
  993. \f\*[I-Font]number\f[]
  994. for this option is:
  995. .ti +4
  996. 10
  997. .sp
  998. Number of seconds to delay after netmap is loaded. Required to ensure interfaces
  999. are fully up before netmap transmit. Requires netmap option. Default is 10 seconds.
  1000. .TP
  1001. .NOP \f\*[B-Font]\-\-no\-flow\-stats\f[]
  1002. Suppress printing and tracking flow count, rates and expirations.
  1003. .sp
  1004. Suppress the collection and printing of flow statistics. This option may
  1005. improve performance when not using \fB--preload-pcap\fP option, otherwise
  1006. its only function is to suppress printing.
  1007. .sp
  1008. The flow feature will track and print statistics of the flows being sent.
  1009. A flow is loosely defined as a unique combination of a 5-tuple, i.e.
  1010. source IP, destination IP, source port, destination port and protocol.
  1011. .sp
  1012. If \fB--loop\fP is specified, the flows from one iteration to the next
  1013. will not be unique, unless the packets are altered. Use \fB--unique-ip\fP
  1014. or \fBtcpreplay-edit\fP to alter packets between iterations.
  1015. .TP
  1016. .NOP \f\*[B-Font]\-\-flow\-expiry\f[]=\f\*[I-Font]number\f[]
  1017. Number of inactive seconds before a flow is considered expired.
  1018. This option must not appear in combination with any of the following options:
  1019. no-flow-stats.
  1020. This option takes an integer number as its argument.
  1021. The value of
  1022. \f\*[I-Font]number\f[]
  1023. is constrained to being:
  1024. .in +4
  1025. .nf
  1026. .na
  1027. greater than or equal to 0
  1028. .fi
  1029. .in -4
  1030. The default
  1031. \f\*[I-Font]number\f[]
  1032. for this option is:
  1033. .ti +4
  1034. 0
  1035. .sp
  1036. This option will track and report flow expirations based on the flow idle
  1037. times. The timestamps within the pcap file are used to determine the expiry,
  1038. not the actual timestamp of the packets are replayed. For example, a value of
  1039. 30 suggests that if no traffic is seen on a flow for 30 seconds, any
  1040. subsequent traffic would be considered a new flow, and thereby will increment
  1041. the flows and flows per second (fps) statistics.
  1042. .sp
  1043. This option can be used to optimize flow timeout settings for flow products.
  1044. Setting the timeout low may lead to flows being dropped when in fact the flow
  1045. is simply slow to respond. Configuring your flow timeouts too high may
  1046. increase resources required by your flow product.
  1047. .sp
  1048. Note that using this option while replaying at higher than original speeds
  1049. can lead to inflated flows and fps counts.
  1050. .sp
  1051. Default is 0 (no expiry) and a typical value is 30-120 seconds.
  1052. .TP
  1053. .NOP \f\*[B-Font]\-P\f[], \f\*[B-Font]\-\-pid\f[]
  1054. Print the PID of tcpreplay at startup.
  1055. .sp
  1056. .TP
  1057. .NOP \f\*[B-Font]\-\-stats\f[]=\f\*[I-Font]number\f[]
  1058. Print statistics every X seconds, or every loop if '0'.
  1059. This option takes an integer number as its argument.
  1060. The value of
  1061. \f\*[I-Font]number\f[]
  1062. is constrained to being:
  1063. .in +4
  1064. .nf
  1065. .na
  1066. greater than or equal to 0
  1067. .fi
  1068. .in -4
  1069. .sp
  1070. Note that timed delays are a "best effort" and long delays between
  1071. sending packets may cause equally long delays between printing statistics.
  1072. .TP
  1073. .NOP \f\*[B-Font]\-W\f[], \f\*[B-Font]\-\-suppress\-warnings\f[]
  1074. suppress printing warning messages.
  1075. .sp
  1076. .TP
  1077. .NOP \f\*[B-Font]\-\-xdp\f[]
  1078. Write packets directly to AF_XDP enabled network adapter.
  1079. .sp
  1080. This feature will detect AF_XDP capable network drivers on Linux systems
  1081. that have 'libxdp-dev' and 'libbpf-dev' installed. If detected, the network
  1082. stack is bypassed and packets are sent directly to an eBPF enabled driver directly.
  1083. This will allow you to achieve full line rates on commodity network adapters, similar to rates
  1084. achieved by commercial network traffic generators.
  1085. .TP
  1086. .NOP \f\*[B-Font]\-\-xdp\-batch\-size\f[]=\f\*[I-Font]number\f[]
  1087. The maximum number of packets that can be submitted to the AF_XDP TX ring at once.
  1088. This option takes an integer number as its argument.
  1089. The value of
  1090. \f\*[I-Font]number\f[]
  1091. is constrained to being:
  1092. .in +4
  1093. .nf
  1094. .na
  1095. in the range 1 through 4096
  1096. .fi
  1097. .in -4
  1098. The default
  1099. \f\*[I-Font]number\f[]
  1100. for this option is:
  1101. .ti +4
  1102. 25
  1103. .sp
  1104. Higher values may improve performance at the cost of accuracy
  1105. .TP
  1106. .NOP \f\*[B-Font]\-V\f[], \f\*[B-Font]\-\-version\f[]
  1107. Print version information.
  1108. .sp
  1109. .TP
  1110. .NOP \f\*[B-Font]\-h\f[], \f\*[B-Font]\-\-less\-help\f[]
  1111. Display less usage information and exit.
  1112. .sp
  1113. .TP
  1114. .NOP \f\*[B-Font]\-H\f[], \f\*[B-Font]\-\-help\f[]
  1115. Display usage information and exit.
  1116. .TP
  1117. .NOP \f\*[B-Font]\-\&!\f[], \f\*[B-Font]\-\-more-help\f[]
  1118. Pass the extended usage information through a pager.
  1119. .TP
  1120. .NOP \f\*[B-Font]\-\-save-opts\f[] [=\f\*[I-Font]cfgfile\f[]]
  1121. Save the option state to \fIcfgfile\fP. The default is the \fIlast\fP
  1122. configuration file listed in the \fBOPTION PRESETS\fP section, below.
  1123. The command will exit after updating the config file.
  1124. .TP
  1125. .NOP \f\*[B-Font]\-\-load-opts\f[]=\f\*[I-Font]cfgfile\f[], \f\*[B-Font]\-\-no-load-opts\f[]
  1126. Load options from \fIcfgfile\fP.
  1127. The \fIno-load-opts\fP form will disable the loading
  1128. of earlier config/rc/ini files. \fI\-\-no-load-opts\fP is handled early,
  1129. out of order.
  1130. .PP
  1131. .SH "OPTION PRESETS"
  1132. Any option that is not marked as \fInot presettable\fP may be preset
  1133. by loading values from configuration ("RC" or ".INI") file(s).
  1134. The \fIhomerc\fP file is "\fI$$/\fP", unless that is a directory.
  1135. In that case, the file "\fI.tcpreplay-editrc\fP"
  1136. is searched for within that directory.
  1137. .SH "FILES"
  1138. See \fBOPTION PRESETS\fP for configuration files.
  1139. .SH "EXIT STATUS"
  1140. One of the following exit values will be returned:
  1141. .TP
  1142. .NOP 0 " (EXIT_SUCCESS)"
  1143. Successful program execution.
  1144. .TP
  1145. .NOP 1 " (EXIT_FAILURE)"
  1146. The operation failed or the command syntax was not valid.
  1147. .TP
  1148. .NOP 66 " (EX_NOINPUT)"
  1149. A specified configuration file could not be loaded.
  1150. .TP
  1151. .NOP 70 " (EX_SOFTWARE)"
  1152. libopts had an internal operational error. Please report
  1153. it to autogen-users@lists.sourceforge.net. Thank you.
  1154. .PP
  1155. .SH "AUTHORS"
  1156. Copyright 2013-2024 Fred Klassen \- AppNeta
  1157. Copyright 2000-2012 Aaron Turner
  1158. For support please use the tcpreplay-users@lists.sourceforge.net mailing list.
  1159. The latest version of this software is always available from:
  1160. http://tcpreplay.appneta.com/
  1161. .SH "COPYRIGHT"
  1162. Copyright (C) 2000-2024 Aaron Turner and Fred Klassen all rights reserved.
  1163. This program is released under the terms of the GNU General Public License, version 3 or later.
  1164. .SH "BUGS"
  1165. Please send bug reports to: tcpreplay-users@lists.sourceforge.net
  1166. .SH "NOTES"
  1167. This manual page was \fIAutoGen\fP-erated from the \fBtcpreplay-edit\fP
  1168. option definitions.