From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGyeZ-0005HU-Ji for qemu-devel@nongnu.org; Wed, 17 Jun 2009 13:10:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGyeR-00055w-28 for qemu-devel@nongnu.org; Wed, 17 Jun 2009 13:10:23 -0400 Received: from [199.232.76.173] (port=54819 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGyeQ-00055K-O5 for qemu-devel@nongnu.org; Wed, 17 Jun 2009 13:10:18 -0400 Received: from mx2.redhat.com ([66.187.237.31]:35936) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MGyeP-0007x0-Of for qemu-devel@nongnu.org; Wed, 17 Jun 2009 13:10:18 -0400 From: Glauber Costa Date: Wed, 17 Jun 2009 13:09:51 -0400 Message-Id: <1245258604-2843-3-git-send-email-glommer@redhat.com> In-Reply-To: <1245258604-2843-2-git-send-email-glommer@redhat.com> References: <1245258604-2843-1-git-send-email-glommer@redhat.com> <1245258604-2843-2-git-send-email-glommer@redhat.com> Subject: [Qemu-devel] [PATCH 02/15] 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 Cc: aliguori@us.ibm.com, Gleb Natapov From: Gleb Natapov Signed-off-by: Gleb Natapov Signed-off-by: Anthony Liguori Signed-off-by: Glauber Costa --- savevm.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/savevm.c b/savevm.c index cd83350..5d3b142 100644 --- a/savevm.c +++ b/savevm.c @@ -103,12 +103,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.2