1 Jul 2007 10:50
[PATCH] Dump traffic to pcap file - update
Balazs Attila-Mihaly (Cd-MaN <x_at_y_or_z <at> yahoo.com>
2007-07-01 08:50:51 GMT
2007-07-01 08:50:51 GMT
Hello all. Attached you find an updated version of my patch to dump the traffic on a given interface to a tcpdump file. The changes are: -moved from f* functions (fopen, fwrite) to the more basic functions (open, write, etc) because this seems to be the norm in the source code -fixed some formatting mistakes -modified the help (which is printed out when qemu is excuted with no parameters) to display the new option -made the code more portable (by using the types uint32_t, etc) -added the code to properly close the files when qemu is shut down Before anyone asks :), no endianess conversion needs to be applied to the things written to the file, because it is specified that the reader shall detect the endianess of the file based on the signature in the header. Best wishes ___________________________________________________________ All New Yahoo! Mail – Tired of unwanted email come-ons? Let our SpamGuard protect you. http://uk.docs.yahoo.com/nowyoucan.html
:
RSS Feed