summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wisun.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 09:15:53 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 09:15:53 +0000
commit41ee6846b4605bf50f1f5b12acffc71a76257e5d (patch)
tree78044e6ed77e26ebcdb14ac483f29d508d88a92d /epan/dissectors/packet-wisun.c
parentAdding debian version 4.2.5-2. (diff)
downloadwireshark-41ee6846b4605bf50f1f5b12acffc71a76257e5d.tar.xz
wireshark-41ee6846b4605bf50f1f5b12acffc71a76257e5d.zip
Merging upstream version 4.2.6.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dissectors/packet-wisun.c')
-rw-r--r--epan/dissectors/packet-wisun.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-wisun.c b/epan/dissectors/packet-wisun.c
index e0a6d34a..6985a784 100644
--- a/epan/dissectors/packet-wisun.c
+++ b/epan/dissectors/packet-wisun.c
@@ -849,6 +849,7 @@ dissect_wisun_luttie(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint
static int
dissect_wisun_nrie(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint offset)
{
+ guint start_offset = offset;
guint8 node_role = tvb_get_guint8(tvb, offset) & WISUN_WSIE_NODE_ROLE_MASK;
proto_tree_add_item(tree, hf_wisun_nrie_nr_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
@@ -869,7 +870,7 @@ dissect_wisun_nrie(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guin
offset += 3;
}
- return offset;
+ return offset - start_offset;
}
static int
@@ -1382,7 +1383,7 @@ dissect_wisun_pomie(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, voi
proto_item *item;
proto_tree *subtree;
guint8 number_operating_modes;
- guint8 offset = 0;
+ guint offset = 0;
static int* const wisun_pomie_fields[] = {
&hf_wisun_pomie_number_operating_modes,
@@ -1499,7 +1500,7 @@ dissect_wisun_jmie(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void
&hf_wisun_jmie_metric_len,
NULL
};
- guint8 offset = 0;
+ guint offset = 0;
proto_item *item;
proto_tree *subtree;