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 7c4f622: Insert correct padding in RFC 6282 IPHC head

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 4 Sep 2015 11:04:21 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=7c4f622d6883208d88fbc4a0f32b80b62662d3b4
Submitter: Pascal Quantin (pascal.quantin@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

7c4f622 by Kevin Bracey (kevin.bracey@xxxxxxx):

    Insert correct padding in RFC 6282 IPHC headers
    
    IPv6 Extension Headers compressed using IPHC should have a single Pad1
    or PadN inserted at the end if necessary - the previous code just left
    any padding zero-initialised (equivalent to multiple Pad1s).
    
    This guarantees correctly-compressed packets are accurately
    decompressed, including the specific option padding pattern. (The type of
    padding could matter, eg for IPSec authentication - padding options are
    authenticated.)
    
    Print a warning note if a non-option header needs padding - this is
    invalid.
    
    Bug: 10523
    Change-Id: I66c98370862800a8fccbe02ed6a851961e2f7d1d
    Reviewed-on: https://code.wireshark.org/review/10230
    Petri-Dish: Pascal Quantin <pascal.quantin@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Pascal Quantin <pascal.quantin@xxxxxxxxx>
    

Actions performed:

    from  ad46641   BGP: Fix typo
    adds  7c4f622   Insert correct padding in RFC 6282 IPHC headers


Summary of changes:
 epan/dissectors/packet-6lowpan.c |   27 ++++++++++++++++++++++++---
 1 file changed, 24 insertions(+), 3 deletions(-)