From: Gleb Natapov Date: Thu, 21 May 2009 14:17:43 +0000 (+0300) Subject: Minimal ethernet frame length is 64 bytes. X-Git-Tag: v0.10.6~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a8bc8570fa195ce5bb9a39d7b6d8d3a5f1b4fe5b;p=thirdparty%2Fqemu.git Minimal ethernet frame length is 64 bytes. Signed-off-by: Gleb Natapov Signed-off-by: Anthony Liguori Signed-off-by: Glauber Costa --- diff --git a/savevm.c b/savevm.c index cb6cd2e4361..f186c5eb7f0 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)