1 include::../attributes.adoc[]
6 :copycss: {css_dir}/{stylesheet}
10 reordercap - Reorder input file by timestamp into output file
17 <__infile__> <__outfile__>
29 *Reordercap* is a program that reads an input capture file and rewrites the
30 frames to an output capture file, but with the frames sorted by increasing
33 This functionality may be useful when capture files have been created by
34 combining frames from more than one well-synchronised source, but the
35 frames have not been combined in strict time order.
37 *Reordercap* writes the output capture file in the same format as the input
40 *Reordercap* is able to detect, read and write the same capture files that
41 are supported by *Wireshark*.
42 The input file doesn't need a specific filename extension; the file
43 format and an optional gzip, zstd or lz4 compression will be automatically detected.
44 Near the beginning of the DESCRIPTION section of xref:wireshark.html[wireshark](1) or
45 https://www.wireshark.org/docs/man-pages/wireshark.html
46 is a detailed description of the way *Wireshark* handles this, which is
47 the same way *reordercap* handles this.
52 Print the version number and options and exit.
55 When the *-n* option is used, *reordercap* will not write out the output
56 file if it finds that the input file is already in order.
59 Print the full version information and exit.
61 include::diagnostic-options.adoc[]
65 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),
66 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)
70 This is the manual page for *Reordercap* {wireshark-version}.
71 *Reordercap* is part of the *Wireshark* distribution.
72 The latest version of *Wireshark* can be found at https://www.wireshark.org.
74 It may make sense to move this functionality into *editcap*, or perhaps *mergecap*, in which case *reordercap* could be retired.
76 HTML versions of the Wireshark project man pages are available at
77 https://www.wireshark.org/docs/man-pages.
83 Martin Mathieson <martin.r.mathieson[AT]googlemail.com>