IPv6, sit: set prefix length 64 for link-local addresses
Subsystems (3)
Quoted 3 lines · On Fri, 26 Sep 2003 19:54:05 +0200 Jan Oravec <[email protected]> wrote:
please apply the following patch.
It sets the prefix length 64 instead of 128 for link-local addresses on sit interfaces.
I've seen this patch before, and I remember it being rejected by other ipv6 developers.
Do the USAGI or other folks remember what is going on here?
Hello,
The mail with the patch was not delivered to netdev ML for some reasons. Resending it..
The function sit_add_v4_addrs() calls ipv6_add_addr() with plen 64 if local endpoint of tunnel is not configured, so I do not see a reason to set plen to 128 if local endpoint is configured.
We are running patched kernel in our test-lab for about week and it is working fine.
Quoted 11 lines · David S. Miller
Quoted 3 lines · On Fri, 26 Sep 2003 19:54:05 +0200 Jan Oravec <[email protected]> wrote:
please apply the following patch.
It sets the prefix length 64 instead of 128 for link-local addresses on sit interfaces.
I've seen this patch before, and I remember it being rejected by other ipv6 developers.
Do the USAGI or other folks remember what is going on here?
net/ipv6/addrconf.c renamed from net/ipv6/addrconf.c.orig +1 -1
@@ -1681,7 +1681,7 @@ }if (addr.s6_addr32[3 ]) { - ifp =ipv6_add_addr (idev, &addr,128 , scope,IFA_F_PERMANENT ); + ifp =ipv6_add_addr (idev, &addr,64 , scope,IFA_F_PERMANENT );if (!IS_ERR (ifp)) {spin_lock_bh (&ifp->lock); ifp->flags &= ~IFA_F_TENTATIVE ;
Best Regards,
Signature · 3 lines
Jan Oravec 6COM s.r.o. http://www.6com.sk
In article <[email protected]> (at Sun, 5 Oct 2003 11:18:45 +0200), Jan Oravec <[email protected]> says:
Quoted 3 lines
The function
sit_add_v4_addrs()callsipv6_add_addr()with plen 64 if local endpoint of tunnel is not configured, so I do not see a reason to set plen to 128 if local endpoint is configured.
This patch seems logically wrong.
--yoshfuji
Quoted 7 lines · On Sun, Oct 05, 2003 at 09:28:46PM +0900, YOSHIFUJI Hideaki / ?$B5HF#1QL@ wrote:
In article <[email protected]> (at Sun, 5 Oct 2003 11:18:45 +0200), Jan Oravec <[email protected]> says:
Quoted 3 lines
The function
sit_add_v4_addrs()callsipv6_add_addr()with plen 64 if local endpoint of tunnel is not configured, so I do not see a reason to set plen to 128 if local endpoint is configured.This patch seems logically wrong.
You mean the text above (current kernel implementation) or the patch which sets it to 64 in both cases? If the patch is wrong, can you explain why?
Jan