diff options
author | Denis V. Lunev <den@openvz.org> | 2008-01-21 17:31:55 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 15:10:19 -0800 |
commit | da0e28cb68a7e22b47c6ae1a5b12cb538c13c69f (patch) | |
tree | ac5bc308d4532f7cd271ee58c9bba5decf9699bd /include | |
parent | ba93ef746560df597b19bbcee04ce7ed70ebc700 (diff) | |
download | kernel_goldelico_gta04-da0e28cb68a7e22b47c6ae1a5b12cb538c13c69f.zip kernel_goldelico_gta04-da0e28cb68a7e22b47c6ae1a5b12cb538c13c69f.tar.gz kernel_goldelico_gta04-da0e28cb68a7e22b47c6ae1a5b12cb538c13c69f.tar.bz2 |
[NETNS]: Add netns parameter to fib_lookup.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/ip_fib.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index f580542f..a859124 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h @@ -178,15 +178,16 @@ static inline struct fib_table *fib_new_table(struct net *net, u32 id) return fib_get_table(net, id); } -static inline int fib_lookup(const struct flowi *flp, struct fib_result *res) +static inline int fib_lookup(struct net *net, const struct flowi *flp, + struct fib_result *res) { struct fib_table *table; - table = fib_get_table(&init_net, RT_TABLE_LOCAL); + table = fib_get_table(net, RT_TABLE_LOCAL); if (!table->tb_lookup(table, flp, res)) return 0; - table = fib_get_table(&init_net, RT_TABLE_MAIN); + table = fib_get_table(net, RT_TABLE_MAIN); if (!table->tb_lookup(table, flp, res)) return 0; return -ENETUNREACH; @@ -208,7 +209,7 @@ extern void __net_exit fib4_rules_exit(struct net *net); extern u32 fib_rules_tclass(struct fib_result *res); #endif -extern int fib_lookup(struct flowi *flp, struct fib_result *res); +extern int fib_lookup(struct net *n, struct flowi *flp, struct fib_result *res); extern struct fib_table *fib_new_table(struct net *net, u32 id); extern struct fib_table *fib_get_table(struct net *net, u32 id); |