|
@@ -411,24 +411,6 @@ errout:
|
|
rtnl_set_sk_err(info->nl_net, RTNLGRP_IPV4_ROUTE, err);
|
|
rtnl_set_sk_err(info->nl_net, RTNLGRP_IPV4_ROUTE, err);
|
|
}
|
|
}
|
|
|
|
|
|
-/* Return the first fib alias matching TOS with
|
|
|
|
- * priority less than or equal to PRIO.
|
|
|
|
- */
|
|
|
|
-struct fib_alias *fib_find_alias(struct list_head *fah, u8 tos, u32 prio)
|
|
|
|
-{
|
|
|
|
- if (fah) {
|
|
|
|
- struct fib_alias *fa;
|
|
|
|
- list_for_each_entry(fa, fah, fa_list) {
|
|
|
|
- if (fa->fa_tos > tos)
|
|
|
|
- continue;
|
|
|
|
- if (fa->fa_info->fib_priority >= prio ||
|
|
|
|
- fa->fa_tos < tos)
|
|
|
|
- return fa;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- return NULL;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
static int fib_detect_death(struct fib_info *fi, int order,
|
|
static int fib_detect_death(struct fib_info *fi, int order,
|
|
struct fib_info **last_resort, int *last_idx,
|
|
struct fib_info **last_resort, int *last_idx,
|
|
int dflt)
|
|
int dflt)
|