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] [patch] export as C arrays

From: "Francesco Fondelli" <francesco.fondelli@xxxxxxxxx>
Date: Wed, 12 Mar 2008 08:25:19 +0100
On Tue, Mar 11, 2008 at 8:02 PM, Guy Harris <guy@xxxxxxxxxxxx> wrote:
> Francesco Fondelli wrote:
>
>  > Attached is a patch to export packets data as "C Arrays".  I often
>  > have the need to [re]send data captured with wireshark using a
>  > raw/pf_packet socket.  Output format is one char[] per packet,
>
>  char, or unsigned char?  The latter prevents the sign-extension that
>  would occur on most platforms (probably all the platforms on which
>  Wireshark is run).

possible signess of the char type might be a problem for someone... well if
they don't know it. I think to use unsigned char[] would be wiser.

Ciao
FF