netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Rémi Denis-Courmont" <rdenis@simphalempin.com>
To: David Stevens <dlstevens@us.ibm.com>
Cc: "C. Scott Ananian" <cscott@laptop.org>, netdev@vger.kernel.org
Subject: Re: [RFD] First draft of RDNSS-in-RA support for IPv6 DNS autoconfiguration
Date: Sat, 23 Jun 2007 16:25:44 +0300	[thread overview]
Message-ID: <200706231625.44825@auguste.remlab.net> (raw)
In-Reply-To: <OF0D7F9D29.61F86942-ON88257303.0005AD2A-88257303.0005D48C@us.ibm.com>

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

	Hello,

Le samedi 23 juin 2007, David Stevens a écrit :
>         Why not make the application that writes resolv.conf
> also listen on a raw ICMPv6 socket? I don't believe you'd need
> any kernel changes, then, and it seems pretty simple and
> straightforward.

Unfortunately, ICMPv6 raw sockets will not work quite properly here, 
without modifications. At the moment, such a socket will queue just 
about any Router Advertisement that is received by the host.

Now, assuming the userland daemon did sanity check the message (properly 
formatted, source and destination addresses are sane, etc), it needs to 
know whether the IPv6 kernel stack has "accepted" it or not. It could 
be that the interface the RA was received on had autoconf disabled at 
the time the packet showed up, or it could be that the system is 
currently configured as a router, or it could be that we have a 
SeND-patched kernel and the RA did not pass authentication checks.

And then, what happens if IPv6 networking has been initialized before 
init got the chance to start the daemon, for instance root over 
NFS/IPv6? The RA is lost.

Similarly, the daemon has no way to know when information gathered from 
an RA becomes invalid. Of course, it can duplicate the lifetime timers 
in userland, but only the kernel knows if the link has been reset to 
off and on earlier than lifetime expiration.


Whether parsing RDNSS-in-RA belong in the kernel is irrelevant to me, as 
the kernel does not provide any interface for userland to do it 
properly at the moment.

-- 
Rémi Denis-Courmont
http://www.remlab.net/

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  parent reply	other threads:[~2007-06-23 13:58 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-22 23:26 [RFD] First draft of RDNSS-in-RA support for IPv6 DNS autoconfiguration C. Scott Ananian
2007-06-22 23:39 ` Michael Buesch
2007-06-23  0:09   ` C. Scott Ananian
2007-06-23  2:11     ` Dan Williams
2007-06-23  9:07     ` Michael Buesch
2007-06-23 20:41       ` David Miller
2007-06-22 23:42 ` Michael Buesch
2007-06-23  1:04 ` David Stevens
2007-06-23  1:17   ` Simon Arlott
2007-06-23  4:30     ` David Stevens
2007-06-23  4:50       ` Simon Arlott
2007-06-23  5:12       ` David Miller
2007-06-23  8:23         ` Pierre Ynard
2007-06-24 19:05     ` Olaf Kirch
2007-06-23 13:25   ` Rémi Denis-Courmont [this message]
2007-06-23 14:47     ` C. Scott Ananian
2007-06-23 16:40       ` Simon Arlott
2007-06-23 16:48       ` David Stevens
2007-06-23 16:51         ` Rémi Denis-Courmont
2007-06-23 17:45           ` David Stevens
2007-06-23 18:13             ` Rémi Denis-Courmont
2007-06-23 18:51               ` David Stevens
2007-06-23 19:18                 ` Rémi Denis-Courmont
2007-06-23 20:27             ` Pierre Ynard
2007-06-25  2:17       ` Dan Williams
2007-06-25  2:53         ` David Miller

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=200706231625.44825@auguste.remlab.net \
    --to=rdenis@simphalempin.com \
    --cc=cscott@laptop.org \
    --cc=dlstevens@us.ibm.com \
    --cc=netdev@vger.kernel.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).