On 18/12/2007, Balazs Attila-Mihaly (Cd-MaN) <x_at_y_or_z@xxxxxxxxx> wrote:
> Here goes version 0.3 of my packet capture patch. I rewritten it to be a
> custom VLANClient which implements the capturing part in its fd_read
> proceudre, rather than adding additional properties to the VLAN structure.
> Monitor support is also present.
You can't cast the result of get_param_value() to char * because (as
expected) you get this:
[balrog@borg qemu-cvs]$ x86_64-softmmu/qemu-system-x86_64 -net
Also I'm sure the use of asprintf() will upset the non-Linux-or-BSD
users. I don't think you need to check for memory allocation failures
(the message will not display anyway in such case, because monitor
allocates memory for that). It will be nice if you can remove stray
spaces on end of lines/empty lines. The PCAPHeader struct probably
should have a __packed__ attribute.