qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "John R. Hogerhuis" <jhoger@pobox.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [patch] robust user-mode networking
Date: Wed, 12 Oct 2005 20:54:22 -0700	[thread overview]
Message-ID: <1129175662.13382.111.camel@aragorn> (raw)
In-Reply-To: <434DC79D.5040100@stanfordalumni.org>

I don't know a lot about Slirp details other than what I generally know
about proxy server and NAT router implementation (I know a lot about
that). But perhaps I can raise some questions for you.

On Wed, 2005-10-12 at 22:34 -0400, John Coiner wrote:

> The alternative would have been to debug the slirp stack, and understand 
> how it works and why Windows leaves it in a frozen state, when disabling 
> and reenabling the NIC. 


I have no idea what 'frozen state' means in this context. Do you?

I guess not, since I suppose as soon as you really knew you would be in
a position to kill the fly with a fly swatter rather than running over
it with your car :-).

Not a criticism just a nudge... this sounds like a tiny bug somewhere
that deserves squashing rather than hiding. Unless you can think of
other uses for a Slirp stack resettable independent of qemu itself, it
seems like overkill. However, such a feature might well have some
general utility though, so it seems like it would be a waste not to
include it. Maybe you could explain why you find a need to
disable/re-enable the network card...

What happens in the normal case to the software stack when a network
card is reset? Would all TCP connections that hadn't timed out yet time
out? That is, would the set of allocated sockets be freed back to the
pool? Slirp maintains context about every connection passing through it
since it is a proxy server. So if you reset it all those connections
would be dropped. So even if the socket was left open on the guest, it
would definitely be dropped  in slirp. Maybe that's what is supposed to
happen. Maybe it doesn't matter either way, since this is the kind of
thing firewalls do all the time. Applications are supposed to be able to
deal with it.


-- John.

  reply	other threads:[~2005-10-13  3:54 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 [this message]
2005-10-17  2:02   ` [Qemu-devel] Re: [patch] robust user-mode DHCP John Coiner
2005-10-17 17:58     ` John R. Hogerhuis

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=1129175662.13382.111.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).