From: Vlad Yasevich <vladislav.yasevich@hp.com>
To: Jiri Bohac <jbohac@suse.cz>
Cc: netdev@vger.kernel.org, yoshfuji@linux-ipv6.org, kkeil@suse.de
Subject: Re: Why does a connect to IPv6 LLA address fail ?
Date: Wed, 07 Nov 2007 14:42:19 -0500 [thread overview]
Message-ID: <4732151B.70309@hp.com> (raw)
In-Reply-To: <20071107112838.GA22180@dhcp79.suse.cz>
Jiri Bohac wrote:
> Hi,
>
>> For this it create a socket for datagram and
>> protocol IPPROTO_IP and then try to connect it with the destination
>> address. This fails in the case of a LLA, because connect returns EINVAL,
>> since here is no device bind to this socket at this time.
>
> [snip]
>
>> Why do we have this check in ip6_datagram_connect() ?
>
> This problem has been nicely described in
> http://www.linux-ipv6.org/ml/usagi-users/msg03062.html
> without any response.
>
> RFC2461, Appendix A, really suggests performing neighbour
> discovery on all the links. I like the idea, it would make LLAs
> much more useful.
The reason this is in an Appendix is because it doesn't work all
the time. It was there to document some experiments that were going
on.
>
> Has anyone experimented with this? Is there any good reason why
> we don't send NSs to all the links to find out which link the
> destination LLA is on?
The reason is that 2 different hosts may have the same link-local
address as long as they are on different links. If the sender is
connected to both links then it may send the packet to the wrong
destination.
Link local addresses are unqualified without the scope/zone id.
The application must pass this information to the kernel as part of
the connect() call.
A different and some might say 'better' alternative is to define a
default link. Thus when the zone id is not specified the default is used.
This will work fine for link-scoped addresses. A default zone would also
need to be defined for other scopes as well. That's just one idea.
-vlad
next prev parent reply other threads:[~2007-11-07 19:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-07 9:40 Why does a connect to IPv6 LLA address fail ? Karsten Keil
2007-11-07 11:28 ` Jiri Bohac
2007-11-07 19:42 ` Vlad Yasevich [this message]
2007-11-08 18:01 ` Andreas Gruenbacher
2007-11-08 18:15 ` Vlad Yasevich
2007-11-08 18:32 ` Karsten Keil
2007-11-08 20:50 ` Vlad Yasevich
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=4732151B.70309@hp.com \
--to=vladislav.yasevich@hp.com \
--cc=jbohac@suse.cz \
--cc=kkeil@suse.de \
--cc=netdev@vger.kernel.org \
--cc=yoshfuji@linux-ipv6.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).