[Wireshark-dev] ASN.1-based dissector decoding by port number vs switch/case using 1st octet

2021-06-21 Thread Vincent Randal
Hello everyone in the Wireshare-dev community, The primary question in this email (but I think it requires some explanation below): How does one write an ASN.1-based dissector such that the generated code (per "make asn1") does indeed decode the first octet as the message type using C-style switch

Re: [Wireshark-dev] Calling a dissector: Type for data parameter

2021-06-21 Thread João Valverde via Wireshark-dev
On 22/06/21 03:35, John Thacker wrote: On Mon, Jun 21, 2021 at 9:28 PM João Valverde via Wireshark-dev mailto:wireshark-dev@wireshark.org>> wrote: On 22/06/21 01:26, John Thacker wrote: > On Mon, Jun 21, 2021 at 2:21 PM João Valverde via Wireshark-dev > mailto:wireshark-dev

Re: [Wireshark-dev] Calling a dissector: Type for data parameter

2021-06-21 Thread John Thacker
On Mon, Jun 21, 2021 at 9:28 PM João Valverde via Wireshark-dev < wireshark-dev@wireshark.org> wrote: > > > On 22/06/21 01:26, John Thacker wrote: > > On Mon, Jun 21, 2021 at 2:21 PM João Valverde via Wireshark-dev > > mailto:wireshark-dev@wireshark.org>> > wrote: > > > > > > > > On 16/06/21 1

Re: [Wireshark-dev] Calling a dissector: Type for data parameter

2021-06-21 Thread João Valverde via Wireshark-dev
On 22/06/21 01:26, John Thacker wrote: On Mon, Jun 21, 2021 at 2:21 PM João Valverde via Wireshark-dev mailto:wireshark-dev@wireshark.org>> wrote: On 16/06/21 15:36, David Perry wrote: > Sorry to drag up an old topic, but I've been thinking about this: > >> Message: 5

Re: [Wireshark-dev] Calling a dissector: Type for data parameter

2021-06-21 Thread John Thacker
On Mon, Jun 21, 2021 at 2:21 PM João Valverde via Wireshark-dev < wireshark-dev@wireshark.org> wrote: > > > On 16/06/21 15:36, David Perry wrote: > > Sorry to drag up an old topic, but I've been thinking about this: > > > >> Message: 5 > >> Date: Sat, 29 May 2021 09:32:29 +0200 > >> From: Anders B

Re: [Wireshark-dev] Calling a dissector: Type for data parameter

2021-06-21 Thread João Valverde via Wireshark-dev
On 16/06/21 15:36, David Perry wrote: Sorry to drag up an old topic, but I've been thinking about this: Message: 5 Date: Sat, 29 May 2021 09:32:29 +0200 From: Anders Broman To: Developer support list for Wireshark Subject: Re: [Wireshark-dev] Calling a dissector: Type for data parameter