Wireshark-commits: [Wireshark-commits] master 0771cf7: Use a single wtap_rec and Buffer for an enti
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 08 Apr 2019 07:58:23 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=0771cf73cd2d4111727555a83f5401aa768cb849
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

0771cf7 by Guy Harris (guy@xxxxxxxxxxxx):

    Use a single wtap_rec and Buffer for an entire capture session.
    
    That way we aren't allocating memory, reading packets from a batch, and
    freeing the memory for each batch of packets delivered by dumpcap; we do
    the allocation when the capture starts and the freeing when it finishes.
    
    Change-Id: If012ab865f3a99d869535ad10827ad8680c1b10c
    Reviewed-on: https://code.wireshark.org/review/32766
    Petri-Dish: Guy Harris <guy@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  bbc8cbf   If you use data_file_url(), you must first call init_progfile_dir().
     add  0771cf7   Use a single wtap_rec and Buffer for an entire capture session.


Summary of changes:
 capchild/capture_session.h |  2 ++
 file.c                     | 25 ++++++------------
 file.h                     | 10 ++++++--
 ui/capture.c               | 63 ++++++++++++++++++++++++++--------------------
 4 files changed, 53 insertions(+), 47 deletions(-)