OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac3175f
)
ipv6: Do not depend on rt->n in ip6_pol_route().
author
YOSHIFUJI Hideaki / 吉藤英明
<yoshfuji@linux-ipv6.org>
Thu, 17 Jan 2013 12:53:32 +0000
(12:53 +0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 17 Jan 2013 23:38:19 +0000
(18:38 -0500)
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c
patch
|
blob
|
history
diff --git
a/net/ipv6/route.c
b/net/ipv6/route.c
index
d82eb1f
..
2839381
100644
(file)
--- a/
net/ipv6/route.c
+++ b/
net/ipv6/route.c
@@
-925,7
+925,7
@@
restart:
dst_hold(&rt->dst);
read_unlock_bh(&table->tb6_lock);
- if (!
rt->n && !(rt->rt6i_flags & RTF_NONEXTHOP
))
+ if (!
(rt->rt6i_flags & (RTF_NONEXTHOP | RTF_GATEWAY)
))
nrt = rt6_alloc_cow(rt, &fl6->daddr, &fl6->saddr);
else if (!(rt->dst.flags & DST_HOST))
nrt = rt6_alloc_clone(rt, &fl6->daddr);