summaryrefslogtreecommitdiff
path: root/ui/gtk/rtp_analysis.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-01-03 15:05:13 -0800
committerGuy Harris <guy@alum.mit.edu>2016-01-04 00:03:34 +0000
commit32f9f92487f797bcaef6d3cbf92b7fb802a6079e (patch)
treebf558a353d296a429f8bfa50db4d653c40e4bf0b /ui/gtk/rtp_analysis.c
parentfa7cf8737cd913a3217971d7fa8008efb4f0dd87 (diff)
downloadwireshark-32f9f92487f797bcaef6d3cbf92b7fb802a6079e.tar.gz
Rename ipv4_addr and ipv6_addr to indicate their full contents.
They're not just addresses, they also include a mask length for IPv4 and a prefix length for IPv6. Rename them appropriately. Rename the old ipv4_addr_and_mask() and ipv6_addr_and_mask() to reflect that 1) they fetch data from a tvbuff and 2) *don't* fetch the mask length or prefix length, those lengths are passed as arguments to indicate how many bytes worth of address to fetch. Change-Id: I4cad5a186ad7bfcb60022a91dbe8bc8479e6471f Reviewed-on: https://code.wireshark.org/review/13035 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/gtk/rtp_analysis.c')
-rw-r--r--ui/gtk/rtp_analysis.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/gtk/rtp_analysis.c b/ui/gtk/rtp_analysis.c
index 0058e97960..846635e206 100644
--- a/ui/gtk/rtp_analysis.c
+++ b/ui/gtk/rtp_analysis.c
@@ -3723,10 +3723,10 @@ static gboolean
process_node(proto_node *ptree_node, header_field_info *hfinformation,
const gchar* proto_field, guint32* p_result)
{
- field_info *finfo;
- proto_node *proto_sibling_node;
- header_field_info *hfssrc;
- ipv4_addr *ipv4;
+ field_info *finfo;
+ proto_node *proto_sibling_node;
+ header_field_info *hfssrc;
+ ipv4_addr_and_mask *ipv4;
finfo = PNODE_FINFO(ptree_node);
@@ -3743,7 +3743,7 @@ process_node(proto_node *ptree_node, header_field_info *hfinformation,
finfo = PNODE_FINFO(ptree_node);
if (hfssrc == finfo->hfinfo) {
if (hfinformation->type == FT_IPv4) {
- ipv4 = (ipv4_addr *)fvalue_get(&finfo->value);
+ ipv4 = (ipv4_addr_and_mask *)fvalue_get(&finfo->value);
*p_result = ipv4_get_net_order_addr(ipv4);
}
else {