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] wireshark decode as..??

From: Jakub Zawadzki <darkjames@xxxxxxxxxxxxxxxx>
Date: Tue, 23 Mar 2010 00:50:55 +0100
On Tue, Mar 23, 2010 at 10:09:19AM +1100, ronnie sahlberg wrote:
> You also shouldnt hardcode the size of the array in the for loop like
> that,   use something like      sizeof[ports] / sizeof(ports[0])
> instead.

Or better use wireshark array_length() macro.