* [Qemu-devel] [PATCH] Use broadcast address for slirp dhcp replies
@ 2009-01-20 14:33 Avi Kivity
2009-01-24 18:16 ` Aurelien Jarno
0 siblings, 1 reply; 2+ messages in thread
From: Avi Kivity @ 2009-01-20 14:33 UTC (permalink / raw)
To: Anthony Liguori, qemu-devel
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>
---
slirp/bootp.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/slirp/bootp.c b/slirp/bootp.c
index bf704ab..ca177f4 100644
--- a/slirp/bootp.c
+++ b/slirp/bootp.c
@@ -191,6 +191,8 @@ static void bootp_reply(struct bootp_t *bp)
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;
--
1.6.0.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] Use broadcast address for slirp dhcp replies
2009-01-20 14:33 [Qemu-devel] [PATCH] Use broadcast address for slirp dhcp replies Avi Kivity
@ 2009-01-24 18:16 ` Aurelien Jarno
0 siblings, 0 replies; 2+ messages in thread
From: Aurelien Jarno @ 2009-01-24 18:16 UTC (permalink / raw)
To: qemu-devel
On Tue, Jan 20, 2009 at 04:33:31PM +0200, Avi Kivity wrote:
> 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>
Thanks, applied.
> ---
> slirp/bootp.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/slirp/bootp.c b/slirp/bootp.c
> index bf704ab..ca177f4 100644
> --- a/slirp/bootp.c
> +++ b/slirp/bootp.c
> @@ -191,6 +191,8 @@ static void bootp_reply(struct bootp_t *bp)
> 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;
> --
> 1.6.0.6
>
>
>
>
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-24 18:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-20 14:33 [Qemu-devel] [PATCH] Use broadcast address for slirp dhcp replies Avi Kivity
2009-01-24 18:16 ` 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).