diff options
author | Gleb Natapov | 2009-05-21 16:17:43 +0200 |
---|---|---|
committer | Anthony Liguori | 2009-05-22 17:50:29 +0200 |
commit | 976305b75fde5cb6cfb47b390fc4463c0b40fc30 (patch) | |
tree | b9d1ddf38a60799196aac1f1fadea698a430e6fa /savevm.c | |
parent | Fix segv when passing an unknown protocol (diff) | |
download | qemu-976305b75fde5cb6cfb47b390fc4463c0b40fc30.tar.gz qemu-976305b75fde5cb6cfb47b390fc4463c0b40fc30.tar.xz qemu-976305b75fde5cb6cfb47b390fc4463c0b40fc30.zip |
Minimal ethernet frame length is 64 bytes.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'savevm.c')
-rw-r--r-- | savevm.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |