Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] switch statement in proto_register

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Tue, 29 Sep 2009 07:18:56 +0200
Hi,

See packet-m2pa.c for an example.

Thanx,
Jaap

Cole, Richard L. (MSFC-ES53)[MTSI] wrote:
What is the preferred method for supporting multiple versions of a protocol within a dissector? I have setup a protocol preference and was using that in a switch statement structure but the proto_register function doesn't seem to like the switch statement. Dissect_ doesn't might the switch statement and that part seems to be working but the dissector complains with the switch statement in proto_register.

Ideas? Thoughts?

Thank you