2021-10-19 23:26:37 +00:00
include::../docbook/attributes.adoc[]
2021-06-18 10:20:51 +00:00
= reordercap(1)
:doctype: manpage
:stylesheet: ws.css
:linkcss:
:copycss: ../docbook/{stylesheet}
2018-08-17 18:34:57 +00:00
2021-06-18 10:20:51 +00:00
== NAME
2012-10-03 12:22:08 +00:00
reordercap - Reorder input file by timestamp into output file
2021-06-18 10:20:51 +00:00
== SYNOPSIS
2012-10-03 12:22:08 +00:00
2021-06-18 10:20:51 +00:00
[manarg]
*reordercap*
[ *-n* ]
[ *-v* ]
<__infile__> <__outfile__>
2012-10-03 12:22:08 +00:00
2021-06-18 10:20:51 +00:00
== DESCRIPTION
2012-10-03 12:22:08 +00:00
2021-06-18 10:20:51 +00:00
*Reordercap* is a program that reads an input capture file and rewrites the
2012-10-03 12:22:08 +00:00
frames to an output capture file, but with the frames sorted by increasing
timestamp.
This functionality may be useful when capture files have been created by
combining frames from more than one well-synchronised source, but the
2012-10-03 18:03:01 +00:00
frames have not been combined in strict time order.
2012-10-03 12:22:08 +00:00
2021-06-18 10:20:51 +00:00
*Reordercap* writes the output capture file in the same format as the input
2012-10-03 12:22:08 +00:00
capture file.
2021-06-18 10:20:51 +00:00
*Reordercap* is able to detect, read and write the same capture files that
are supported by *Wireshark*.
2012-10-03 12:22:08 +00:00
The input file doesn't need a specific filename extension; the file
2021-08-19 12:48:52 +00:00
format and an optional gzip, zstd or lz4 compression will be automatically detected.
2021-06-18 10:20:51 +00:00
Near the beginning of the DESCRIPTION section of xref:wireshark.html[wireshark](1) or
https://www.wireshark.org/docs/man-pages/wireshark.html
is a detailed description of the way *Wireshark* handles this, which is
the same way *reordercap* handles this.
2013-05-20 01:41:52 +00:00
2021-06-18 10:20:51 +00:00
== OPTIONS
2013-05-20 01:41:52 +00:00
2021-06-18 10:20:51 +00:00
-n::
+
--
When the *-n* option is used, *reordercap* will not write out the output
2013-05-20 01:41:52 +00:00
file if it finds that the input file is already in order.
2021-06-18 10:20:51 +00:00
--
2012-10-03 12:22:08 +00:00
2021-06-18 10:20:51 +00:00
-v::
+
--
2014-06-20 18:48:27 +00:00
Print the version and exit.
2021-06-18 10:20:51 +00:00
--
2014-06-20 18:48:27 +00:00
2021-12-26 17:35:37 +00:00
include::diagnostic-options.adoc[]
2021-06-18 10:20:51 +00:00
== SEE ALSO
2012-10-03 12:22:08 +00:00
2021-06-18 10:20:51 +00:00
xref:https://www.tcpdump.org/manpages/pcap.3pcap.html[pcap](3), xref:wireshark.html[wireshark](1), xref:tshark.html[tshark](1), xref:dumpcap.html[dumpcap](1), xref:editcap.html[editcap](1), xref:mergecap.html[mergecap](1),
xref:text2pcap.html[text2pcap](1), xref:https://www.tcpdump.org/manpages/pcap-filter.7.html[pcap-filter](7) or xref:https://www.tcpdump.org/manpages/tcpdump.1.html[tcpdump](8)
2012-10-03 12:22:08 +00:00
2021-06-18 10:20:51 +00:00
== NOTES
2012-10-03 12:22:08 +00:00
2021-10-01 23:36:17 +00:00
This is the manual page for *Reordercap* {wireshark-version}.
*Reordercap* is part of the *Wireshark* distribution.
The latest version of *Wireshark* can be found at https://www.wireshark.org.
2012-10-03 12:22:08 +00:00
2021-10-01 23:36:17 +00:00
It may make sense to move this functionality into *editcap*, or perhaps *mergecap*, in which case *reordercap* could be retired.
2012-10-03 12:22:08 +00:00
2021-10-01 02:39:09 +00:00
HTML versions of the Wireshark project man pages are available at
2021-06-18 10:20:51 +00:00
https://www.wireshark.org/docs/man-pages.
2012-10-03 12:22:08 +00:00
2021-06-18 10:20:51 +00:00
== AUTHORS
2012-10-03 12:22:08 +00:00
2021-06-18 10:20:51 +00:00
.Original Author
[%hardbreaks]
Martin Mathieson <martin.r.mathieson[AT]googlemail.com>
2012-10-03 12:22:08 +00:00