diff options
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r-- | net/ipv6/route.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 55236a84c748..b770085ae36d 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -1354,25 +1354,6 @@ out: | |||
1354 | return entries > rt_max_size; | 1354 | return entries > rt_max_size; |
1355 | } | 1355 | } |
1356 | 1356 | ||
1357 | int ip6_dst_hoplimit(struct dst_entry *dst) | ||
1358 | { | ||
1359 | int hoplimit = dst_metric_raw(dst, RTAX_HOPLIMIT); | ||
1360 | if (hoplimit == 0) { | ||
1361 | struct net_device *dev = dst->dev; | ||
1362 | struct inet6_dev *idev; | ||
1363 | |||
1364 | rcu_read_lock(); | ||
1365 | idev = __in6_dev_get(dev); | ||
1366 | if (idev) | ||
1367 | hoplimit = idev->cnf.hop_limit; | ||
1368 | else | ||
1369 | hoplimit = dev_net(dev)->ipv6.devconf_all->hop_limit; | ||
1370 | rcu_read_unlock(); | ||
1371 | } | ||
1372 | return hoplimit; | ||
1373 | } | ||
1374 | EXPORT_SYMBOL(ip6_dst_hoplimit); | ||
1375 | |||
1376 | /* | 1357 | /* |
1377 | * | 1358 | * |
1378 | */ | 1359 | */ |