Wireshark-commits: [Wireshark-commits] master-1.10 7d1f23d: Keep a captured-packet count in a captu

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 6 Apr 2015 19:29:48 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=7d1f23d4e498d93cf5330f07d87bd77fba6e385a
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-1.10
Repository: wireshark

Commits:

7d1f23d by Guy Harris (guy@xxxxxxxxxxxx):

    Keep a captured-packet count in a capture_session and use that.
    
    Have the count in a cfile_t structure always reflect the actual number
    of packets that have been read from the file, rather than, when doing a
    non-update-list-of-packets-in-real-time capture, falsely increasing the
    count in the cfile_t to reflect the number of packets captured but not
    yet read.
    
    Have the status bar base its captured-packet count on the count in the
    capture_session structure, and base the "sorry, no packets were
    captured" message on the count in the capture_session structure, as
    we're no longer using the count in the cfile_t structure to count
    anything in the process of a non-update-list-of-packets-in-real-time
    capture.
    
    That way, we preserve the invariant that the "frames" member of a
    cfile_t will be non-null if the "count" member is non-zero, fixing bug
    6217.
    
    It also means we can get rid of cf_set_packet_count(), as we only set
    the count in the capture-file-reading code.
    
    Bug: 6217
    Change-Id: I72c0e2c07c30782bad777995370b7c19e1460cc2
    Reviewed-on: https://code.wireshark.org/review/7950
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    (cherry picked from commit 1871fb2b0d9628707661776cfa1b35f210e5e58e)
    Reviewed-on: https://code.wireshark.org/review/7953
    

Actions performed:

    from  2a4285f   PKCS1: fix a typo for OID 1.3.132.0.35
    adds  7d1f23d   Keep a captured-packet count in a capture_session and use that.


Summary of changes:
 capture.c               |   10 ++--------
 capture_session.h       |    1 +
 capture_sync.c          |    2 ++
 file.c                  |    7 -------
 file.h                  |    8 --------
 ui/gtk/main_statusbar.c |    4 +---
 6 files changed, 6 insertions(+), 26 deletions(-)