aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wccp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-10-26 01:50:00 -0700
committerGuy Harris <guy@alum.mit.edu>2017-10-26 08:50:34 +0000
commit458c3c026ed03d17ec7803c61981274ee4574f89 (patch)
tree9564e9336b594296e9048893ba917025444f4d52 /epan/dissectors/packet-wccp.c
parent0a99d3ef31611db7020d062216c856923ed29fac (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-wccp.c')
-rw-r--r--epan/dissectors/packet-wccp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-wccp.c b/epan/dissectors/packet-wccp.c
index ebd69f4db6..b500e16810 100644
--- a/epan/dissectors/packet-wccp.c
+++ b/epan/dissectors/packet-wccp.c
@@ -443,7 +443,7 @@ typedef struct wccp_address_table {
gint16 version;
guint16 table_length;
guint32 *table_ipv4;
- struct e_in6_addr *table_ipv6;
+ ws_in6_addr *table_ipv6;
} wccp_address_table;
static int wccp_bucket_info(guint8 bucket_info, proto_tree *bucket_tree,
@@ -635,7 +635,7 @@ static proto_item* wccp_add_ipaddress_item(proto_tree* tree, int hf_index, int h
int offset, gint length, wccp_address_table* addr_table)
{
guint32 host_addr;
- struct e_in6_addr ipv6_zero;
+ ws_in6_addr ipv6_zero;
guint16 reserv, addr_index;
/* are we using an address table? */
@@ -1498,8 +1498,8 @@ dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length,
break;
case 2:
if (wccp_wccp_address_table->table_ipv6 == NULL)
- wccp_wccp_address_table->table_ipv6 = (struct e_in6_addr *)
- wmem_alloc0(pinfo->pool, wccp_wccp_address_table->table_length * sizeof(struct e_in6_addr));
+ wccp_wccp_address_table->table_ipv6 = (ws_in6_addr *)
+ wmem_alloc0(pinfo->pool, wccp_wccp_address_table->table_length * sizeof(ws_in6_addr));
if (address_length != 16) {
expert_add_info_format(pinfo, tf, &ei_wccp_length_bad,
"The Address length must be 16, but I found %d for IPv6 addresses. Correcting this.",