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] Regenerating packet-parlay.c

From: Gerald Combs <gerald@xxxxxxxxxxxxx>
Date: Wed, 29 Apr 2020 10:25:32 -0700
On 4/29/20 9:47 AM, Jaap Keuter wrote:
> Hi list,
> 
> While working on the IDL dissectors, so
> packet-coseventcomm.c, packet-cosnaming.c, packet- gias.c, packet-parlay.c and
> packet-tango.c, I was able to use the idl2wrs toolchain to regenerate all these
> dissectors (with minor issues), with the exception of packet-parlay.c. There the
> diff extensive and seems limited to the /* User exception filters */ area.
> A superficial look gives the impression that all items are there, that just the
> ordering is very different.
> Anyone an idea why that would be?

It looks like get_exceptionList in wireshark_gen.py doesn't sort the list it returns. According to the Python 3 documentation[1], dicts use insertion order in 3.7 and later, but that may or may not be the case in earlier versions.

[1]https://docs.python.org/3/library/stdtypes.html#dictionary-view-objects