Wireshark-commits: [Wireshark-commits] master d24c9df: editcap: add capture-file comments to output

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 7 Aug 2020 08:24:31 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=d24c9df38467a2628c126998b3ab1aca54ee6155
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

d24c9df by David Perry (boolean263@xxxxxxxxxxxxxx):

    editcap: add capture-file comments to output file
    
    Add the `--capture-comment "comment"` option for appending pcapng
    comments to the SHB of the output file(s).
    
    Add the `--discard-capture-comment` option for removing pcapng comments
    present in the input file SHB(s) before writing to the output file(s).
    
    Supports multiple comments per SHB. Noted in the documentation that
    Wireshark itself doesn't support multiple comments.
    
    Bug: 15033
    Change-Id: If07a4e7a93505438639018783a11343cd5992f2a
    Reviewed-on: https://code.wireshark.org/review/38074
    Petri-Dish: Anders Broman <a.broman58@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  9015824   dicom: when exporting objects, don't assume we have the AE titles.
     add  d24c9df   editcap: add capture-file comments to output file


Summary of changes:
 doc/editcap.pod | 17 ++++++++++++++++
 editcap.c       | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)