All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: Ed Swierk <eswierk@aristanetworks.com>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] slirp: Read host DNS config on demand
Date: Wed, 22 Jul 2009 22:04:59 +0200	[thread overview]
Message-ID: <4A6770EB.7090301@web.de> (raw)
In-Reply-To: <1248291957.3841.10.camel@localhost.localdomain>

[-- Attachment #1: Type: text/plain, Size: 1463 bytes --]

Ed Swierk wrote:
> On Wed, 2009-07-22 at 20:57 +0200, Jan Kiszka wrote:
>> Nice. I noticed this, too, and shortly thought about some possible
>> fixes. Don't know why I dropped it again. Anyway, your approach looks
>> straightforward. Please rebase over git head, and I will happily test
>> and ack it!
> 
> FYI there are two other things that tend to break on laptops especially:
> 
> - If the system clock jumps backwards, functions that rely on
> gettimeofday() for computing a time interval get confused.
> gettimeofday() should be replaced with clock_gettime(CLOCK_MONOTONIC).
> Hopefully all Unixy platforms support it?

You mean that gettimeofday in updtime? Yes, that's only for timeout
calculation IIRC and should be converted. Patch welcome.

Are there more? I didn't find any on quick scan.

> 
> - Storing the address of some random host interface in our_addr is bad
> for the same reason as storing the address of the DNS server.
> Fortunately most references to our_addr are in dead code, and the
> remaining ones are questionable.

True. I shortly thought about ripping all those historic UDP protocol
emulations out, but then I didn't feel brave enough. I couldn't asses if
they are still of any use for some qemu people (namely it's CUSEEME, the
rest is disabled anyway). But maybe it's worth posting another cleanup
patch.

> 
> Anyway, here's the updated patch for the DNS issue.

Thanks, will test.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]

  reply	other threads:[~2009-07-22 20:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-22 17:57 [Qemu-devel] [PATCH] slirp: Read host DNS config on demand Ed Swierk
2009-07-22 18:57 ` [Qemu-devel] " Jan Kiszka
2009-07-22 19:45   ` Ed Swierk
2009-07-22 20:04     ` Jan Kiszka [this message]
2009-07-22 23:27     ` malc
2009-07-23  6:47     ` Jan Kiszka

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=4A6770EB.7090301@web.de \
    --to=jan.kiszka@web.de \
    --cc=eswierk@aristanetworks.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.