diff options
Diffstat (limited to 'include/net/ip_fib.h')
-rw-r--r-- | include/net/ip_fib.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index be70b33b744c..39f944a096d9 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h | |||
@@ -193,14 +193,6 @@ static inline int fib_lookup(struct net *net, const struct flowi *flp, | |||
193 | return -ENETUNREACH; | 193 | return -ENETUNREACH; |
194 | } | 194 | } |
195 | 195 | ||
196 | static inline void fib_select_default(const struct flowi *flp, | ||
197 | struct fib_result *res) | ||
198 | { | ||
199 | struct fib_table *table = fib_get_table(&init_net, RT_TABLE_MAIN); | ||
200 | if (FIB_RES_GW(*res) && FIB_RES_NH(*res).nh_scope == RT_SCOPE_LINK) | ||
201 | table->tb_select_default(table, flp, res); | ||
202 | } | ||
203 | |||
204 | #else /* CONFIG_IP_MULTIPLE_TABLES */ | 196 | #else /* CONFIG_IP_MULTIPLE_TABLES */ |
205 | extern int __net_init fib4_rules_init(struct net *net); | 197 | extern int __net_init fib4_rules_init(struct net *net); |
206 | extern void __net_exit fib4_rules_exit(struct net *net); | 198 | extern void __net_exit fib4_rules_exit(struct net *net); |
@@ -213,7 +205,6 @@ extern int fib_lookup(struct net *n, struct flowi *flp, struct fib_result *res); | |||
213 | 205 | ||
214 | extern struct fib_table *fib_new_table(struct net *net, u32 id); | 206 | extern struct fib_table *fib_new_table(struct net *net, u32 id); |
215 | extern struct fib_table *fib_get_table(struct net *net, u32 id); | 207 | extern struct fib_table *fib_get_table(struct net *net, u32 id); |
216 | extern void fib_select_default(const struct flowi *flp, struct fib_result *res); | ||
217 | 208 | ||
218 | #endif /* CONFIG_IP_MULTIPLE_TABLES */ | 209 | #endif /* CONFIG_IP_MULTIPLE_TABLES */ |
219 | 210 | ||
@@ -222,6 +213,7 @@ extern const struct nla_policy rtm_ipv4_policy[]; | |||
222 | extern void ip_fib_init(void); | 213 | extern void ip_fib_init(void); |
223 | extern int fib_validate_source(__be32 src, __be32 dst, u8 tos, int oif, | 214 | extern int fib_validate_source(__be32 src, __be32 dst, u8 tos, int oif, |
224 | struct net_device *dev, __be32 *spec_dst, u32 *itag); | 215 | struct net_device *dev, __be32 *spec_dst, u32 *itag); |
216 | extern void fib_select_default(const struct flowi *flp, struct fib_result *res); | ||
225 | 217 | ||
226 | /* Exported by fib_semantics.c */ | 218 | /* Exported by fib_semantics.c */ |
227 | extern int ip_fib_check_default(__be32 gw, struct net_device *dev); | 219 | extern int ip_fib_check_default(__be32 gw, struct net_device *dev); |