aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r--net/ipv6/route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 6863f8b43bbd..30458726accf 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -220,7 +220,7 @@ static struct dst_ops ip6_dst_blackhole_ops = {
220}; 220};
221 221
222static const u32 ip6_template_metrics[RTAX_MAX] = { 222static const u32 ip6_template_metrics[RTAX_MAX] = {
223 [RTAX_HOPLIMIT - 1] = 255, 223 [RTAX_HOPLIMIT - 1] = 0,
224}; 224};
225 225
226static const struct rt6_info ip6_null_entry_template = { 226static const struct rt6_info ip6_null_entry_template = {
@@ -1287,7 +1287,7 @@ struct dst_entry *icmp6_dst_alloc(struct net_device *dev,
1287 rt->rt6i_dst.addr = fl6->daddr; 1287 rt->rt6i_dst.addr = fl6->daddr;
1288 rt->rt6i_dst.plen = 128; 1288 rt->rt6i_dst.plen = 128;
1289 rt->rt6i_idev = idev; 1289 rt->rt6i_idev = idev;
1290 dst_metric_set(&rt->dst, RTAX_HOPLIMIT, 255); 1290 dst_metric_set(&rt->dst, RTAX_HOPLIMIT, 0);
1291 1291
1292 spin_lock_bh(&icmp6_dst_lock); 1292 spin_lock_bh(&icmp6_dst_lock);
1293 rt->dst.next = icmp6_dst_gc_list; 1293 rt->dst.next = icmp6_dst_gc_list;