On Tue, Oct 08, 2002 at 12:05:59AM +0900, YOSHIFUJI Hideaki / ?$B5HF#1QL@?(B wrote:
Hi,
Prefix length for link-local address should be 64, not 10.
This patch fixes prefix length of link-local address.
Following patch is against 2.4.19.
Huh?
Without reading the kernel routing table code a bit more, I'm not certain
what that change does, but it looks as if it might be changing the
connected route for a link local from fe80::/10 to fe80::/64.
I'd actually say that is wrong.
All link local's are currently supposed to have those top bits
('tween 10 and 64) zero'd, however any address within the link local
prefix _is_ on link / connected and should go to the interface.
i.e. it's perfectly valid for me to assign a link local of fe80:1910::10
to an interface and expect it to be work, likewise for a packet
destined to any link local address to trigger ND.
DF
In article [off-list ref] (at Wed, 9 Oct 2002 17:00:18 +0100), Derek Fawcus [off-list ref] says:
All link local's are currently supposed to have those top bits
('tween 10 and 64) zero'd, however any address within the link local
prefix _is_ on link / connected and should go to the interface.
i.e. it's perfectly valid for me to assign a link local of fe80:1910::10
to an interface and expect it to be work, likewise for a packet
destined to any link local address to trigger ND.
First of all, please don't use such addresses.
By spec, auto-configured link-local address is fe80::/64
and connected route should be /64.
If you do really want to use such addresses (like fe80:1920::10),
you can put another route by yourself, at your own risk.
We should not configure in such way by default.
and, we should even have to add "discard" route for them
by default for safe.
--yoshfuji
From: Pekka Savola <hidden> Date: 2002-10-09 17:11:14
On Thu, 10 Oct 2002, YOSHIFUJI Hideaki / [iso-2022-jp] $B5HF#1QL@(B wrote:
In article [off-list ref] (at Wed, 9 Oct 2002 17:00:18 +0100), Derek Fawcus [off-list ref] says:
quoted
All link local's are currently supposed to have those top bits
('tween 10 and 64) zero'd, however any address within the link local
prefix _is_ on link / connected and should go to the interface.
i.e. it's perfectly valid for me to assign a link local of fe80:1910::10
to an interface and expect it to be work, likewise for a packet
destined to any link local address to trigger ND.
First of all, please don't use such addresses.
By spec, auto-configured link-local address is fe80::/64
and connected route should be /64.
If you do really want to use such addresses (like fe80:1920::10),
you can put another route by yourself, at your own risk.
We should not configure in such way by default.
and, we should even have to add "discard" route for them
by default for safe.
Personally I think the interfaces should be configured with a /64 but
there should be a discard route for the whole /10.
--
Pekka Savola "Tell me of difficulties surmounted,
Netcore Oy not those you stumble over and fall"
Systems. Networks. Security. -- Robert Jordan: A Crown of Swords
At Wed, 9 Oct 2002 17:00:18 +0100,
Derek Fawcus [off-list ref] wrote:
Without reading the kernel routing table code a bit more, I'm not certain
what that change does, but it looks as if it might be changing the
connected route for a link local from fe80::/10 to fe80::/64.
Why do you want to use /10 prefix for link-local address ?
RFC2373 defines link-local address format as below.
| 10 |
| bits | 54 bits | 64 bits |
+----------+-------------------------+----------------------------+
|1111111010| 0 | interface ID |
+----------+-------------------------+----------------------------+
All link local's are currently supposed to have those top bits
('tween 10 and 64) zero'd, however any address within the link local
prefix _is_ on link / connected and should go to the interface.
If you wan to use /10 prefix for link-local address, you can add the
link-local address with /10 prefix to interfaces and routing table
manually at your own risk, but it should not be a default behavior.
-- Yuji Sekiya