Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] ipv6 address help

From: Brian Oleksa <oleksab@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 26 Jan 2010 15:42:08 -0500
Stig

I will stop using format_vaule....

How do you actually get the ipv6 address..??

How do you use this function..??
void tvb_get_ipv6(tvbuff_t*, gint offset, struct e_in6_addr *addr);

For ipv4.. I did this:
guint32 addr;
addr = tvb_get_ipv4(tvb,offset);

Thanks,
Brian



Stig Bj�rlykke wrote:
On 26. jan. 2010, at 20.57, Brian Oleksa wrote:

I am now trying to do the same for ipv6 addresses (unfortunately.. I do not have a way to test it)....but I would like to get the code in place.

Why do you still use the _format_value functions?


    { &hf_helen_ipv6,
      { "IPv6 Address", "helen.ipv6",
        FT_IPv6, BASE_NONE, NULL, 0x0,
        "Helen IPv6 Address", HFILL }},


proto_tree_add_item(helen_sub_tree, hf_helen_ipv6, tvb, offset, 16, FALSE);