Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-commits: [Wireshark-commits] master d8ac73c: Dumpcap: Adjust pcapng headers when we write

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Tue, 27 Nov 2018 04:39:53 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=d8ac73ce30625f02e205fde80a603c200882bf53
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

d8ac73c by Gerald Combs (gerald@xxxxxxxxxxxxx):

    Dumpcap: Adjust pcapng headers when we write them.
    
    When we capture from multiple interfaces, we won't necessarily write our
    IDBs in the same order we read them. This means that we need to call
    pcapng_adjust_block when we write packets, not when we read them.
    Otherwise we might map a given capture source's local interface number
    to the wrong global IDB entry.
    
    Bug: 15311
    Change-Id: Ia787d7f167dcd18d432020a715e2321f4060b851
    Reviewed-on: https://code.wireshark.org/review/30798
    Reviewed-by: Gerald Combs <gerald@xxxxxxxxxxxxx>
    Petri-Dish: Gerald Combs <gerald@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  0b9810a   Add a "No Reassembly" profile.
     add  d8ac73c   Dumpcap: Adjust pcapng headers when we write them.


Summary of changes:
 dumpcap.c | 56 +++++++++++++++++++++++++-------------------------------
 1 file changed, 25 insertions(+), 31 deletions(-)