reordercap.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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>reordercap(1)</title>
  9. <link rel="stylesheet" href="./ws.css">
  10. </head>
  11. <body class="manpage">
  12. <div id="header">
  13. <h1>reordercap(1) Manual Page</h1>
  14. <h2 id="_name">NAME</h2>
  15. <div class="sectionbody">
  16. <p>reordercap - Reorder input file by timestamp into output file</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>reordercap</strong></span>
  25. <span class="nowrap">[ <strong>-n</strong> ]</span>
  26. <span class="nowrap">[ <strong>-v</strong> ]</span>
  27. <span class="nowrap">&lt;<em>infile</em>&gt; &lt;<em>outfile</em>&gt;</span></p>
  28. </div>
  29. </div>
  30. </div>
  31. <div class="sect1">
  32. <h2 id="_description">DESCRIPTION</h2>
  33. <div class="sectionbody">
  34. <div class="paragraph">
  35. <p><strong>Reordercap</strong> is a program that reads an input capture file and rewrites the
  36. frames to an output capture file, but with the frames sorted by increasing
  37. timestamp.</p>
  38. </div>
  39. <div class="paragraph">
  40. <p>This functionality may be useful when capture files have been created by
  41. combining frames from more than one well-synchronised source, but the
  42. frames have not been combined in strict time order.</p>
  43. </div>
  44. <div class="paragraph">
  45. <p><strong>Reordercap</strong> writes the output capture file in the same format as the input
  46. capture file.</p>
  47. </div>
  48. <div class="paragraph">
  49. <p><strong>Reordercap</strong> is able to detect, read and write the same capture files that
  50. are supported by <strong>Wireshark</strong>.
  51. The input file doesn&#8217;t need a specific filename extension; the file
  52. format and an optional gzip, zstd or lz4 compression will be automatically detected.
  53. Near the beginning of the DESCRIPTION section of <a href="wireshark.html">wireshark</a>(1) or
  54. <a href="https://www.wireshark.org/docs/man-pages/wireshark.html" class="bare">https://www.wireshark.org/docs/man-pages/wireshark.html</a>
  55. is a detailed description of the way <strong>Wireshark</strong> handles this, which is
  56. the same way <strong>reordercap</strong> handles this.</p>
  57. </div>
  58. </div>
  59. </div>
  60. <div class="sect1">
  61. <h2 id="_options">OPTIONS</h2>
  62. <div class="sectionbody">
  63. <div class="dlist">
  64. <dl>
  65. <dt class="hdlist1">-n</dt>
  66. <dd>
  67. <div class="openblock">
  68. <div class="content">
  69. <div class="paragraph">
  70. <p>When the <strong>-n</strong> option is used, <strong>reordercap</strong> will not write out the output
  71. file if it finds that the input file is already in order.</p>
  72. </div>
  73. </div>
  74. </div>
  75. </dd>
  76. <dt class="hdlist1">-v</dt>
  77. <dd>
  78. <div class="openblock">
  79. <div class="content">
  80. <div class="paragraph">
  81. <p>Print the version and exit.</p>
  82. </div>
  83. </div>
  84. </div>
  85. </dd>
  86. </dl>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="sect1">
  91. <h2 id="_diagnostic_options">DIAGNOSTIC OPTIONS</h2>
  92. <div class="sectionbody">
  93. <div class="dlist">
  94. <dl>
  95. <dt class="hdlist1">--log-level &lt;level&gt;</dt>
  96. <dd>
  97. <p>Set the active log level.
  98. Supported levels in lowest to highest order are "noisy", "debug", "info", "message", "warning", "critical", and "error".
  99. Messages at each level and higher will be printed, for example "warning" prints "warning", "critical", and "error" messages and "noisy" prints all messages.
  100. Levels are case insensitive.</p>
  101. </dd>
  102. <dt class="hdlist1">--log-fatal &lt;level&gt;</dt>
  103. <dd>
  104. <p>Abort the program if any messages are logged at the specified level or higher.
  105. For example, "warning" aborts on any "warning", "critical", or "error" messages.</p>
  106. </dd>
  107. </dl>
  108. </div>
  109. <div class="dlist">
  110. <dl>
  111. <dt class="hdlist1">--log-domains &lt;list&gt;</dt>
  112. <dd>
  113. <p>Only print messages for the specified log domains, e.g. "GUI,Epan,sshdump".
  114. List of domains must be comma-separated.</p>
  115. </dd>
  116. <dt class="hdlist1">--log-debug &lt;list&gt;</dt>
  117. <dd>
  118. <p>Force the specified domains to log at the "debug" level.
  119. List of domains must be comma-separated.</p>
  120. </dd>
  121. <dt class="hdlist1">--log-noisy &lt;list&gt;</dt>
  122. <dd>
  123. <p>Force the specified domains to log at the "noisy" level.
  124. List of domains must be comma-separated.</p>
  125. </dd>
  126. <dt class="hdlist1">--log-file &lt;path&gt;</dt>
  127. <dd>
  128. <p>Write log messages and stderr output to the specified file.</p>
  129. </dd>
  130. </dl>
  131. </div>
  132. </div>
  133. </div>
  134. <div class="sect1">
  135. <h2 id="_see_also">SEE ALSO</h2>
  136. <div class="sectionbody">
  137. <div class="paragraph">
  138. <p><a href="https://www.tcpdump.org/manpages/pcap.3pcap.html">pcap</a>(3), <a href="wireshark.html">wireshark</a>(1), <a href="tshark.html">tshark</a>(1), <a href="dumpcap.html">dumpcap</a>(1), <a href="editcap.html">editcap</a>(1), <a href="mergecap.html">mergecap</a>(1),
  139. <a href="text2pcap.html">text2pcap</a>(1), <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>
  140. </div>
  141. </div>
  142. </div>
  143. <div class="sect1">
  144. <h2 id="_notes">NOTES</h2>
  145. <div class="sectionbody">
  146. <div class="paragraph">
  147. <p>This is the manual page for <strong>Reordercap</strong> 4.0.5.
  148. <strong>Reordercap</strong> is part of the <strong>Wireshark</strong> distribution.
  149. 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>
  150. </div>
  151. <div class="paragraph">
  152. <p>It may make sense to move this functionality into <strong>editcap</strong>, or perhaps <strong>mergecap</strong>, in which case <strong>reordercap</strong> could be retired.</p>
  153. </div>
  154. <div class="paragraph">
  155. <p>HTML versions of the Wireshark project man pages are available at
  156. <a href="https://www.wireshark.org/docs/man-pages" class="bare">https://www.wireshark.org/docs/man-pages</a>.</p>
  157. </div>
  158. </div>
  159. </div>
  160. <div class="sect1">
  161. <h2 id="_authors">AUTHORS</h2>
  162. <div class="sectionbody">
  163. <div class="paragraph">
  164. <div class="title">Original Author</div>
  165. <p>Martin Mathieson &lt;martin.r.mathieson[AT]googlemail.com&gt;</p>
  166. </div>
  167. </div>
  168. </div>
  169. </div>
  170. </body>
  171. </html>