Of the ones I needed/interested in ("eth", "ip", "ipv6", "tcp", "udp", "sctp") only "ip" had its proto_* variable in a header (in the dissectors directory). Am I looking in the wrong place? Do you think that's something I should add for the other dissectors? I know string compares are more expensive than integers, but I don't believe the integers are available. I also don't want to establish precendence and have dissectors think they need the proto_* variable to be public.
The string list to look through is rarely larger than 6 or 7 so I'm not sure the performance hit will be noticeable.
-----Original Message-----
From: Evan Huus <eapache@xxxxxxxxx>
To: wireshark-dev <wireshark-dev@xxxxxxxxxxxxx>
Sent: Thu, Nov 21, 2013 7:27 am
Subject: Re: [Wireshark-dev] [Wireshark-commits] rev 53473: /trunk/ui/ /trunk/ui/gtk/: main_menubar.c /trunk/ui/qt/: main_window_slots.cpp