aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-6lowpan.c
diff options
context:
space:
mode:
authortchang <tengfei.chang@inria.fr>2018-05-25 15:38:30 +0200
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2018-05-26 06:53:25 +0000
commit07f7008e4cea4eb3fa57d94e55f0f4330d176d57 (patch)
treeff7e4933bf1d49f3a420ebeb69742cce018477f6 /epan/dissectors/packet-6lowpan.c
parentb401307e360b9b6a5818c08102b2372bd826c126 (diff)
6LoRH: fix in IP-in-IP header dissector
Change-Id: Iaba22d9b431a097eea4bb0dbea3c514a607ef001 Reviewed-on: https://code.wireshark.org/review/27805 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-6lowpan.c')
-rw-r--r--epan/dissectors/packet-6lowpan.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/dissectors/packet-6lowpan.c b/epan/dissectors/packet-6lowpan.c
index 6e98d8ecec..6ac3a638d5 100644
--- a/epan/dissectors/packet-6lowpan.c
+++ b/epan/dissectors/packet-6lowpan.c
@@ -1324,10 +1324,8 @@ dissect_6lowpan_6loRH(tvbuff_t *tvb, guint offset, proto_tree *tree)
}
else if (loRHE_type == LOWPAN_IP_IN_IP_6LORH) {
memset(&ipv6.ip6h_src, 0, sizeof(ipv6.ip6h_src));
- proto_tree_add_item(loRH_tree, hf_6lowpan_6lorhe_length, tvb, offset, 2,
- loRH_flags & LOWPAN_PATTERN_6LORHE_LENGTH);
- proto_tree_add_item(loRH_tree, hf_6lowpan_6lorhe_type, tvb, offset, 2,
- loRHE_type);
+ proto_tree_add_item(loRH_tree, hf_6lowpan_6lorhe_length, tvb, offset, 2, ENC_BIG_ENDIAN);
+ proto_tree_add_item(loRH_tree, hf_6lowpan_6lorhe_type, tvb, offset, 2, ENC_BIG_ENDIAN);
proto_tree_add_item(loRH_tree, hf_6lowpan_6lorhe_hoplimit, tvb, offset + 2, 1, ENC_BIG_ENDIAN);
if (loRHE_length > 1) {