From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M42z1-0001gM-UK for qemu-devel@nongnu.org; Tue, 12 May 2009 21:10:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M42yw-0001fy-Gb for qemu-devel@nongnu.org; Tue, 12 May 2009 21:10:06 -0400 Received: from [199.232.76.173] (port=54931 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M42yw-0001fl-CQ for qemu-devel@nongnu.org; Tue, 12 May 2009 21:10:02 -0400 Received: from mail-bw0-f175.google.com ([209.85.218.175]:51970) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M42yw-00051R-0S for qemu-devel@nongnu.org; Tue, 12 May 2009 21:10:02 -0400 Received: by bwz23 with SMTP id 23so308168bwz.34 for ; Tue, 12 May 2009 18:10:00 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <77e29ea90905111523m3c9e0822h5ea25a3116f655fa@mail.gmail.com> References: <77e29ea90905111523m3c9e0822h5ea25a3116f655fa@mail.gmail.com> Date: Wed, 13 May 2009 05:10:00 +0400 Message-ID: Subject: Re: [Qemu-devel] Questions about rtl8139 receive mode and debugging From: Igor Kovalenko 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: Jiang Wang Cc: qemu-devel@nongnu.org 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 use= d > 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. --=20 Kind regards, Igor V. Kovalenko