aboutsummaryrefslogtreecommitdiffstats
path: root/net/ax25
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2006-07-11 13:05:30 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-07-12 13:58:53 -0700
commit8a6ce0c083f5736e90dabe6d8ce077e7dd0fa35f (patch)
treedf9ae7e58b86277ab20b31ee3606d81b9a1e917d /net/ax25
parent[TCP] tcp_highspeed: Fix AI updates. (diff)
downloadlinux-dev-8a6ce0c083f5736e90dabe6d8ce077e7dd0fa35f.tar.xz
linux-dev-8a6ce0c083f5736e90dabe6d8ce077e7dd0fa35f.zip
[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 <yoshfuji@linux-ipv6.org> Acked-by: Brian Haley <brian.haley@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ax25')
0 files changed, 0 insertions, 0 deletions