forked from osmocom/wireshark
From Beth Tridium:
When a 6lowpan message has a compressed UDP length (i.e. the length must be calculated, not read from the headers), the 6lowpan dissector correctly reports that the UDP length is compressed, but it may try to read the length from the headers anyway. svn path=/trunk/; revision=31075
This commit is contained in:
parent
4c6f3e96de
commit
e1afd4d4f7
|
@ -1004,7 +1004,7 @@ dissect_6lowpan_hc1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|||
udp.dst_port = g_ntohs(udp.dst_port);
|
||||
|
||||
/* Parse the length, if present. */
|
||||
if (!(hc1_encoding & LOWPAN_HC2_UDP_LENGTH)) {
|
||||
if (!(hc_udp_encoding & LOWPAN_HC2_UDP_LENGTH)) {
|
||||
udp.length = tvb_get_bits16(tvb, bit_offset, LOWPAN_UDP_LENGTH_BITS, FALSE);
|
||||
if (tree) {
|
||||
proto_tree_add_uint(tree, hf_6lowpan_udp_len, tvb, bit_offset>>3,
|
||||
|
|
Loading…
Reference in New Issue