Wireshark mailing list archives

Re: recv/drop numbers in pcapng files


From: Guy Harris <guy () alum mit edu>
Date: Wed, 25 Apr 2012 11:51:00 -0700


On Apr 25, 2012, at 11:08 AM, Michael Tuexen wrote:

However, we have no chance to report the packets dumpcap dropped.

Where does dumpcap itself drop packets?  Is this referring to the fact that, on some platforms, the OS's capture 
mechanism reports received packets as "packets received by the capture mechanism" rather than "packets received by the 
capture mechanism *and read into userland*" (and even *that* could be less than "... *and processed by the 
application*")?

        $ man bpf

                ...

        BIOCGSTATS      (struct bpf_stat) Returns the following structure of packet statistics:

                        struct bpf_stat {
                                u_int bs_recv; /* number of packets received */
                                u_int bs_drop; /* number of packets dropped */
                        };

                        The fields are:

                             bs_recv the number of packets received by the descriptor since opened or reset (*including 
any buffered since the last read call*); and 

(emphasis mine)?
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: