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