netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ipv6 source address selection in addrconf.c (2.6.17)
@ 2006-06-20 21:38 Lukasz Stelmach
  2006-06-21 13:42 ` [patch] " Lukasz Stelmach
  2006-06-21 14:02 ` YOSHIFUJI Hideaki / 吉藤英明
  0 siblings, 2 replies; 9+ messages in thread
From: Lukasz Stelmach @ 2006-06-20 21:38 UTC (permalink / raw)
  To: netdev; +Cc: Łukasz Stelmach

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

Greetings.

net/ipv6/addrconf.c:971 is
/* Rule 2: Prefer appropriate scope */
if (hiscore.rule < 2) {
        hiscore.scope = __ipv6_addr_src_scope(hiscore.addr_type);
        hiscore.rule++;
}

I am afraid, that it does not make any sense for I find no place where a value
is assigned to hiscore.addr_type. There are some more references to
hiscore.addr_type below but the only assignment is when the whole structure is
cleaned with memset(3)

I found it when I was trying to figure out why when trying to connect to

2001:200:0:8002:203:47ff:fea5:3085 (www.kame.net)

with two global addresses assigned to the ethernet card

fd24:6f44:46bd:face::254
2002:531f:d667:face::254

rule 8 does not work and the first address is chosen.


Please CC answers.
-- 
Było mi bardzo miło.                    Czwarta pospolita klęska, [...]
>Łukasz<                      Już nie katolicka lecz złodziejska.  (c)PP




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

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <20060622.011257.85558580.yoshfuji@linux-ipv6.org>]

end of thread, other threads:[~2006-06-22 11:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-20 21:38 ipv6 source address selection in addrconf.c (2.6.17) Lukasz Stelmach
2006-06-21 13:42 ` [patch] " Lukasz Stelmach
2006-06-21 15:12   ` YOSHIFUJI Hideaki / 吉藤英明
2006-06-21 16:05     ` Lukasz Stelmach
2006-06-21 22:57   ` Lukasz Stelmach
2006-06-22  0:26     ` YOSHIFUJI Hideaki / 吉藤英明
2006-06-22 11:04       ` Lukasz Stelmach
2006-06-21 14:02 ` YOSHIFUJI Hideaki / 吉藤英明
     [not found] <20060622.011257.85558580.yoshfuji@linux-ipv6.org>
2006-06-22  8:39 ` [patch] " David Miller

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).