aboutsummaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authorNolan <nolan@sigbus.net>2009-10-15 16:53:55 -0700
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-27 12:28:36 -0500
commit18995b9808dc48897bda6ed93ce3e978191f7251 (patch)
treee2ac79258deed330f3c25e352b728a588e1064b6 /net.c
parentmultiboot.S patch for old as(1) (was: Re: [Qemu-devel] Some OpenBSD/amd64 bui... (diff)
downloadqemu-kvm-18995b9808dc48897bda6ed93ce3e978191f7251.tar.gz
qemu-kvm-18995b9808dc48897bda6ed93ce3e978191f7251.tar.bz2
qemu-kvm-18995b9808dc48897bda6ed93ce3e978191f7251.zip
Send a RARP packet after migration.
Currently, after a migration qemu sends a broadcast packet to update switches' MAC->port mappings. Unfortunately, it picks a random (constant) ethertype and crosses its fingers that no one else is using it. This patch causes it to send a RARP packet instead. RARP was chosen for 2 reasons. One, it is always harmless, and will continue to be so even as new ethertypes are allocated. Two, it is what VMware ESX sends, so people who write filtering rules for switches already know about it. I also changed the code to send SELF_ANNOUNCE_ROUNDS packets, instead of SELF_ANNOUNCE_ROUNDS + 1, and added a simple backoff scheme. Signed-off-by: Nolan Leake <nolan <at> sigbus.net> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net.c')
0 files changed, 0 insertions, 0 deletions