diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-10-26 01:50:00 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-10-26 08:50:34 +0000 |
commit | 458c3c026ed03d17ec7803c61981274ee4574f89 (patch) | |
tree | 9564e9336b594296e9048893ba917025444f4d52 /epan/dissectors/packet-stun.c | |
parent | 0a99d3ef31611db7020d062216c856923ed29fac (diff) |
Add a ws_in6_addr typedef for struct e_in6_addr.
That allows a parallel typedef of ws_in4_addr for guint32.
Change-Id: I03b230247065e0e3840eb87635315a8e523ef562
Reviewed-on: https://code.wireshark.org/review/24073
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-stun.c')
-rw-r--r-- | epan/dissectors/packet-stun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-stun.c b/epan/dissectors/packet-stun.c index 06a0cd5114..a0729403ba 100644 --- a/epan/dissectors/packet-stun.c +++ b/epan/dissectors/packet-stun.c @@ -1092,13 +1092,13 @@ dissect_stun_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboole proto_tree_add_item(att_tree, hf_stun_att_xor_ipv6, tvb, offset+4, 16, ENC_NA); { guint32 IPv6[4]; - tvb_get_ipv6(tvb, offset+4, (struct e_in6_addr *)IPv6); + tvb_get_ipv6(tvb, offset+4, (ws_in6_addr *)IPv6); IPv6[0] = IPv6[0] ^ g_htonl(magic_cookie_first_word); IPv6[1] = IPv6[1] ^ g_htonl(transaction_id[0]); IPv6[2] = IPv6[2] ^ g_htonl(transaction_id[1]); IPv6[3] = IPv6[3] ^ g_htonl(transaction_id[2]); ti = proto_tree_add_ipv6(att_tree, hf_stun_att_ipv6, tvb, offset+4, 16, - (const struct e_in6_addr *)IPv6); + (const ws_in6_addr *)IPv6); PROTO_ITEM_SET_GENERATED(ti); } |