qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 976305b] Minimal ethernet frame length is 64 byte


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 976305b] Minimal ethernet frame length is 64 bytes.
Date: Fri, 22 May 2009 15:52:44 -0000

From: Gleb Natapov <address@hidden>

Signed-off-by: Gleb Natapov <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]