[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] Dump traffic to pcap file - update

From: Balazs Attila-Mihaly \(Cd-MaN\)
Subject: [Qemu-devel] [PATCH] Dump traffic to pcap file - update
Date: Sun, 1 Jul 2007 01:50:51 -0700 (PDT)

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

Attachment: dump_traffic_to_pcap.diff
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]