ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

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.