Wireshark-bugs: [Wireshark-bugs] [Bug 7747] New: reordercap's final summary message is confusing

Date: Sat, 22 Sep 2012 23:49:36 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7747

           Summary: reordercap's final summary message is confusing
           Product: Wireshark
           Version: 1.9.x (Experimental)
          Platform: x86
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Major
          Priority: Low
         Component: Extras
        AssignedTo: bugzilla-admin@xxxxxxxxxxxxx
        ReportedBy: jyoung@xxxxxxx


Build Information:
Paste the COMPLETE build information from "Help->About Wireshark", "wireshark
-v", or "tshark -v".
--
SVN 45023 added a new console wiretap program called reordercap.

reordercap creates a new trace file with all packets placed in chronological
order.  

When presented with an input file with all packets already in chronological
order get a misleading message that all but one of the packets were "out of
order".

When presented with an input file with the packets in reverse chronological
order reordercap successfully put the output file in chronological order but
presents the misleading message that "0 out of order".

reordercap input file already in order:

> bash-3.2$ ./capinfos -o forward.pcap 
> File name:           forward.pcap
> Strict time order:   True
> bash-3.2$ 
> bash-3.2$ reordercap forward.pcap new.pcap
> 40 frames, 39 out of order
> bash-3.2$ 
> bash-3.2$ ./capinfos -o new.pcap 
> File name:           new.pcap
> Strict time order:   True
> bash-3.2$ 

reordercap input file is reverse order:

> bash-3.2$ ./capinfos -o backwards.pcap 
> File name:           backwards.pcap
> Strict time order:   False
> bash-3.2$ 
> bash-3.2$ ./reordercap backwards.pcap new.pcap
> 40 frames, 0 out of order
> bash-3.2$ 
> bash-3.2$ ./capinfos -o new.pcap 
> File name:           new.pcap
> Strict time order:   True
> bash-3.2$ 

The two small sample files used for the above test will be added as
attachments.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.