From: YOSHIFUJI Hideaki Date: Tue, 11 Jul 2006 20:05:30 +0000 (-0700) Subject: [IPV6]: Use ipv6_addr_src_scope for link address sorting. X-Git-Tag: v2.6.18-rc2~93^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a6ce0c083f5736e90dabe6d8ce077e7dd0fa35f;p=pandora-kernel.git [IPV6]: Use ipv6_addr_src_scope for link address sorting. In the source address selection, the address must be sorted from global to node-local. But, ifp->scope is different from the scope for source address selection. 2001::1 fe80::1 ::1 ifp->scope 0 0x02 0x01 ipv6_addr_src_scope(&ifp->addr) 0x0e 0x02 0x01 So, we need to use ipv6_addr_src_scope(&ifp->addr) for sorting. And, for backward compatibility, addresses should be sorted from new one to old one. Signed-off-by: YOSHIFUJI Hideaki Acked-by: Brian Haley Signed-off-by: David S. Miller --- Reading git-diff-tree failed