Re: [Wireshark-dev] Dissect using val_to_str from external file
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 importing the existing definitions. See epan/dissectors/packet-rohc for 2 examples of how to access ipproto_val_ext from your dissector. ( from an hf[] array entry or using val_to_str_ext()). ___ Sent via:Wireshark-dev mailing list Archives:https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe
Re: [Wireshark-dev] Link to snapshots in Developers Guide 3.3.3 not working
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, > Martin > A typo in the URL, should be: https://www.wireshark.org/download/automated/src/ -- Graham Bloice ___ Sent via:Wireshark-dev mailing list Archives:https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe
[Wireshark-dev] Link to snapshots in Developers Guide 3.3.3 not working
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 mailing list Archives:https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe
[Wireshark-dev] Dissect using val_to_str from external file
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. Bye, Jo ___ Sent via:Wireshark-dev mailing list Archives:https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe
Re: [Wireshark-dev] Determine address type of string
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-boun...@wireshark.org [mailto:wireshark-dev-boun...@wireshark.org] On Behalf Of Jo Sent: Mon, November 09, 2015 4:14 AM To: wireshark-dev@wireshark.org Subject: [Wireshark-dev] Determine address type of string 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 ("." -> IPv4, ":" -> IPv6) iand if there dots, to check whether the parts between the dots are numerical. Bye, Jo ___ Sent via:Wireshark-dev mailing list Archives:https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe -- CONFIDENTIALITY NOTICE: This message is the property of International Game Technology PLC and/or its subsidiaries and may contain proprietary, confidential or trade secret information. This message is intended solely for the use of the addressee. If you are not the intended recipient and have received this message in error, please delete this message from your system. Any unauthorized reading, distribution, copying, or other use of this message or its attachments is strictly prohibited. ___ Sent via:Wireshark-dev mailing list Archives:https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe
[Wireshark-dev] Determine address type of string
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 ("." -> IPv4, ":" -> IPv6) iand if there dots, to check whether the parts between the dots are numerical. Bye, Jo ___ Sent via:Wireshark-dev mailing list Archives:https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe