aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip_fib.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-02-17 00:44:24 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-17 18:54:42 -0500
commit982721f3911b2619482e05910644e5699fbeb065 (patch)
tree217a326d3e362c84b92e4687fcd38f7766fc8655 /include/net/ip_fib.h
parentb6bf3ca032c9cd517526178f579e7a4e395c6e45 (diff)
ipv4: Use const'ify fib_result deep in the route call chains.
The only troublesome bit here is __mkroute_output which wants to override res->fi and res->type, compute those in local variables instead. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip_fib.h')
-rw-r--r--include/net/ip_fib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h
index b3019d89e8be..523a170b0ecb 100644
--- a/include/net/ip_fib.h
+++ b/include/net/ip_fib.h
@@ -202,7 +202,7 @@ extern int __net_init fib4_rules_init(struct net *net);
202extern void __net_exit fib4_rules_exit(struct net *net); 202extern void __net_exit fib4_rules_exit(struct net *net);
203 203
204#ifdef CONFIG_IP_ROUTE_CLASSID 204#ifdef CONFIG_IP_ROUTE_CLASSID
205extern u32 fib_rules_tclass(struct fib_result *res); 205extern u32 fib_rules_tclass(const struct fib_result *res);
206#endif 206#endif
207 207
208extern int fib_lookup(struct net *n, struct flowi *flp, struct fib_result *res); 208extern int fib_lookup(struct net *n, struct flowi *flp, struct fib_result *res);