diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2015-10-05 22:43:46 +0100 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-10-14 12:18:00 +0000 |
commit | a643d14187c5a201d21bdb0786acc5e27b73a3a1 (patch) | |
tree | b09f0b90fe25a25765fd00279f549df429119cf6 /epan/dissectors/packet-wccp.c | |
parent | 9a702e41b052211424163829a2cb3487123b155e (diff) |
Change proto_tree_add_ipv6() to take a struct e_in6_addr pointer
tvb_get_ipv6() takes a struct e_in6_addr *, use that here too.
Change-Id: Id8b368daa05c151a61d4bc01dc88c00da13e9c88
Reviewed-on: https://code.wireshark.org/review/10953
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Balint Reczey <balint@balintreczey.hu>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-wccp.c')
-rw-r--r-- | epan/dissectors/packet-wccp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-wccp.c b/epan/dissectors/packet-wccp.c index 31d38b96db..3e6d046273 100644 --- a/epan/dissectors/packet-wccp.c +++ b/epan/dissectors/packet-wccp.c @@ -679,7 +679,7 @@ static proto_item* wccp_add_ipaddress_item(proto_tree* tree, int hf_index, int h /* IPv6 */ /* special case: index 0 -> undefined IP */ if (addr_index == 0) { - return proto_tree_add_ipv6(tree, hf_ipv6, tvb, offset, length, ipv6_zero.bytes); + return proto_tree_add_ipv6(tree, hf_ipv6, tvb, offset, length, &ipv6_zero); } /* are we be beyond the end of the table? */ @@ -690,7 +690,7 @@ static proto_item* wccp_add_ipaddress_item(proto_tree* tree, int hf_index, int h /* ok get the IP */ if (addr_table->table_ipv6 != NULL) { - return proto_tree_add_ipv6(tree, hf_ipv6, tvb, offset, length, addr_table->table_ipv6[addr_index-1].bytes); + return proto_tree_add_ipv6(tree, hf_ipv6, tvb, offset, length, &(addr_table->table_ipv6[addr_index-1])); } return proto_tree_add_uint_format_value(tree, hf_index, tvb, offset, length, host_addr, |