From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M447L-00048x-K4 for qemu-devel@nongnu.org; Tue, 12 May 2009 22:22:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M447H-00048P-Es for qemu-devel@nongnu.org; Tue, 12 May 2009 22:22:47 -0400 Received: from [199.232.76.173] (port=39141 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M447H-00048K-A0 for qemu-devel@nongnu.org; Tue, 12 May 2009 22:22:43 -0400 Received: from mail-bw0-f175.google.com ([209.85.218.175]:52657) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M447H-0004Nm-28 for qemu-devel@nongnu.org; Tue, 12 May 2009 22:22:43 -0400 Received: by bwz23 with SMTP id 23so342764bwz.34 for ; Tue, 12 May 2009 19:22:40 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <77e29ea90905111523m3c9e0822h5ea25a3116f655fa@mail.gmail.com> Date: Tue, 12 May 2009 22:22:40 -0400 Message-ID: <77e29ea90905121922x336fc00dj314853b145c0d8dd@mail.gmail.com> Subject: Re: [Qemu-devel] Questions about rtl8139 receive mode and debugging From: Jiang Wang Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Kovalenko Cc: qemu-devel@nongnu.org I see. I think I will just comment out "#define RTL8139_CALCULATE_RXCRC 1" and then use promiscuous mode. Then I should get all the packet including the error ones. Right? Thanks. Regards, Jiang On Tue, May 12, 2009 at 9:10 PM, Igor Kovalenko wrote: > On Tue, May 12, 2009 at 2:23 AM, Jiang Wang wrote: >> Hi: >> >> I am using rtl8139 nic emulation on x86 linux (CentOS 5.3). QEMU is >> 0.10.2 =A0I want to set the NIC to receive the packet even if the check >> sum is wrong. Is this function implemented? I searched in hw/rtl8139.c >> and find a definition of " =A0 =A0AcceptErr =3D 0x20,". But it is not us= ed >> anywhere. > > This mode is not implemented. Since the code overrides checksum value > for each received packet you cannot really provide it with checksum error= . > Look for RTL8139_CALCULATE_RXCRC in code. > > -- > Kind regards, > Igor V. Kovalenko >