diff options
author | David S. Miller <davem@davemloft.net> | 2008-06-28 04:19:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-28 04:19:40 -0400 |
commit | 1b63ba8a86c85524a8d7e5953b314ce71ebcb9c9 (patch) | |
tree | fe3dc41cbb47ae12b7c3faf6a88b097349e50d5a /net/ipv6/route.c | |
parent | e35c3269edba151e1c703d87068a28ce2cd65bb0 (diff) | |
parent | d420895efb259a78dda50f95289571faa6e10e41 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
drivers/net/wireless/iwlwifi/iwl4965-base.c
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r-- | net/ipv6/route.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index efe036aa3dd1..751e98f9b8b4 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -238,7 +238,7 @@ static inline int rt6_need_strict(struct in6_addr *daddr) | |||
238 | static inline struct rt6_info *rt6_device_match(struct net *net, | 238 | static inline struct rt6_info *rt6_device_match(struct net *net, |
239 | struct rt6_info *rt, | 239 | struct rt6_info *rt, |
240 | int oif, | 240 | int oif, |
241 | int strict) | 241 | int flags) |
242 | { | 242 | { |
243 | struct rt6_info *local = NULL; | 243 | struct rt6_info *local = NULL; |
244 | struct rt6_info *sprt; | 244 | struct rt6_info *sprt; |
@@ -251,7 +251,7 @@ static inline struct rt6_info *rt6_device_match(struct net *net, | |||
251 | if (dev->flags & IFF_LOOPBACK) { | 251 | if (dev->flags & IFF_LOOPBACK) { |
252 | if (sprt->rt6i_idev == NULL || | 252 | if (sprt->rt6i_idev == NULL || |
253 | sprt->rt6i_idev->dev->ifindex != oif) { | 253 | sprt->rt6i_idev->dev->ifindex != oif) { |
254 | if (strict && oif) | 254 | if (flags & RT6_LOOKUP_F_IFACE && oif) |
255 | continue; | 255 | continue; |
256 | if (local && (!oif || | 256 | if (local && (!oif || |
257 | local->rt6i_idev->dev->ifindex == oif)) | 257 | local->rt6i_idev->dev->ifindex == oif)) |
@@ -264,7 +264,7 @@ static inline struct rt6_info *rt6_device_match(struct net *net, | |||
264 | if (local) | 264 | if (local) |
265 | return local; | 265 | return local; |
266 | 266 | ||
267 | if (strict) | 267 | if (flags & RT6_LOOKUP_F_IFACE) |
268 | return net->ipv6.ip6_null_entry; | 268 | return net->ipv6.ip6_null_entry; |
269 | } | 269 | } |
270 | return rt; | 270 | return rt; |