Wireshark-commits: [Wireshark-commits] master 9158176: pcapng: make SPB cap_len the same as packet_

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 29 Aug 2015 14:55:07 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=9158176b7f9a95f2ea701290a39ed53dc70bf834
Submitter: Hadriel Kaplan (hadrielk@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

9158176 by Hadriel Kaplan (hadrielk@xxxxxxxxx):

    pcapng: make SPB cap_len the same as packet_len if IDB snaplen is 0
    
    An IDB snaplen of 0 means no limit, so a Simple Packet Block's capture
    length should be the same as its encoded packet length in such a case.
    
    Bug: 11483
    Change-Id: I8856d6c6a669a0048ea64b3adbd23c37a598431d
    Reviewed-on: https://code.wireshark.org/review/10303
    Petri-Dish: Hadriel Kaplan <hadrielk@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Hadriel Kaplan <hadrielk@xxxxxxxxx>
    

Actions performed:

    from  0badc8c   Insure Qt Capture preferences dialog displays default capture device (if any)
    adds  9158176   pcapng: make SPB cap_len the same as packet_len if IDB snaplen is 0


Summary of changes:
 wiretap/pcapng.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)