aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorRami Rosen <ramirose@gmail.com>2008-02-10 02:43:11 -0500
committerDavid S. Miller <davem@davemloft.net>2008-02-10 02:43:11 -0500
commit238fc7eac8e74681da7a6cb6748afb5422afc1be (patch)
tree70ab66cdd19bed749dee02aa0e2812b8a1142452 /net/ipv6
parentda219b7c69bd5219fe63b1f2fc2c96eb7a21d2c6 (diff)
[IPV6]: Replace using the magic constant "1024" with IP6_RT_PRIO_USER for fc_metric.
This patch replaces the explicit usage of the magic constant "1024" with IP6_RT_PRIO_USER in the IPV6 tree. Signed-off-by: Rami Rosen <ramirose@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-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 513f72e3db0d..6e7b56ef4449 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -1620,7 +1620,7 @@ static struct rt6_info *rt6_add_route_info(struct in6_addr *prefix, int prefixle
1620{ 1620{
1621 struct fib6_config cfg = { 1621 struct fib6_config cfg = {
1622 .fc_table = RT6_TABLE_INFO, 1622 .fc_table = RT6_TABLE_INFO,
1623 .fc_metric = 1024, 1623 .fc_metric = IP6_RT_PRIO_USER,
1624 .fc_ifindex = ifindex, 1624 .fc_ifindex = ifindex,
1625 .fc_dst_len = prefixlen, 1625 .fc_dst_len = prefixlen,
1626 .fc_flags = RTF_GATEWAY | RTF_ADDRCONF | RTF_ROUTEINFO | 1626 .fc_flags = RTF_GATEWAY | RTF_ADDRCONF | RTF_ROUTEINFO |
@@ -1670,7 +1670,7 @@ struct rt6_info *rt6_add_dflt_router(struct in6_addr *gwaddr,
1670{ 1670{
1671 struct fib6_config cfg = { 1671 struct fib6_config cfg = {
1672 .fc_table = RT6_TABLE_DFLT, 1672 .fc_table = RT6_TABLE_DFLT,
1673 .fc_metric = 1024, 1673 .fc_metric = IP6_RT_PRIO_USER,
1674 .fc_ifindex = dev->ifindex, 1674 .fc_ifindex = dev->ifindex,
1675 .fc_flags = RTF_GATEWAY | RTF_ADDRCONF | RTF_DEFAULT | 1675 .fc_flags = RTF_GATEWAY | RTF_ADDRCONF | RTF_DEFAULT |
1676 RTF_UP | RTF_EXPIRES | RTF_PREF(pref), 1676 RTF_UP | RTF_EXPIRES | RTF_PREF(pref),