projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da219b7
)
[IPV6]: Replace using the magic constant "1024" with IP6_RT_PRIO_USER for fc_metric.
author
Rami Rosen
<ramirose@gmail.com>
Sun, 10 Feb 2008 07:43:11 +0000
(23:43 -0800)
committer
David S. Miller
<davem@davemloft.net>
Sun, 10 Feb 2008 07:43:11 +0000
(23:43 -0800)
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>
net/ipv6/route.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/route.c
b/net/ipv6/route.c
index 513f72e3db0da00dc8f54bd9df7878054e92be33..6e7b56ef44499c0bf5bf48af941f8b77181131df 100644
(file)
--- 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
{
struct fib6_config cfg = {
.fc_table = RT6_TABLE_INFO,
- .fc_metric =
1024
,
+ .fc_metric =
IP6_RT_PRIO_USER
,
.fc_ifindex = ifindex,
.fc_dst_len = prefixlen,
.fc_flags = RTF_GATEWAY | RTF_ADDRCONF | RTF_ROUTEINFO |
@@
-1670,7
+1670,7
@@
struct rt6_info *rt6_add_dflt_router(struct in6_addr *gwaddr,
{
struct fib6_config cfg = {
.fc_table = RT6_TABLE_DFLT,
- .fc_metric =
1024
,
+ .fc_metric =
IP6_RT_PRIO_USER
,
.fc_ifindex = dev->ifindex,
.fc_flags = RTF_GATEWAY | RTF_ADDRCONF | RTF_DEFAULT |
RTF_UP | RTF_EXPIRES | RTF_PREF(pref),