Wireshark mailing list archives
Re: ipv6 address help
From: Brian Oleksa <oleksab () darkcornersoftware com>
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);
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- ipv6 address help Brian Oleksa (Jan 26)
- Re: ipv6 address help Stig Bjørlykke (Jan 26)
- Re: ipv6 address help Brian Oleksa (Jan 26)
- Re: ipv6 address help Guy Harris (Jan 26)
- Re: ipv6 address help Brian Oleksa (Jan 26)
- Re: ipv6 address help Anders Broman (Jan 26)
- Re: ipv6 address help Stig Bjørlykke (Jan 26)