projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1e7836
)
[IPV6]: ROUTE: Copy u.dst.error for RTF_REJECT routes when cloning.
author
YOSHIFUJI Hideaki
<yoshfuji@linux-ipv6.org>
Tue, 21 Mar 2006 00:56:50 +0000
(16:56 -0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 21 Mar 2006 00:56:50 +0000
(16:56 -0800)
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/route.c
b/net/ipv6/route.c
index 5b58a516bb162dbe89a5ea83e593444502b7a63b..6d506230622a4061c74b69a4afb44aeeeb7adc5a 100644
(file)
--- a/
net/ipv6/route.c
+++ b/
net/ipv6/route.c
@@
-1249,6
+1249,8
@@
void rt6_pmtu_discovery(struct in6_addr *daddr, struct in6_addr *saddr,
nrt->rt6i_nexthop = neigh_clone(rt->rt6i_nexthop);
dst_set_expires(&nrt->u.dst, ip6_rt_mtu_expires);
nrt->rt6i_flags |= RTF_DYNAMIC|RTF_CACHE|RTF_EXPIRES;
+ if (nrt->rt6i_flags & RTF_REJECT)
+ nrt->u.dst.error = rt->u.dst.error;
nrt->u.dst.metrics[RTAX_MTU-1] = pmtu;
if (allfrag)
nrt->u.dst.metrics[RTAX_FEATURES-1] |= RTAX_FEATURE_ALLFRAG;