diff options
Diffstat (limited to 'include/net')
-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 f580542f08ed..a85912434189 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) | |||
178 | return fib_get_table(net, id); | 178 | return fib_get_table(net, id); |
179 | } | 179 | } |
180 | 180 | ||
181 | static inline int fib_lookup(const struct flowi *flp, struct fib_result *res) | 181 | static inline int fib_lookup(struct net *net, const struct flowi *flp, |
182 | struct fib_result *res) | ||
182 | { | 183 | { |
183 | struct fib_table *table; | 184 | struct fib_table *table; |
184 | 185 | ||
185 | table = fib_get_table(&init_net, RT_TABLE_LOCAL); | 186 | table = fib_get_table(net, RT_TABLE_LOCAL); |
186 | if (!table->tb_lookup(table, flp, res)) | 187 | if (!table->tb_lookup(table, flp, res)) |
187 | return 0; | 188 | return 0; |
188 | 189 | ||
189 | table = fib_get_table(&init_net, RT_TABLE_MAIN); | 190 | table = fib_get_table(net, RT_TABLE_MAIN); |
190 | if (!table->tb_lookup(table, flp, res)) | 191 | if (!table->tb_lookup(table, flp, res)) |
191 | return 0; | 192 | return 0; |
192 | return -ENETUNREACH; | 193 | return -ENETUNREACH; |
@@ -208,7 +209,7 @@ extern void __net_exit fib4_rules_exit(struct net *net); | |||
208 | extern u32 fib_rules_tclass(struct fib_result *res); | 209 | extern u32 fib_rules_tclass(struct fib_result *res); |
209 | #endif | 210 | #endif |
210 | 211 | ||
211 | extern int fib_lookup(struct flowi *flp, struct fib_result *res); | 212 | extern int fib_lookup(struct net *n, struct flowi *flp, struct fib_result *res); |
212 | 213 | ||
213 | extern struct fib_table *fib_new_table(struct net *net, u32 id); | 214 | extern struct fib_table *fib_new_table(struct net *net, u32 id); |
214 | extern struct fib_table *fib_get_table(struct net *net, u32 id); | 215 | extern struct fib_table *fib_get_table(struct net *net, u32 id); |