diff options
author | YOSHIFUJI Hideaki | 2006-03-21 01:56:50 +0100 |
---|---|---|
committer | David S. Miller | 2006-03-21 01:56:50 +0100 |
commit | 76f9edd17d90e11ef04d20fe457dd172fe8157a6 (patch) | |
tree | 96226496033036fd26eb27393b0ca4d17274fb61 | |
parent | [IPV6]: ROUTE: Set appropriate information before inserting a route. (diff) | |
download | kernel-qcow2-linux-76f9edd17d90e11ef04d20fe457dd172fe8157a6.tar.gz kernel-qcow2-linux-76f9edd17d90e11ef04d20fe457dd172fe8157a6.tar.xz kernel-qcow2-linux-76f9edd17d90e11ef04d20fe457dd172fe8157a6.zip |
[IPV6]: ROUTE: Copy u.dst.error for RTF_REJECT routes when cloning.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv6/route.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 5b58a516bb16..6d506230622a 100644 --- 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; |