On 11/9/2015 10:49 AM, Jo wrote:
Hello,
In my protocol, one TLV is called "proto" and contains the IANA number
of a well-known protocol. How can I display the value together with the
string and using the available data from , for example?
I know how to do it via val_to_str() but I am failing on
On 9 November 2015 at 16:18, Martin Mathieson <
martin.r.mathie...@googlemail.com> wrote:
> Hi,
>
> This link from "3.3.3 Buildbot Snapshots" -
> https://www.wireshark.org/download.htmlautomated/src/ - is not working
> at the moment. Has it worked recently? Will it work again?
>
> Thanks,
> Mart
Hi,
This link from "3.3.3 Buildbot Snapshots" -
https://www.wireshark.org/download.htmlautomated/src/ - is not working
at the moment. Has it worked recently? Will it work again?
Thanks,
Martin
___
Sent via:Wireshark-dev
Hello,
In my protocol, one TLV is called "proto" and contains the IANA number of a
well-known protocol. How can I display the value together with the string
and using the available data from , for example?
I know how to do it via val_to_str() but I am failing on importing the
existing definitions
You could first call str_to_ip() and if it fails, call str_to_ip6(), and if
that too fails then assume it's a FQDN. The str_to_ip() and str_to_ip6()
functions are just wrappers for inet_pton(); they are declared in
epan/addr_resolv.h.
- Chris
-Original Message-
From: wireshark-dev-bo
Hello,
I am writing a custom dissector as a plugin. There I need to determine
the address type of a string in a TLV. It can be either an IPv4
address, IPv6 address or a FQDN.
What is the best way to parse this string into the Wireshark data types?
My idea was to check which delimieters occur (".