From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I53q8-0003NK-2v for qemu-devel@nongnu.org; Sun, 01 Jul 2007 14:08:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I53q6-0003N8-HM for qemu-devel@nongnu.org; Sun, 01 Jul 2007 14:08:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I53q6-0003N5-Eg for qemu-devel@nongnu.org; Sun, 01 Jul 2007 14:08:02 -0400 Received: from ug-out-1314.google.com ([66.249.92.175]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I53q6-00012g-0V for qemu-devel@nongnu.org; Sun, 01 Jul 2007 14:08:02 -0400 Received: by ug-out-1314.google.com with SMTP id m2so839403uge for ; Sun, 01 Jul 2007 11:08:00 -0700 (PDT) Message-ID: Date: Sun, 1 Jul 2007 21:08:00 +0300 From: "Blue Swirl" Subject: Re: [Qemu-devel] [PATCH] Dump traffic to pcap file - update In-Reply-To: <320155.50362.qm@web57002.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <320155.50362.qm@web57002.mail.re3.yahoo.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 7/1/07, Balazs Attila-Mihaly (Cd-MaN) wrote: > Attached you find an updated version of my patch to dump the traffic on a given interface to a tcpdump file. The changes are: This part is not right: +void pcap_close_files() +{ + int i; + for (i = 0; i <= nb_nics; i++) <= should be <.