qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6430] Use broadcast address for slirp dhcp replies
@ 2009-01-24 18:16 Aurelien Jarno
  0 siblings, 0 replies; only message in thread
From: Aurelien Jarno @ 2009-01-24 18:16 UTC (permalink / raw)
  To: qemu-devel

Revision: 6430
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6430
Author:   aurel32
Date:     2009-01-24 18:16:18 +0000 (Sat, 24 Jan 2009)

Log Message:
-----------
Use broadcast address for slirp dhcp replies

Windows Vista drops unicast dhcp replies to its yet-unconfigured address,
so use a broadcast address.  This behaviour is allowed by the RFC.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

Modified Paths:
--------------
    trunk/slirp/bootp.c

Modified: trunk/slirp/bootp.c
===================================================================
--- trunk/slirp/bootp.c	2009-01-24 18:06:21 UTC (rev 6429)
+++ trunk/slirp/bootp.c	2009-01-24 18:16:18 UTC (rev 6430)
@@ -191,6 +191,8 @@
     rbp->bp_yiaddr = daddr.sin_addr; /* Client IP address */
     rbp->bp_siaddr = saddr.sin_addr; /* Server IP address */
 
+    daddr.sin_addr.s_addr = 0xffffffffu;
+
     q = rbp->bp_vend;
     memcpy(q, rfc1533_cookie, 4);
     q += 4;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-24 18:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-24 18:16 [Qemu-devel] [6430] Use broadcast address for slirp dhcp replies Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).