diff options
Diffstat (limited to 'include/net/ip_fib.h')
-rw-r--r-- | include/net/ip_fib.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index a095d1dec7a4..14c82e611c95 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h | |||
@@ -18,6 +18,7 @@ | |||
18 | 18 | ||
19 | #include <net/flow.h> | 19 | #include <net/flow.h> |
20 | #include <linux/seq_file.h> | 20 | #include <linux/seq_file.h> |
21 | #include <net/fib_rules.h> | ||
21 | 22 | ||
22 | /* WARNING: The ordering of these elements must match ordering | 23 | /* WARNING: The ordering of these elements must match ordering |
23 | * of RTA_* rtnetlink attribute numbers. | 24 | * of RTA_* rtnetlink attribute numbers. |
@@ -203,9 +204,8 @@ static inline void fib_select_default(const struct flowi *flp, struct fib_result | |||
203 | #define ip_fib_main_table (fib_tables[RT_TABLE_MAIN]) | 204 | #define ip_fib_main_table (fib_tables[RT_TABLE_MAIN]) |
204 | 205 | ||
205 | extern struct fib_table * fib_tables[RT_TABLE_MAX+1]; | 206 | extern struct fib_table * fib_tables[RT_TABLE_MAX+1]; |
206 | extern int fib_lookup(const struct flowi *flp, struct fib_result *res); | 207 | extern int fib_lookup(struct flowi *flp, struct fib_result *res); |
207 | extern struct fib_table *__fib_new_table(int id); | 208 | extern struct fib_table *__fib_new_table(int id); |
208 | extern void fib_rule_put(struct fib_rule *r); | ||
209 | 209 | ||
210 | static inline struct fib_table *fib_get_table(int id) | 210 | static inline struct fib_table *fib_get_table(int id) |
211 | { | 211 | { |
@@ -251,15 +251,15 @@ extern u32 __fib_res_prefsrc(struct fib_result *res); | |||
251 | extern struct fib_table *fib_hash_init(int id); | 251 | extern struct fib_table *fib_hash_init(int id); |
252 | 252 | ||
253 | #ifdef CONFIG_IP_MULTIPLE_TABLES | 253 | #ifdef CONFIG_IP_MULTIPLE_TABLES |
254 | /* Exported by fib_rules.c */ | 254 | extern int fib4_rules_dump(struct sk_buff *skb, struct netlink_callback *cb); |
255 | |||
256 | extern void __init fib4_rules_init(void); | ||
257 | extern void __exit fib4_rules_cleanup(void); | ||
255 | 258 | ||
256 | extern int inet_rtm_delrule(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg); | ||
257 | extern int inet_rtm_newrule(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg); | ||
258 | extern int inet_dump_rules(struct sk_buff *skb, struct netlink_callback *cb); | ||
259 | #ifdef CONFIG_NET_CLS_ROUTE | 259 | #ifdef CONFIG_NET_CLS_ROUTE |
260 | extern u32 fib_rules_tclass(struct fib_result *res); | 260 | extern u32 fib_rules_tclass(struct fib_result *res); |
261 | #endif | 261 | #endif |
262 | extern void fib_rules_init(void); | 262 | |
263 | #endif | 263 | #endif |
264 | 264 | ||
265 | static inline void fib_combine_itag(u32 *itag, struct fib_result *res) | 265 | static inline void fib_combine_itag(u32 *itag, struct fib_result *res) |