From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M795l-0002FV-3D for qemu-devel@nongnu.org; Thu, 21 May 2009 10:17:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M795g-0002Dd-W5 for qemu-devel@nongnu.org; Thu, 21 May 2009 10:17:52 -0400 Received: from [199.232.76.173] (port=48324 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M795g-0002DQ-HI for qemu-devel@nongnu.org; Thu, 21 May 2009 10:17:48 -0400 Received: from mx2.redhat.com ([66.187.237.31]:34694) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M795g-0006a2-1m for qemu-devel@nongnu.org; Thu, 21 May 2009 10:17:48 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n4LEHknJ032047 for ; Thu, 21 May 2009 10:17:46 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n4LEHkLZ014259 for ; Thu, 21 May 2009 10:17:46 -0400 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n4LEHjbl020853 for ; Thu, 21 May 2009 10:17:45 -0400 From: Gleb Natapov Date: Thu, 21 May 2009 17:17:43 +0300 Message-Id: <1242915464-451-1-git-send-email-gleb@redhat.com> Subject: [Qemu-devel] [PATCH] Minimal ethernet frame length is 64 bytes. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Gleb Natapov --- savevm.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/savevm.c b/savevm.c index 8b7909a..89af93b 100644 --- a/savevm.c +++ b/savevm.c @@ -107,12 +107,13 @@ static int announce_self_create(uint8_t *buf, /* FIXME: should we send a different packet (arp/rarp/ping)? */ + memset(buf, 0, 64); memset(buf, 0xff, 6); /* h_dst */ memcpy(buf + 6, mac_addr, 6); /* h_src */ memcpy(buf + 12, &proto, 2); /* h_proto */ memcpy(buf + 14, &magic, 4); /* magic */ - return 18; /* len */ + return 64; /* len */ } void qemu_announce_self(void) -- 1.6.2.1