dumpcap.html 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="generator" content="Asciidoctor 2.0.17">
  8. <title>dumpcap(1)</title>
  9. <link rel="stylesheet" href="./ws.css">
  10. </head>
  11. <body class="manpage">
  12. <div id="header">
  13. <h1>dumpcap(1) Manual Page</h1>
  14. <h2 id="_name">NAME</h2>
  15. <div class="sectionbody">
  16. <p>dumpcap - Dump network traffic</p>
  17. </div>
  18. </div>
  19. <div id="content">
  20. <div class="sect1">
  21. <h2 id="_synopsis">SYNOPSIS</h2>
  22. <div class="sectionbody">
  23. <div class="paragraph">
  24. <p><span class="nowrap"><strong>dumpcap</strong></span>
  25. <span class="nowrap">[ <strong>-a</strong>|<strong>--autostop</strong> &lt;capture autostop condition&gt; ] &#8230;&#8203;</span>
  26. <span class="nowrap">[ <strong>-b</strong>|<strong>--ring-buffer</strong> &lt;capture ring buffer option&gt; ] &#8230;&#8203;</span>
  27. <span class="nowrap">[ <strong>-B</strong>|<strong>--buffer-size</strong> &lt;capture buffer size&gt; ]</span>
  28. <span class="nowrap">[ <strong>-c</strong> &lt;capture packet count&gt; ]</span>
  29. <span class="nowrap">[ <strong>-C</strong> &lt;byte limit&gt; ]</span>
  30. <span class="nowrap">[ <strong>-d</strong> ]</span>
  31. <span class="nowrap">[ <strong>-D</strong>|<strong>--list-interfaces</strong> ]</span>
  32. <span class="nowrap">[ <strong>-f</strong> &lt;capture filter&gt; ]</span>
  33. <span class="nowrap">[ <strong>-g</strong> ]</span>
  34. <span class="nowrap">[ <strong>-h</strong>|<strong>--help</strong> ]</span>
  35. <span class="nowrap">[ <strong>-i</strong>|<strong>--interface</strong> &lt;capture interface&gt;|rpcap://&lt;host&gt;:&lt;port&gt;/&lt;capture interface&gt;|TCP@&lt;host&gt;:&lt;port&gt;|- ]</span>
  36. <span class="nowrap">[ <strong>-I</strong>|<strong>--monitor-mode</strong> ]</span>
  37. <span class="nowrap">[ <strong>-k</strong> &lt;freq&gt;,[&lt;type&gt;],[&lt;center_freq1&gt;],[&lt;center_freq2&gt;] ]</span>
  38. <span class="nowrap">[ <strong>-L</strong>|<strong>--list-data-link-types</strong> ]</span>
  39. <span class="nowrap">[ <strong>-M</strong> ]</span>
  40. <span class="nowrap">[ <strong>-n</strong> ]</span>
  41. <span class="nowrap">[ <strong>-N</strong> &lt;packet limit&gt; ]</span>
  42. <span class="nowrap">[ <strong>-p</strong>|<strong>--no-promiscuous-mode</strong> ]</span>
  43. <span class="nowrap">[ <strong>--ifdescr</strong> &lt;description&gt; ]</span>
  44. <span class="nowrap">[ <strong>--ifname</strong> &lt;name&gt; ]</span>
  45. <span class="nowrap">[ <strong>-P</strong> ]</span>
  46. <span class="nowrap">[ <strong>-q</strong> ]</span>
  47. <span class="nowrap">[ <strong>-s</strong>|<strong>--snapshot-length</strong> &lt;capture snaplen&gt; ]</span>
  48. <span class="nowrap">[ <strong>-S</strong> ]</span>
  49. <span class="nowrap">[ <strong>-t</strong> ]</span>
  50. <span class="nowrap">[ <strong>--temp-dir</strong> &lt;directory&gt; ]</span>
  51. <span class="nowrap">[ <strong>-v</strong>|<strong>--version</strong> ]</span>
  52. <span class="nowrap">[ <strong>-w</strong> &lt;outfile&gt; ]</span>
  53. <span class="nowrap">[ <strong>-y</strong>|<strong>--linktype</strong> &lt;capture link type&gt; ]</span>
  54. <span class="nowrap">[ <strong>--capture-comment</strong> &lt;comment&gt; ]</span>
  55. <span class="nowrap">[ <strong>--list-time-stamp-types</strong> ]</span>
  56. <span class="nowrap">[ <strong>--time-stamp-type</strong> &lt;type&gt; ]</span></p>
  57. </div>
  58. </div>
  59. </div>
  60. <div class="sect1">
  61. <h2 id="_description">DESCRIPTION</h2>
  62. <div class="sectionbody">
  63. <div class="paragraph">
  64. <p><strong>Dumpcap</strong> is a network traffic dump tool. It lets you capture packet
  65. data from a live network and write the packets to a file. <strong>Dumpcap</strong>'s
  66. default capture file format is <strong>pcapng</strong> format.
  67. When the <strong>-P</strong> option is specified, the output file is written in the
  68. <strong>pcap</strong> format.</p>
  69. </div>
  70. <div class="paragraph">
  71. <p>Without any options set it will use the libpcap, Npcap, or WinPcap library to
  72. capture traffic from the first available network interface and writes
  73. the received raw packet data, along with the packets' time stamps into a
  74. pcap file.</p>
  75. </div>
  76. <div class="paragraph">
  77. <p>If the <strong>-w</strong> option is not specified, <strong>Dumpcap</strong> writes to a newly
  78. created pcap file with a randomly chosen name.
  79. If the <strong>-w</strong> option is specified, <strong>Dumpcap</strong> writes to the file
  80. specified by that option.</p>
  81. </div>
  82. <div class="paragraph">
  83. <p>Packet capturing is performed with the pcap library. The capture filter
  84. syntax follows the rules of the pcap library.</p>
  85. </div>
  86. </div>
  87. </div>
  88. <div class="sect1">
  89. <h2 id="_options">OPTIONS</h2>
  90. <div class="sectionbody">
  91. <div class="dlist">
  92. <dl>
  93. <dt class="hdlist1">-a|--autostop &lt;capture autostop condition&gt;</dt>
  94. <dd>
  95. <div class="openblock">
  96. <div class="content">
  97. <div class="paragraph">
  98. <p>Specify a criterion that specifies when <strong>Dumpcap</strong> is to stop writing
  99. to a capture file. The criterion is of the form <em>test:value</em>,
  100. where <em>test</em> is one of:</p>
  101. </div>
  102. <div class="paragraph">
  103. <p><strong>duration</strong>:<em>value</em> Stop writing to a capture file after <em>value</em> seconds have
  104. elapsed. Floating point values (e.g. 0.5) are allowed.</p>
  105. </div>
  106. <div class="paragraph">
  107. <p><strong>files</strong>:<em>value</em> Stop writing to capture files after <em>value</em> number of files
  108. were written.</p>
  109. </div>
  110. <div class="paragraph">
  111. <p><strong>filesize</strong>:<em>value</em> Stop writing to a capture file after it reaches a size of
  112. <em>value</em> kB. If this option is used together with the -b option, dumpcap will
  113. stop writing to the current capture file and switch to the next one if filesize
  114. is reached. Note that the filesize is limited to a maximum value of 2 GiB.</p>
  115. </div>
  116. <div class="paragraph">
  117. <p><strong>packets</strong>:<em>value</em> Stop writing to a capture file after <em>value</em> packets
  118. have been written. Acts the same as <strong>-c</strong> &lt;capture packet count&gt;.</p>
  119. </div>
  120. </div>
  121. </div>
  122. </dd>
  123. <dt class="hdlist1">-b|--ring-buffer &lt;capture ring buffer option&gt;</dt>
  124. <dd>
  125. <div class="openblock">
  126. <div class="content">
  127. <div class="paragraph">
  128. <p>Cause <strong>Dumpcap</strong> to run in "multiple files" mode. In "multiple files" mode,
  129. <strong>Dumpcap</strong> will write to several capture files. When the first capture file
  130. fills up, <strong>Dumpcap</strong> will switch writing to the next file and so on.</p>
  131. </div>
  132. <div class="paragraph">
  133. <p>The created filenames are based on the filename given with the <strong>-w</strong> option,
  134. the number of the file and on the creation date and time,
  135. e.g. outfile_00001_20230714120117.pcap, outfile_00002_20230714120523.pcap, &#8230;&#8203;</p>
  136. </div>
  137. <div class="paragraph">
  138. <p>With the <em>files</em> option it&#8217;s also possible to form a "ring buffer".
  139. This will fill up new files until the number of files specified,
  140. at which point <strong>Dumpcap</strong> will discard the data in the first file and start
  141. writing to that file and so on. If the <em>files</em> option is not set,
  142. new files filled up until one of the capture stop conditions match (or
  143. until the disk is full).</p>
  144. </div>
  145. <div class="paragraph">
  146. <p>The criterion is of the form <em>key:value</em>,
  147. where <em>key</em> is one of:</p>
  148. </div>
  149. <div class="paragraph">
  150. <p><strong>duration</strong>:<em>value</em> switch to the next file after <em>value</em> seconds have
  151. elapsed, even if the current file is not completely filled up. Floating
  152. point values (e.g. 0.5) are allowed.</p>
  153. </div>
  154. <div class="paragraph">
  155. <p><strong>files</strong>:<em>value</em> begin again with the first file after <em>value</em> number of
  156. files were written (form a ring buffer). This value must be less than 100000.
  157. Caution should be used when using large numbers of files: some filesystems do
  158. not handle many files in a single directory well. The <strong>files</strong> criterion
  159. requires either <strong>duration</strong>, <strong>interval</strong> or <strong>filesize</strong> to be specified to
  160. control when to go to the next file. It should be noted that each <strong>-b</strong>
  161. parameter takes exactly one criterion; to specify two criterion, each must be
  162. preceded by the <strong>-b</strong> option.</p>
  163. </div>
  164. <div class="paragraph">
  165. <p><strong>filesize</strong>:<em>value</em> switch to the next file after it reaches a size of
  166. <em>value</em> kB. Note that the filesize is limited to a maximum value of 2 GiB.</p>
  167. </div>
  168. <div class="paragraph">
  169. <p><strong>interval</strong>:<em>value</em> switch to the next file when the time is an exact
  170. multiple of <em>value</em> seconds. For example, use 3600 to switch to a new file
  171. every hour on the hour.</p>
  172. </div>
  173. <div class="paragraph">
  174. <p><strong>packets</strong>:<em>value</em> switch to the next file after it contains <em>value</em>
  175. packets.</p>
  176. </div>
  177. <div class="paragraph">
  178. <p><strong>printname</strong>:<em>filename</em> print the name of the most recently written file
  179. to <em>filename</em> after the file is closed. <em>filename</em> can be <code>stdout</code> or <code>-</code>
  180. for standard output, or <code>stderr</code> for standard error.</p>
  181. </div>
  182. <div class="paragraph">
  183. <p>Example: <strong>-b filesize:1000 -b files:5</strong> results in a ring buffer of five files
  184. of size one megabyte each.</p>
  185. </div>
  186. </div>
  187. </div>
  188. </dd>
  189. <dt class="hdlist1">-B|--buffer-size &lt;capture buffer size&gt;</dt>
  190. <dd>
  191. <div class="openblock">
  192. <div class="content">
  193. <div class="paragraph">
  194. <p>Set capture buffer size (in MiB, default is 2 MiB). This is used by
  195. the capture driver to buffer packet data until that data can be written
  196. to disk. If you encounter packet drops while capturing, try to increase
  197. this size. Note that, while <strong>Dumpcap</strong> attempts to set the buffer size
  198. to 2 MiB by default, and can be told to set it to a larger value, the
  199. system or interface on which you&#8217;re capturing might silently limit the
  200. capture buffer size to a lower value or raise it to a higher value.</p>
  201. </div>
  202. <div class="paragraph">
  203. <p>This is available on UNIX systems with libpcap 1.0.0 or later and on
  204. Windows. It is not available on UNIX systems with earlier versions of
  205. libpcap.</p>
  206. </div>
  207. <div class="paragraph">
  208. <p>This option can occur multiple times. If used before the first
  209. occurrence of the <strong>-i</strong> option, it sets the default capture buffer size.
  210. If used after an <strong>-i</strong> option, it sets the capture buffer size for
  211. the interface specified by the last <strong>-i</strong> option occurring before
  212. this option. If the capture buffer size is not set specifically,
  213. the default capture buffer size is used instead.</p>
  214. </div>
  215. </div>
  216. </div>
  217. </dd>
  218. <dt class="hdlist1">-c &lt;capture packet count&gt;</dt>
  219. <dd>
  220. <div class="openblock">
  221. <div class="content">
  222. <div class="paragraph">
  223. <p>Set the maximum number of packets to read when capturing live
  224. data. Acts the same as <strong>-a packets:</strong>&lt;capture packet count&gt;.</p>
  225. </div>
  226. </div>
  227. </div>
  228. </dd>
  229. <dt class="hdlist1">-C &lt;byte limit&gt;</dt>
  230. <dd>
  231. <div class="openblock">
  232. <div class="content">
  233. <div class="paragraph">
  234. <p>Limit the amount of memory in bytes used for storing captured packets
  235. in memory while processing it.
  236. If used in combination with the <strong>-N</strong> option, both limits will apply.
  237. Setting this limit will enable the usage of the separate thread per interface.</p>
  238. </div>
  239. </div>
  240. </div>
  241. </dd>
  242. <dt class="hdlist1">-d</dt>
  243. <dd>
  244. <div class="openblock">
  245. <div class="content">
  246. <div class="paragraph">
  247. <p>Dump the code generated for the capture filter in a human-readable form,
  248. and exit.</p>
  249. </div>
  250. </div>
  251. </div>
  252. </dd>
  253. <dt class="hdlist1">-D|--list-interfaces</dt>
  254. <dd>
  255. <div class="openblock">
  256. <div class="content">
  257. <div class="paragraph">
  258. <p>Print a list of the interfaces on which <strong>Dumpcap</strong> can capture, and
  259. exit. For each network interface, a number and an
  260. interface name, possibly followed by a text description of the
  261. interface, is printed. The interface name or the number can be supplied
  262. to the <strong>-i</strong> option to specify an interface on which to capture.</p>
  263. </div>
  264. <div class="paragraph">
  265. <p>This can be useful on systems that don&#8217;t have a command to list them
  266. (UNIX systems lacking <strong>ifconfig -a</strong> or Linux systems lacking
  267. <strong>ip link show</strong>). The number can be useful on Windows systems, where
  268. the interface name might be a long name or a GUID.</p>
  269. </div>
  270. <div class="paragraph">
  271. <p>Note that "can capture" means that <strong>Dumpcap</strong> was able to open
  272. that device to do a live capture. Depending on your system you may need to
  273. run dumpcap from an account with special privileges (for example, as root)
  274. to be able to capture network traffic.
  275. If "<strong>dumpcap -D</strong>" is not run from such an account, it will not list
  276. any interfaces.</p>
  277. </div>
  278. </div>
  279. </div>
  280. </dd>
  281. <dt class="hdlist1">-f &lt;capture filter&gt;</dt>
  282. <dd>
  283. <div class="openblock">
  284. <div class="content">
  285. <div class="paragraph">
  286. <p>Set the capture filter expression.</p>
  287. </div>
  288. <div class="paragraph">
  289. <p>The entire filter expression must be specified as a single argument (which means
  290. that if it contains spaces, it must be quoted).</p>
  291. </div>
  292. <div class="paragraph">
  293. <p>This option can occur multiple times. If used before the first
  294. occurrence of the <strong>-i</strong> option, it sets the default capture filter expression.
  295. If used after an <strong>-i</strong> option, it sets the capture filter expression for
  296. the interface specified by the last <strong>-i</strong> option occurring before
  297. this option. If the capture filter expression is not set specifically,
  298. the default capture filter expression is used if provided.</p>
  299. </div>
  300. <div class="paragraph">
  301. <p>Pre-defined capture filter names, as shown in the GUI menu item Capture&#8594;Capture Filters,
  302. can be used by prefixing the argument with "predef:".
  303. Example: <strong>-f "predef:MyPredefinedHostOnlyFilter"</strong></p>
  304. </div>
  305. </div>
  306. </div>
  307. </dd>
  308. <dt class="hdlist1">-g</dt>
  309. <dd>
  310. <div class="openblock">
  311. <div class="content">
  312. <div class="paragraph">
  313. <p>This option causes the output file(s) to be created with group-read permission
  314. (meaning that the output file(s) can be read by other members of the calling
  315. user&#8217;s group).</p>
  316. </div>
  317. </div>
  318. </div>
  319. </dd>
  320. <dt class="hdlist1">-h|--help</dt>
  321. <dd>
  322. <div class="openblock">
  323. <div class="content">
  324. <div class="paragraph">
  325. <p>Print the version and options and exits.</p>
  326. </div>
  327. </div>
  328. </div>
  329. </dd>
  330. <dt class="hdlist1">-i|--interface &lt;capture interface&gt;|rpcap://&lt;host&gt;:&lt;port&gt;/&lt;capture interface&gt;|TCP@&lt;host&gt;:&lt;port&gt;|-</dt>
  331. <dd>
  332. <div class="openblock">
  333. <div class="content">
  334. <div class="paragraph">
  335. <p>Set the name of the network interface or pipe to use for live packet
  336. capture.</p>
  337. </div>
  338. <div class="paragraph">
  339. <p>Network interface names should match one of the names listed in
  340. "<strong>dumpcap -D</strong>" (described above); a number, as reported by
  341. "<strong>dumpcap -D</strong>", can also be used. If you&#8217;re using UNIX, "<strong>netstat
  342. -i</strong>", "<strong>ifconfig -a</strong>" or "<strong>ip link</strong>" might also work to list interface names,
  343. although not all versions of UNIX support the <strong>-a</strong> option to <strong>ifconfig</strong>.</p>
  344. </div>
  345. <div class="paragraph">
  346. <p>If no interface is specified, <strong>Dumpcap</strong> searches the list of
  347. interfaces, choosing the first non-loopback interface if there are any
  348. non-loopback interfaces, and choosing the first loopback interface if
  349. there are no non-loopback interfaces. If there are no interfaces at all,
  350. <strong>Dumpcap</strong> reports an error and doesn&#8217;t start the capture.</p>
  351. </div>
  352. <div class="paragraph">
  353. <p>Pipe names should be either the name of a FIFO (named pipe) or "-" to
  354. read data from the standard input. On Windows systems, pipe names must be
  355. of the form "\\.\pipe\<strong>pipename</strong>". Data read from pipes must be in
  356. standard pcapng or pcap format. Pcapng data must have the same
  357. endianness as the capturing host.</p>
  358. </div>
  359. <div class="paragraph">
  360. <p>"TCP@&lt;host&gt;:&lt;port&gt;" causes <strong>Dumpcap</strong> to attempt to connect to the
  361. specified port on the specified host and read pcapng or pcap data.</p>
  362. </div>
  363. <div class="paragraph">
  364. <p>This option can occur multiple times. When capturing from multiple
  365. interfaces, the capture file will be saved in pcapng format.</p>
  366. </div>
  367. </div>
  368. </div>
  369. </dd>
  370. <dt class="hdlist1">--ifdescr&gt; &lt;description&gt;</dt>
  371. <dd>
  372. <div class="openblock">
  373. <div class="content">
  374. <div class="paragraph">
  375. <p>Use <em>description</em> as the description in the capture file for the
  376. interface or pipe specified before it with <strong>-i</strong>.</p>
  377. </div>
  378. </div>
  379. </div>
  380. </dd>
  381. <dt class="hdlist1">--ifname&gt; &lt;name&gt;</dt>
  382. <dd>
  383. <div class="openblock">
  384. <div class="content">
  385. <div class="paragraph">
  386. <p>Use <em>name</em> as the name in the capture file for the interface or
  387. pipe specified before it with <strong>-i</strong>.</p>
  388. </div>
  389. </div>
  390. </div>
  391. </dd>
  392. <dt class="hdlist1">-I|--monitor-mode</dt>
  393. <dd>
  394. <div class="openblock">
  395. <div class="content">
  396. <div class="paragraph">
  397. <p>Put the interface in "monitor mode"; this is supported only on IEEE
  398. 802.11 Wi-Fi interfaces, and supported only on some operating systems.</p>
  399. </div>
  400. <div class="paragraph">
  401. <p>Note that in monitor mode the adapter might disassociate from the
  402. network with which it&#8217;s associated, so that you will not be able to use
  403. any wireless networks with that adapter. This could prevent accessing
  404. files on a network server, or resolving host names or network addresses,
  405. if you are capturing in monitor mode and are not connected to another
  406. network with another adapter.</p>
  407. </div>
  408. <div class="paragraph">
  409. <p>This option can occur multiple times. If used before the first
  410. occurrence of the <strong>-i</strong> option, it enables the monitor mode for all interfaces.
  411. If used after an <strong>-i</strong> option, it enables the monitor mode for
  412. the interface specified by the last <strong>-i</strong> option occurring before
  413. this option.</p>
  414. </div>
  415. </div>
  416. </div>
  417. </dd>
  418. <dt class="hdlist1">-k &lt;freq&gt;,[&lt;type&gt;],[&lt;center_freq1&gt;],[&lt;center_freq2&gt;&gt;</dt>
  419. <dd>
  420. <div class="openblock">
  421. <div class="content">
  422. <div class="paragraph">
  423. <p>Set the channel on the interface; this is supported only on IEEE
  424. 802.11 Wi-Fi interfaces, and supported only on some operating systems.</p>
  425. </div>
  426. <div class="paragraph">
  427. <p><em>freq</em> is the frequency of the channel. <em>type</em> is the type of the
  428. channel, for 802.11n and 802.11ac. The values for <em>type</em> are</p>
  429. </div>
  430. </div>
  431. </div>
  432. </dd>
  433. <dt class="hdlist1">NOHT</dt>
  434. <dd>
  435. <div class="openblock">
  436. <div class="content">
  437. <div class="paragraph">
  438. <p>Used for non-802.11n/non-802.1ac channels</p>
  439. </div>
  440. </div>
  441. </div>
  442. </dd>
  443. <dt class="hdlist1">HT20</dt>
  444. <dd>
  445. <div class="openblock">
  446. <div class="content">
  447. <div class="paragraph">
  448. <p>20 MHz channel</p>
  449. </div>
  450. </div>
  451. </div>
  452. </dd>
  453. <dt class="hdlist1">HT40-</dt>
  454. <dd>
  455. <div class="openblock">
  456. <div class="content">
  457. <div class="paragraph">
  458. <p>40 MHz primary channel and a lower secondary channel</p>
  459. </div>
  460. </div>
  461. </div>
  462. </dd>
  463. <dt class="hdlist1">HT40+</dt>
  464. <dd>
  465. <div class="openblock">
  466. <div class="content">
  467. <div class="paragraph">
  468. <p>40 MHz primary channel and a higher secondary channel</p>
  469. </div>
  470. </div>
  471. </div>
  472. </dd>
  473. <dt class="hdlist1">HT80</dt>
  474. <dd>
  475. <div class="openblock">
  476. <div class="content">
  477. <div class="paragraph">
  478. <p>80 MHz channel, with <em>centerfreq1</em> as its center frequency</p>
  479. </div>
  480. </div>
  481. </div>
  482. </dd>
  483. <dt class="hdlist1">VHT80+80</dt>
  484. <dd>
  485. <div class="openblock">
  486. <div class="content">
  487. <div class="paragraph">
  488. <p>two 80 MHz channels combined, with <em>centerfreq1</em> and <em>centerfreq2</em> as
  489. the center frequencies of the two channels</p>
  490. </div>
  491. </div>
  492. </div>
  493. </dd>
  494. <dt class="hdlist1">VHT160</dt>
  495. <dd>
  496. <div class="openblock">
  497. <div class="content">
  498. <div class="paragraph">
  499. <p>160 MHz channel, with <em>centerfreq1</em> as its center frequency</p>
  500. </div>
  501. </div>
  502. </div>
  503. </dd>
  504. <dt class="hdlist1">-L|--list-data-link-types</dt>
  505. <dd>
  506. <div class="openblock">
  507. <div class="content">
  508. <div class="paragraph">
  509. <p>List the data link types supported by the interface and exit. The reported
  510. link types can be used for the <strong>-y</strong> option.</p>
  511. </div>
  512. </div>
  513. </div>
  514. </dd>
  515. <dt class="hdlist1">-M</dt>
  516. <dd>
  517. <div class="openblock">
  518. <div class="content">
  519. <div class="paragraph">
  520. <p>When used with <strong>-D</strong>, <strong>-L</strong>, <strong>-S</strong> or <strong>--list-time-stamp-types</strong> print
  521. machine-readable output.
  522. The machine-readable output is intended to be read by <strong>Wireshark</strong> and
  523. <strong>TShark</strong>; its format is subject to change from release to release.</p>
  524. </div>
  525. </div>
  526. </div>
  527. </dd>
  528. <dt class="hdlist1">-n</dt>
  529. <dd>
  530. <div class="openblock">
  531. <div class="content">
  532. <div class="paragraph">
  533. <p>Save files as pcapng. This is the default.</p>
  534. </div>
  535. </div>
  536. </div>
  537. </dd>
  538. <dt class="hdlist1">-N &lt;packet limit&gt;</dt>
  539. <dd>
  540. <div class="openblock">
  541. <div class="content">
  542. <div class="paragraph">
  543. <p>Limit the number of packets used for storing captured packets
  544. in memory while processing it.
  545. If used in combination with the <strong>-C</strong> option, both limits will apply.
  546. Setting this limit will enable the usage of the separate thread per interface.</p>
  547. </div>
  548. </div>
  549. </div>
  550. </dd>
  551. <dt class="hdlist1">-p|--no-promiscuous-mode</dt>
  552. <dd>
  553. <div class="openblock">
  554. <div class="content">
  555. <div class="paragraph">
  556. <p><em>Don&#8217;t</em> put the interface into promiscuous mode. Note that the
  557. interface might be in promiscuous mode for some other reason; hence,
  558. <strong>-p</strong> cannot be used to ensure that the only traffic that is captured is
  559. traffic sent to or from the machine on which <strong>Dumpcap</strong> is running,
  560. broadcast traffic, and multicast traffic to addresses received by that
  561. machine.</p>
  562. </div>
  563. <div class="paragraph">
  564. <p>This option can occur multiple times. If used before the first
  565. occurrence of the <strong>-i</strong> option, no interface will be put into the
  566. promiscuous mode.
  567. If used after an <strong>-i</strong> option, the interface specified by the last <strong>-i</strong>
  568. option occurring before this option will not be put into the
  569. promiscuous mode.</p>
  570. </div>
  571. </div>
  572. </div>
  573. </dd>
  574. <dt class="hdlist1">-P</dt>
  575. <dd>
  576. <div class="openblock">
  577. <div class="content">
  578. <div class="paragraph">
  579. <p>Save files as pcap instead of the default pcapng. In situations that require
  580. pcapng, such as capturing from multiple interfaces, this option will be
  581. overridden.</p>
  582. </div>
  583. </div>
  584. </div>
  585. </dd>
  586. <dt class="hdlist1">-q</dt>
  587. <dd>
  588. <div class="openblock">
  589. <div class="content">
  590. <div class="paragraph">
  591. <p>When capturing packets, don&#8217;t display the continuous count of packets
  592. captured that is normally shown when saving a capture to a file;
  593. instead, just display, at the end of the capture, a count of packets
  594. captured. On systems that support the SIGINFO signal, such as various
  595. BSDs, you can cause the current count to be displayed by typing your
  596. "status" character (typically control-T, although it
  597. might be set to "disabled" by default on at least some BSDs, so you&#8217;d
  598. have to explicitly set it to use it).</p>
  599. </div>
  600. </div>
  601. </div>
  602. </dd>
  603. <dt class="hdlist1">-s|--snapshot-length &lt;capture snaplen&gt;</dt>
  604. <dd>
  605. <div class="openblock">
  606. <div class="content">
  607. <div class="paragraph">
  608. <p>Set the default snapshot length to use when capturing live data.
  609. No more than <em>snaplen</em> bytes of each network packet will be read into
  610. memory, or saved to disk. A value of 0 specifies a snapshot length of
  611. 262144, so that the full packet is captured; this is the default.</p>
  612. </div>
  613. <div class="paragraph">
  614. <p>This option can occur multiple times. If used before the first
  615. occurrence of the <strong>-i</strong> option, it sets the default snapshot length.
  616. If used after an <strong>-i</strong> option, it sets the snapshot length for
  617. the interface specified by the last <strong>-i</strong> option occurring before
  618. this option. If the snapshot length is not set specifically,
  619. the default snapshot length is used if provided.</p>
  620. </div>
  621. </div>
  622. </div>
  623. </dd>
  624. <dt class="hdlist1">-S</dt>
  625. <dd>
  626. <div class="openblock">
  627. <div class="content">
  628. <div class="paragraph">
  629. <p>Print statistics for each interface once every second.</p>
  630. </div>
  631. </div>
  632. </div>
  633. </dd>
  634. <dt class="hdlist1">-t</dt>
  635. <dd>
  636. <div class="openblock">
  637. <div class="content">
  638. <div class="paragraph">
  639. <p>Use a separate thread per interface.</p>
  640. </div>
  641. </div>
  642. </div>
  643. </dd>
  644. <dt class="hdlist1">--temp-dir &lt;directory&gt;</dt>
  645. <dd>
  646. <div class="openblock">
  647. <div class="content">
  648. <div class="paragraph">
  649. <p>Specifies the directory into which temporary files (including capture files)
  650. are to be written. The default behaviour is to use your system&#8217;s temporary
  651. directory (typically <em>/tmp</em> on Linux, and <em>C:\\Temp</em> on Windows).</p>
  652. </div>
  653. </div>
  654. </div>
  655. </dd>
  656. <dt class="hdlist1">-v|--version</dt>
  657. <dd>
  658. <div class="openblock">
  659. <div class="content">
  660. <div class="paragraph">
  661. <p>Print the version and exit.</p>
  662. </div>
  663. </div>
  664. </div>
  665. </dd>
  666. <dt class="hdlist1">-w &lt;outfile&gt;</dt>
  667. <dd>
  668. <div class="openblock">
  669. <div class="content">
  670. <div class="paragraph">
  671. <p>Write raw packet data to <em>outfile</em>. Use "-" for stdout.</p>
  672. </div>
  673. </div>
  674. </div>
  675. </dd>
  676. <dt class="hdlist1">-y|--linktype &lt;capture link type&gt;</dt>
  677. <dd>
  678. <div class="openblock">
  679. <div class="content">
  680. <div class="paragraph">
  681. <p>Set the data link type to use while capturing packets. The values
  682. reported by <strong>-L</strong> are the values that can be used.</p>
  683. </div>
  684. <div class="paragraph">
  685. <p>This option can occur multiple times. If used before the first
  686. occurrence of the <strong>-i</strong> option, it sets the default capture link type.
  687. If used after an <strong>-i</strong> option, it sets the capture link type for
  688. the interface specified by the last <strong>-i</strong> option occurring before
  689. this option. If the capture link type is not set specifically,
  690. the default capture link type is used if provided.</p>
  691. </div>
  692. </div>
  693. </div>
  694. </dd>
  695. <dt class="hdlist1">--capture-comment &lt;comment&gt;</dt>
  696. <dd>
  697. <div class="openblock">
  698. <div class="content">
  699. <div class="paragraph">
  700. <p>Add a capture comment to the output file, if supported by the output
  701. file format.</p>
  702. </div>
  703. <div class="paragraph">
  704. <p>This option is only available if we output the captured packets to a
  705. single file.</p>
  706. </div>
  707. <div class="paragraph">
  708. <p>This option may be specified multiple times. Note that Wireshark
  709. currently only displays the first comment of a capture file.</p>
  710. </div>
  711. </div>
  712. </div>
  713. </dd>
  714. <dt class="hdlist1">--list-time-stamp-types</dt>
  715. <dd>
  716. <div class="openblock">
  717. <div class="content">
  718. <div class="paragraph">
  719. <p>List time stamp types supported for the interface. If no time stamp type can be
  720. set, no time stamp types are listed.</p>
  721. </div>
  722. </div>
  723. </div>
  724. </dd>
  725. <dt class="hdlist1">--time-stamp-type &lt;type&gt;</dt>
  726. <dd>
  727. <div class="openblock">
  728. <div class="content">
  729. <div class="paragraph">
  730. <p>Change the interface&#8217;s timestamp method.</p>
  731. </div>
  732. </div>
  733. </div>
  734. </dd>
  735. </dl>
  736. </div>
  737. </div>
  738. </div>
  739. <div class="sect1">
  740. <h2 id="_diagnostic_options">DIAGNOSTIC OPTIONS</h2>
  741. <div class="sectionbody">
  742. <div class="dlist">
  743. <dl>
  744. <dt class="hdlist1">--log-level &lt;level&gt;</dt>
  745. <dd>
  746. <p>Set the active log level.
  747. Supported levels in lowest to highest order are "noisy", "debug", "info", "message", "warning", "critical", and "error".
  748. Messages at each level and higher will be printed, for example "warning" prints "warning", "critical", and "error" messages and "noisy" prints all messages.
  749. Levels are case insensitive.</p>
  750. </dd>
  751. <dt class="hdlist1">--log-fatal &lt;level&gt;</dt>
  752. <dd>
  753. <p>Abort the program if any messages are logged at the specified level or higher.
  754. For example, "warning" aborts on any "warning", "critical", or "error" messages.</p>
  755. </dd>
  756. </dl>
  757. </div>
  758. <div class="dlist">
  759. <dl>
  760. <dt class="hdlist1">--log-domains &lt;list&gt;</dt>
  761. <dd>
  762. <p>Only print messages for the specified log domains, e.g. "GUI,Epan,sshdump".
  763. List of domains must be comma-separated.</p>
  764. </dd>
  765. <dt class="hdlist1">--log-debug &lt;list&gt;</dt>
  766. <dd>
  767. <p>Force the specified domains to log at the "debug" level.
  768. List of domains must be comma-separated.</p>
  769. </dd>
  770. <dt class="hdlist1">--log-noisy &lt;list&gt;</dt>
  771. <dd>
  772. <p>Force the specified domains to log at the "noisy" level.
  773. List of domains must be comma-separated.</p>
  774. </dd>
  775. <dt class="hdlist1">--log-file &lt;path&gt;</dt>
  776. <dd>
  777. <p>Write log messages and stderr output to the specified file.</p>
  778. </dd>
  779. </dl>
  780. </div>
  781. </div>
  782. </div>
  783. <div class="sect1">
  784. <h2 id="_capture_filter_syntax">CAPTURE FILTER SYNTAX</h2>
  785. <div class="sectionbody">
  786. <div class="paragraph">
  787. <p>See the manual page of <a href="https://www.tcpdump.org/manpages/pcap-filter.7.html">pcap-filter</a>(7) or, if that doesn&#8217;t exist, <a href="https://www.tcpdump.org/manpages/tcpdump.1.html">tcpdump</a>(8),
  788. or, if that doesn&#8217;t exist, <a href="https://gitlab.com/wireshark/wireshark/-/wikis/CaptureFilters" class="bare">https://gitlab.com/wireshark/wireshark/-/wikis/CaptureFilters</a>.</p>
  789. </div>
  790. </div>
  791. </div>
  792. <div class="sect1">
  793. <h2 id="_see_also">SEE ALSO</h2>
  794. <div class="sectionbody">
  795. <div class="paragraph">
  796. <p><a href="wireshark.html">wireshark</a>(1), <a href="tshark.html">tshark</a>(1), <a href="editcap.html">editcap</a>(1), <a href="mergecap.html">mergecap</a>(1), <a href="capinfos.html">capinfos</a>(1), <a href="https://www.tcpdump.org/manpages/pcap.3pcap.html">pcap</a>(3),
  797. <a href="https://www.tcpdump.org/manpages/pcap-filter.7.html">pcap-filter</a>(7) or <a href="https://www.tcpdump.org/manpages/tcpdump.1.html">tcpdump</a>(8)</p>
  798. </div>
  799. </div>
  800. </div>
  801. <div class="sect1">
  802. <h2 id="_notes">NOTES</h2>
  803. <div class="sectionbody">
  804. <div class="paragraph">
  805. <p>This is the manual page for <strong>Dumpcap</strong> 4.0.5.
  806. <strong>Dumpcap</strong> is part of the <strong>Wireshark</strong> distribution.
  807. The latest version of <strong>Wireshark</strong> can be found at <a href="https://www.wireshark.org" class="bare">https://www.wireshark.org</a>.</p>
  808. </div>
  809. <div class="paragraph">
  810. <p>HTML versions of the Wireshark project man pages are available at
  811. <a href="https://www.wireshark.org/docs/man-pages" class="bare">https://www.wireshark.org/docs/man-pages</a>.</p>
  812. </div>
  813. </div>
  814. </div>
  815. <div class="sect1">
  816. <h2 id="_authors">AUTHORS</h2>
  817. <div class="sectionbody">
  818. <div class="paragraph">
  819. <p><strong>Dumpcap</strong> is derived from the <strong>Wireshark</strong> capturing engine code;
  820. see the list of
  821. authors in the <strong>Wireshark</strong> man page for a list of authors of that code.</p>
  822. </div>
  823. </div>
  824. </div>
  825. </div>
  826. </body>
  827. </html>