diff options
author | Evan Huus <eapache@gmail.com> | 2021-10-07 13:31:23 -0400 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2021-10-07 13:31:23 -0400 |
commit | 0eda51a646eead9a3fe5c26067a3b0a1d34766c8 (patch) | |
tree | 978d2ed066a117132db0ffdeab46615bfa57afde /epan/dissectors/packet-lmp.c | |
parent | 086feb2f098903229a14fd25754cac06c625b647 (diff) |
to_str: scope tvb_ip6_to_str
Diffstat (limited to 'epan/dissectors/packet-lmp.c')
-rw-r--r-- | epan/dissectors/packet-lmp.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/epan/dissectors/packet-lmp.c b/epan/dissectors/packet-lmp.c index 21cbb00bfd..f19c2c0760 100644 --- a/epan/dissectors/packet-lmp.c +++ b/epan/dissectors/packet-lmp.c @@ -870,7 +870,7 @@ dissect_lmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) case 4: l = (type == 3)? LMPF_VAL_LOCAL_LINK_ID_IPV6: LMPF_VAL_REMOTE_LINK_ID_IPV6; - proto_item_append_text(ti, ": IPv6 %s", tvb_ip6_to_str(tvb, offset2)); + proto_item_append_text(ti, ": IPv6 %s", tvb_ip6_to_str(pinfo->pool, tvb, offset2)); proto_tree_add_item(lmp_object_tree, hf_lmp_filter[l], tvb, offset2, 16, ENC_NA); break; @@ -907,7 +907,7 @@ dissect_lmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) case 4: l = (type == 3)? LMPF_VAL_LOCAL_INTERFACE_ID_IPV6: LMPF_VAL_REMOTE_INTERFACE_ID_IPV6; - proto_item_append_text(ti, ": IPv6 %s", tvb_ip6_to_str(tvb, offset2)); + proto_item_append_text(ti, ": IPv6 %s", tvb_ip6_to_str(pinfo->pool, tvb, offset2)); proto_tree_add_item(lmp_object_tree, hf_lmp_filter[l], tvb, offset2, 16, ENC_NA); break; @@ -1097,8 +1097,8 @@ dissect_lmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) case 2: proto_item_append_text(ti, ": IPv6: Local %s, Remote %s", - tvb_ip6_to_str(tvb, offset2+4), - tvb_ip6_to_str(tvb, offset2+20)); + tvb_ip6_to_str(pinfo->pool, tvb, offset2+4), + tvb_ip6_to_str(pinfo->pool, tvb, offset2+20)); proto_tree_add_item(lmp_object_tree, hf_lmp_filter[LMPF_VAL_TE_LINK_LOCAL_IPV6], tvb, offset2+4, 16, ENC_NA); @@ -1159,8 +1159,8 @@ dissect_lmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) case 2: proto_item_append_text(ti, ": IPv6: Local %s, Remote %s", - tvb_ip6_to_str(tvb, offset2+4), - tvb_ip6_to_str(tvb, offset2+8)); + tvb_ip6_to_str(pinfo->pool, tvb, offset2+4), + tvb_ip6_to_str(pinfo->pool, tvb, offset2+8)); proto_tree_add_item(lmp_object_tree, hf_lmp_data_link_local_id_ipv6, tvb, offset2+4, 16, ENC_NA); proto_tree_add_item(lmp_object_tree, hf_lmp_data_link_remote_id_ipv6, tvb, offset2+20, 16, ENC_NA); l = 36; @@ -1276,8 +1276,8 @@ dissect_lmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) case 2: if (j < 4) - proto_item_append_text(ti, ": [IPv6-%s", tvb_ip6_to_str(tvb, offset2+l)); - proto_item_append_text(ti2, ": IPv6 %s", tvb_ip6_to_str(tvb, offset2+l)); + proto_item_append_text(ti, ": [IPv6-%s", tvb_ip6_to_str(pinfo->pool, tvb, offset2+l)); + proto_item_append_text(ti2, ": IPv6 %s", tvb_ip6_to_str(pinfo->pool, tvb, offset2+l)); proto_tree_add_item(lmp_subobj_tree, hf_lmp_interface_id_ipv6, tvb, offset2, 16, ENC_NA); l += 16; break; |