Wireshark-commits: [Wireshark-commits] master 3b68fc9: Dumpcap: Move the "just wrote one packet" lo

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 10 Nov 2018 01:59:15 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=3b68fc9fd4c307008d4bad685cab01889d375080
Submitter: "Gerald Combs <gerald@xxxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

3b68fc9 by Gerald Combs (gerald@xxxxxxxxxxxxx):

    Dumpcap: Move the "just wrote one packet" logic to one place.
    
    Add capture_loop_wrote_one_packet, which increments the appropriate
    counters and checks for autostop and ring buffer conditions. Call it
    when we write a pcap or pcapng packet. This fixes `-b packets:NUM` for
    pcapng output.
    
    Change-Id: Ie2bdd725fbee59c1ae10b05be84ae9a3a6d80111
    Reviewed-on: https://code.wireshark.org/review/30561
    Petri-Dish: Gerald Combs <gerald@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Gerald Combs <gerald@xxxxxxxxxxxxx>
    

Actions performed:

    from  ab68b2c   Diameter-3gpp: Dissect the SMS inside AVP 3301 SM-RP-UI.
     add  3b68fc9   Dumpcap: Move the "just wrote one packet" logic to one place.


Summary of changes:
 dumpcap.c | 65 ++++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 33 insertions(+), 32 deletions(-)