aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip_fib.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/ip_fib.h')
-rw-r--r--include/net/ip_fib.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h
index adf73586bc05..0dcbf166eb94 100644
--- a/include/net/ip_fib.h
+++ b/include/net/ip_fib.h
@@ -150,7 +150,7 @@ struct fib_result_nl {
150#endif /* CONFIG_IP_ROUTE_MULTIPATH_WRANDOM */ 150#endif /* CONFIG_IP_ROUTE_MULTIPATH_WRANDOM */
151 151
152struct fib_table { 152struct fib_table {
153 unsigned char tb_id; 153 u32 tb_id;
154 unsigned tb_stamp; 154 unsigned tb_stamp;
155 int (*tb_lookup)(struct fib_table *tb, const struct flowi *flp, struct fib_result *res); 155 int (*tb_lookup)(struct fib_table *tb, const struct flowi *flp, struct fib_result *res);
156 int (*tb_insert)(struct fib_table *table, struct rtmsg *r, 156 int (*tb_insert)(struct fib_table *table, struct rtmsg *r,
@@ -173,14 +173,14 @@ struct fib_table {
173extern struct fib_table *ip_fib_local_table; 173extern struct fib_table *ip_fib_local_table;
174extern struct fib_table *ip_fib_main_table; 174extern struct fib_table *ip_fib_main_table;
175 175
176static inline struct fib_table *fib_get_table(int id) 176static inline struct fib_table *fib_get_table(u32 id)
177{ 177{
178 if (id != RT_TABLE_LOCAL) 178 if (id != RT_TABLE_LOCAL)
179 return ip_fib_main_table; 179 return ip_fib_main_table;
180 return ip_fib_local_table; 180 return ip_fib_local_table;
181} 181}
182 182
183static inline struct fib_table *fib_new_table(int id) 183static inline struct fib_table *fib_new_table(u32 id)
184{ 184{
185 return fib_get_table(id); 185 return fib_get_table(id);
186} 186}
@@ -205,9 +205,9 @@ static inline void fib_select_default(const struct flowi *flp, struct fib_result
205 205
206extern struct fib_table * fib_tables[RT_TABLE_MAX+1]; 206extern struct fib_table * fib_tables[RT_TABLE_MAX+1];
207extern int fib_lookup(struct flowi *flp, struct fib_result *res); 207extern int fib_lookup(struct flowi *flp, struct fib_result *res);
208extern struct fib_table *__fib_new_table(int id); 208extern struct fib_table *__fib_new_table(u32 id);
209 209
210static inline struct fib_table *fib_get_table(int id) 210static inline struct fib_table *fib_get_table(u32 id)
211{ 211{
212 if (id == 0) 212 if (id == 0)
213 id = RT_TABLE_MAIN; 213 id = RT_TABLE_MAIN;
@@ -215,7 +215,7 @@ static inline struct fib_table *fib_get_table(int id)
215 return fib_tables[id]; 215 return fib_tables[id];
216} 216}
217 217
218static inline struct fib_table *fib_new_table(int id) 218static inline struct fib_table *fib_new_table(u32 id)
219{ 219{
220 if (id == 0) 220 if (id == 0)
221 id = RT_TABLE_MAIN; 221 id = RT_TABLE_MAIN;
@@ -248,7 +248,7 @@ extern int fib_convert_rtentry(int cmd, struct nlmsghdr *nl, struct rtmsg *rtm,
248extern u32 __fib_res_prefsrc(struct fib_result *res); 248extern u32 __fib_res_prefsrc(struct fib_result *res);
249 249
250/* Exported by fib_hash.c */ 250/* Exported by fib_hash.c */
251extern struct fib_table *fib_hash_init(int id); 251extern struct fib_table *fib_hash_init(u32 id);
252 252
253#ifdef CONFIG_IP_MULTIPLE_TABLES 253#ifdef CONFIG_IP_MULTIPLE_TABLES
254extern int fib4_rules_dump(struct sk_buff *skb, struct netlink_callback *cb); 254extern int fib4_rules_dump(struct sk_buff *skb, struct netlink_callback *cb);