IPv6: Remove two offsetof()s

Change-Id: I41c93927595be523528d44c263b7028f40e524e2
Reviewed-on: https://code.wireshark.org/review/10706
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
João Valverde 2015-10-01 16:31:04 +01:00 committed by Michael Mann
parent a013823934
commit a6f0923166
1 changed files with 2 additions and 2 deletions

View File

@ -2187,9 +2187,9 @@ dissect_ipv6(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* Add different items for the destination address */
proto_tree_add_item(ipv6_tree, hf_ipv6_dst, tvb,
offset + (int)offsetof(struct ip6_hdr, ip6_dst), 16, ENC_NA);
offset + IP6H_DST, 16, ENC_NA);
ti = proto_tree_add_ipv6(ipv6_tree, hf_ipv6_addr, tvb,
offset + (int)offsetof(struct ip6_hdr, ip6_dst),
offset + IP6H_DST,
16, (guint8 *)&ipv6->ip6_dst);
PROTO_ITEM_SET_HIDDEN(ti);
name = address_to_display(wmem_packet_scope(), &pinfo->dst);