Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I8pKI-0008G0-EQ for qemu-devel@nongnu.org; Wed, 11 Jul 2007 23:26:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I8pKG-0008FP-5s for qemu-devel@nongnu.org; Wed, 11 Jul 2007 23:26:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8pKG-0008FM-0N for qemu-devel@nongnu.org; Wed, 11 Jul 2007 23:26:44 -0400 Received: from wr-out-0506.google.com ([64.233.184.239]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I8pKF-0001vP-LK for qemu-devel@nongnu.org; Wed, 11 Jul 2007 23:26:43 -0400 Received: by wr-out-0506.google.com with SMTP id 71so31673wri for ; Wed, 11 Jul 2007 20:26:42 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed From: Nicolas Guilbaud Subject: Re: [Qemu-devel] multicast and the eepro100 driver Date: Thu, 12 Jul 2007 13:26:28 +1000 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 Hi Stefan, I experienced the same issue as Jeff, so removing the 'return' statement in nic_receive works for multicast (at least 224.0.0.5) with your latest code. Thanks ! Nicolas. > Hi Jeff, > > eepro100.c is my work, so maybe I can help you. > > First of all: there exists a newer version of eepro100.c which > fixes some bugs of the CVS version and largely improves > support for big endian hosts and targets. Get it from > http://svn.berlios.de/wsvn/ar7-firmware/qemu/trunk/hw/eepro100.c? > op=file&rev=0&sc=0 > > I am still working on this new version, because support for big endian > hosts is still untested. > > If you define macro DEBUG_EEPRO100 in eepro100.c, you will get > debugging messages which show the frames sent and received. > > Multicast frames should be received, but I never tested this, > so maybe there is a bug, and I know that I did not implement > all functions needed for multicast. > > Look in the code for function nic_receive and try to remove the > return statement which aborts the reception of unwanted multicast > frames. You will get too many multicast frames - but perhaps > that is better than getting none at all :-) > > Regards > Stefan > > Jeff Hoare schrieb: > > Hi, > > > > I have been using a recent snapshot version of QEMU (5th July, 2007) > > which has the eepro100 Ethernet driver, in order to set up a > couple of > > routing engines (one each in a separate QEMU VM). While I have basic > > connectivity between each engine (including telnet between each) it > > seems that the RIP/OSPF routing updates do not pass between them > (I have > > let to try a TCP based one). These are multicast UDP packets, > which seem > > to be output the FXP0 interface (see tcpdump below) and I can > even see > > them on the TAP0 interface, but they don't appear to be received > by the > > other VM. The two VM are connected using VDE (with different > values for > > HDA & macaddresses). Does the emulated Ethernet driver receive > multicast > > udp packets? I assumed that the virtual switch is forwarding the > packets > > since they are received by the TAP0 interface. > > > > Anyway any information or light that could be shed would be > appreciated. > > > > Regards jeff >