diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2015-10-29 03:12:53 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-11-03 12:20:34 +0000 |
commit | 3df2333155abf8fdfdedc51aca0fe962499f10b5 (patch) | |
tree | f241cb1777aaf99492eeb12c8365c96e705cfe4e /epan/dissectors/file-pcapng.c | |
parent | 8571dbb908e13d63a80e6465ea19566162dad9c1 (diff) |
Remaining ADDRESS macro to address function conversions
Change-Id: I8bc9af431e70243b05f4f0ce8c2b8ee451383788
Reviewed-on: https://code.wireshark.org/review/11463
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>
Diffstat (limited to 'epan/dissectors/file-pcapng.c')
-rw-r--r-- | epan/dissectors/file-pcapng.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/epan/dissectors/file-pcapng.c b/epan/dissectors/file-pcapng.c index 7ac2ace877..d29dfd5be8 100644 --- a/epan/dissectors/file-pcapng.c +++ b/epan/dissectors/file-pcapng.c @@ -607,11 +607,11 @@ static gint dissect_options(proto_tree *tree, packet_info *pinfo, break; } proto_tree_add_item(option_tree, hf_pcapng_option_data_ipv4, tvb, offset, 4, ENC_BIG_ENDIAN); - TVB_SET_ADDRESS(&addr, AT_IPv4, tvb, offset, 4); + set_address_tvb(&addr, AT_IPv4, 4, tvb, offset); offset += 4; proto_tree_add_item(option_tree, hf_pcapng_option_data_ipv4_mask, tvb, offset, 4, ENC_BIG_ENDIAN); - TVB_SET_ADDRESS(&addr_mask, AT_IPv4, tvb, offset, 4); + set_address_tvb(&addr_mask, AT_IPv4, 4, tvb, offset); offset += 4; str = wmem_strdup_printf(wmem_packet_scope(), "%s/%s", @@ -626,7 +626,7 @@ static gint dissect_options(proto_tree *tree, packet_info *pinfo, } proto_tree_add_item(option_tree, hf_pcapng_option_data_ipv6, tvb, offset, 16, ENC_NA); - TVB_SET_ADDRESS(&addr, AT_IPv6, tvb, offset, 16); + set_address_tvb(&addr, AT_IPv6, 16, tvb, offset); offset += 16; proto_tree_add_item(option_tree, hf_pcapng_option_data_ipv6_mask, tvb, offset, 1, ENC_NA); @@ -656,7 +656,7 @@ static gint dissect_options(proto_tree *tree, packet_info *pinfo, } proto_tree_add_item(option_tree, hf_pcapng_option_data_eui_address, tvb, offset, 8, encoding); - TVB_SET_ADDRESS(&addr, AT_EUI64, tvb, offset, 8); + set_address_tvb(&addr, AT_EUI64, 8, tvb, offset); offset += 8; str = address_to_display(wmem_packet_scope(), &addr); @@ -824,7 +824,7 @@ static gint dissect_options(proto_tree *tree, packet_info *pinfo, } proto_tree_add_item(option_tree, hf_pcapng_option_data_ipv4, tvb, offset, 4, ENC_BIG_ENDIAN); - TVB_SET_ADDRESS(&addr, AT_IPv4, tvb, offset, 4); + set_address_tvb(&addr, AT_IPv4, 4, tvb, offset); offset += 4; str = wmem_strdup_printf(wmem_packet_scope(), "%s", @@ -839,7 +839,7 @@ static gint dissect_options(proto_tree *tree, packet_info *pinfo, } proto_tree_add_item(option_tree, hf_pcapng_option_data_ipv6, tvb, offset, 16, ENC_NA); - TVB_SET_ADDRESS(&addr, AT_IPv6, tvb, offset, 16); + set_address_tvb(&addr, AT_IPv6, 16, tvb, offset); offset += 16; str = wmem_strdup_printf(wmem_packet_scope(), "%s", @@ -1269,7 +1269,7 @@ static gint dissect_block(proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb, } proto_tree_add_item(record_tree, hf_pcapng_record_ipv4, tvb, offset, 4, ENC_BIG_ENDIAN); - TVB_SET_ADDRESS(&addr, AT_IPv4, tvb, offset, 4); + set_address_tvb(&addr, AT_IPv4, 4, tvb, offset); offset += 4; offset_string_start = offset; @@ -1295,7 +1295,7 @@ static gint dissect_block(proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb, } proto_tree_add_item(record_tree, hf_pcapng_record_ipv6, tvb, offset, 16, ENC_NA); - TVB_SET_ADDRESS(&addr, AT_IPv6, tvb, offset, 16); + set_address_tvb(&addr, AT_IPv6, 16, tvb, offset); offset += 16; offset_string_start = offset; |