Re: [Wireshark-dev] Dissect using val_to_str from external file

2015-11-09 Thread Bill Meier
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

Re: [Wireshark-dev] Link to snapshots in Developers Guide 3.3.3 not working

2015-11-09 Thread Graham Bloice
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

[Wireshark-dev] Link to snapshots in Developers Guide 3.3.3 not working

2015-11-09 Thread Martin Mathieson
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

[Wireshark-dev] Dissect using val_to_str from external file

2015-11-09 Thread Jo
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

Re: [Wireshark-dev] Determine address type of string

2015-11-09 Thread Maynard, Chris
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

[Wireshark-dev] Determine address type of string

2015-11-09 Thread Jo
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 (".