From: YOSHIFUJI Hideaki Date: Wed, 25 Jun 2008 07:58:17 +0000 (+0900) Subject: ipv6: Assume the loopback address in link-local scope. X-Git-Tag: v2.6.27-rc1~969^2~248^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5ce83afaac956238c3c25f60a899c511e9d8cbf4;p=linux-2.6-omap-h63xx.git ipv6: Assume the loopback address in link-local scope. Handle interface property strictly when looking up a route for the loopback address (RFC4291 2.5.3). Signed-off-by: YOSHIFUJI Hideaki --- diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 751e98f9b8b..dbad96c58ba 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -228,7 +228,7 @@ static __inline__ int rt6_check_expired(const struct rt6_info *rt) static inline int rt6_need_strict(struct in6_addr *daddr) { return (ipv6_addr_type(daddr) & - (IPV6_ADDR_MULTICAST | IPV6_ADDR_LINKLOCAL)); + (IPV6_ADDR_MULTICAST | IPV6_ADDR_LINKLOCAL | IPV6_ADDR_LOOPBACK)); } /*