diff options
Diffstat (limited to 'net/ipv6/ndisc.c')
-rw-r--r-- | net/ipv6/ndisc.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 998d6d27e7cf..2342545a5ee9 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c | |||
@@ -141,18 +141,18 @@ struct neigh_table nd_tbl = { | |||
141 | .proxy_redo = pndisc_redo, | 141 | .proxy_redo = pndisc_redo, |
142 | .id = "ndisc_cache", | 142 | .id = "ndisc_cache", |
143 | .parms = { | 143 | .parms = { |
144 | .tbl = &nd_tbl, | 144 | .tbl = &nd_tbl, |
145 | .base_reachable_time = 30 * HZ, | 145 | .base_reachable_time = ND_REACHABLE_TIME, |
146 | .retrans_time = 1 * HZ, | 146 | .retrans_time = ND_RETRANS_TIMER, |
147 | .gc_staletime = 60 * HZ, | 147 | .gc_staletime = 60 * HZ, |
148 | .reachable_time = 30 * HZ, | 148 | .reachable_time = ND_REACHABLE_TIME, |
149 | .delay_probe_time = 5 * HZ, | 149 | .delay_probe_time = 5 * HZ, |
150 | .queue_len = 3, | 150 | .queue_len = 3, |
151 | .ucast_probes = 3, | 151 | .ucast_probes = 3, |
152 | .mcast_probes = 3, | 152 | .mcast_probes = 3, |
153 | .anycast_delay = 1 * HZ, | 153 | .anycast_delay = 1 * HZ, |
154 | .proxy_delay = (8 * HZ) / 10, | 154 | .proxy_delay = (8 * HZ) / 10, |
155 | .proxy_qlen = 64, | 155 | .proxy_qlen = 64, |
156 | }, | 156 | }, |
157 | .gc_interval = 30 * HZ, | 157 | .gc_interval = 30 * HZ, |
158 | .gc_thresh1 = 128, | 158 | .gc_thresh1 = 128, |
@@ -1259,7 +1259,8 @@ static void ndisc_router_discovery(struct sk_buff *skb) | |||
1259 | if (ra_msg->icmph.icmp6_hop_limit) { | 1259 | if (ra_msg->icmph.icmp6_hop_limit) { |
1260 | in6_dev->cnf.hop_limit = ra_msg->icmph.icmp6_hop_limit; | 1260 | in6_dev->cnf.hop_limit = ra_msg->icmph.icmp6_hop_limit; |
1261 | if (rt) | 1261 | if (rt) |
1262 | rt->dst.metrics[RTAX_HOPLIMIT-1] = ra_msg->icmph.icmp6_hop_limit; | 1262 | dst_metric_set(&rt->dst, RTAX_HOPLIMIT, |
1263 | ra_msg->icmph.icmp6_hop_limit); | ||
1263 | } | 1264 | } |
1264 | 1265 | ||
1265 | skip_defrtr: | 1266 | skip_defrtr: |
@@ -1377,7 +1378,7 @@ skip_linkparms: | |||
1377 | in6_dev->cnf.mtu6 = mtu; | 1378 | in6_dev->cnf.mtu6 = mtu; |
1378 | 1379 | ||
1379 | if (rt) | 1380 | if (rt) |
1380 | rt->dst.metrics[RTAX_MTU-1] = mtu; | 1381 | dst_metric_set(&rt->dst, RTAX_MTU, mtu); |
1381 | 1382 | ||
1382 | rt6_mtu_change(skb->dev, mtu); | 1383 | rt6_mtu_change(skb->dev, mtu); |
1383 | } | 1384 | } |