1REORDERCAP(1) REORDERCAP(1)
2
3
4
6 reordercap - Reorder input file by timestamp into output file
7
9 reordercap [ -n ] [ -v ] <infile> <outfile>
10
12 Reordercap is a program that reads an input capture file and rewrites
13 the frames to an output capture file, but with the frames sorted by
14 increasing timestamp.
15
16 This functionality may be useful when capture files have been created
17 by combining frames from more than one well-synchronised source, but
18 the frames have not been combined in strict time order.
19
20 Reordercap writes the output capture file in the same format as the
21 input capture file.
22
23 Reordercap is able to detect, read and write the same capture files
24 that are supported by Wireshark. The input file doesn’t need a specific
25 filename extension; the file format and an optional gzip, zstd or lz4
26 compression will be automatically detected. Near the beginning of the
27 DESCRIPTION section of wireshark(1) or
28 https://www.wireshark.org/docs/man-pages/wireshark.html is a detailed
29 description of the way Wireshark handles this, which is the same way
30 reordercap handles this.
31
33 -n
34
35 When the -n option is used, reordercap will not write out the
36 output file if it finds that the input file is already in order.
37
38 -v
39
40 Print the version and exit.
41
43 pcap(3), wireshark(1), tshark(1), dumpcap(1), editcap(1), mergecap(1),
44 text2pcap(1), pcap-filter(7) or tcpdump(8)
45
47 This is the manual page for Reordercap 3.6.2. Reordercap is part of the
48 Wireshark distribution. The latest version of Wireshark can be found at
49 https://www.wireshark.org.
50
51 It may make sense to move this functionality into editcap, or perhaps
52 mergecap, in which case reordercap could be retired.
53
54 HTML versions of the Wireshark project man pages are available at
55 https://www.wireshark.org/docs/man-pages.
56
58 Original Author
59 Martin Mathieson <martin.r.mathieson[AT]googlemail.com>
60
61
62
63 2022-02-16 REORDERCAP(1)