From: "John R. Hogerhuis" <jhoger@pobox.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: [patch] robust user-mode DHCP
Date: Mon, 17 Oct 2005 10:58:55 -0700 [thread overview]
Message-ID: <1129571935.20565.15.camel@aragorn> (raw)
In-Reply-To: <4353062A.1060106@stanfordalumni.org>
On Sun, 2005-10-16 at 22:02 -0400, John Coiner wrote:
> It was a tiny bug...
>
> Windows does not like QEMU's DHCP server. Windows always issues
> DHCPDISCOVER and DHCPREQUEST packets in pairs: first the DHCPDISCOVER,
> followed by a DHCPREQUEST. The DHCPREQUEST is a sanity check. Windows
> wants the DHCP server to reply with the same IP for both requests,
> otherwise it does not consider the DHCP operation successful.
>
> QEMU's DHCP server will reply with a new IP for each DHCPDISCOVER.
> However, for a DHCPREQUEST, it replies with the first IP it ever gave
> out on the first DHCPDISCOVER.
>
> As a consequence, Windows' first DHCPDISCOVER/DHCPREQUEST pair succeeds,
> and every subsequent pair fails. That is why disabling and reenabling
> the NIC does not work, and why using the "ipconfig" program to renew the
> DHCP also does not work.
>
I seem to recall this coming up for an IP sharing router I worked on the
firmware for. There were several compatibility glitches with Windows and
the DHCP implementation we had bought from General Software, and I
believe this was one of them.
Good find!
> Yeah, all the stateful connections have some kind of timeout attached,
> after which they vaporize. So I'd agree that there's never a need to
> throw away one copy of slirp and set up another one.
Actually, I think what you did would be nice to have if it was available
as a command from the monitor rather than triggered off a network card
reset.
A proxy server is much like a firewall. In real life, I have had to
reset my firewalls on occasion, so I can imagine it would come in handy
with Slirp too.
-- John.
prev parent reply other threads:[~2005-10-17 17:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-13 2:34 [Qemu-devel] [patch] robust user-mode networking John Coiner
2005-10-13 3:54 ` John R. Hogerhuis
2005-10-17 2:02 ` [Qemu-devel] Re: [patch] robust user-mode DHCP John Coiner
2005-10-17 17:58 ` John R. Hogerhuis [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1129571935.20565.15.camel@aragorn \
--to=jhoger@pobox.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).