Skip to content

Commit

Permalink
ipv6: replace dst_metric() with dst_mtu() in net/ipv6/route.c.
Browse files Browse the repository at this point in the history
This patch replaces dst_metric() with dst_mtu() in net/ipv6/route.c.

Signed-off-by: Rami Rosen <ramirose@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Rami Rosen authored and David S. Miller committed Aug 6, 2008
1 parent 6d273f8 commit 1ca615f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ int ip6_route_add(struct fib6_config *cfg)

if (dst_metric(&rt->u.dst, RTAX_HOPLIMIT) == 0)
rt->u.dst.metrics[RTAX_HOPLIMIT-1] = -1;
if (!dst_metric(&rt->u.dst, RTAX_MTU))
if (!dst_mtu(&rt->u.dst))
rt->u.dst.metrics[RTAX_MTU-1] = ipv6_get_mtu(dev);
if (!dst_metric(&rt->u.dst, RTAX_ADVMSS))
rt->u.dst.metrics[RTAX_ADVMSS-1] = ipv6_advmss(net, dst_mtu(&rt->u.dst));
Expand Down

0 comments on commit 1ca615f

Please sign in to comment.