Wireshark-commits: [Wireshark-commits] master-2.0 7bf5431: Correct 6LoWPAN NHC datagram size calcul
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=7bf5431d5e570205270ded3d48a929488f4d4064
Submitter: Michael Mann (mmann78@xxxxxxxxxxxx)
Changed: branch: master-2.0
Repository: wireshark
Commits:
7bf5431 by Kevin Bracey (kevin.bracey@xxxxxxx):
Correct 6LoWPAN NHC datagram size calculations
Length calculations updating "remaining datagram size" for fragmented
6LoWPAN packets with NHC headers were incorrect if there was any elided
option padding.
The current header's unpadded length was subtracted from dgram_size,
when it should have been the padded length - the datagram size is
uncompressed IPv6.
This meant the final nhdr_list entry created to represent the remaining
payload would have its "reported" field too large. Most visible result
of this was that the IPv6 payload length written into the packet by
lowpan_reassemble_ipv6() was too large.
Error probably went unnoticed because the most typical 6LoWPAN options
don't need padding - the RPL option is 6 bytes, and the MPL option is 6
bytes if using 16-bit seeds, making the HbH extension header an aligned
8 bytes.
Bug: 12310
Change-Id: If94e9ca57f88c4ac41f002a689ce1da7097b5bd0
Reviewed-on: https://code.wireshark.org/review/14701
Reviewed-by: Michael Mann <mmann78@xxxxxxxxxxxx>
(cherry picked from commit d81fe3907b00e00fb05a88eb0812ac874922e835)
Reviewed-on: https://code.wireshark.org/review/14720
Actions performed:
from 08ed8b6 Qt: fix buffer alarm threshold parameter retrieval in multicast statistics dialog
adds 7bf5431 Correct 6LoWPAN NHC datagram size calculations
Summary of changes:
epan/dissectors/packet-6lowpan.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)