ipv4: Remember FIB alias list head and table in lookup results.
This will be used later to implement fib_select_default() in a completely generic manner, instead of the current situation where the default route is re-looked up in the TRIE/HASH table and then the available aliases are analyzed. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -96,12 +96,15 @@ struct fib_info {
|
||||
struct fib_rule;
|
||||
#endif
|
||||
|
||||
struct fib_table;
|
||||
struct fib_result {
|
||||
unsigned char prefixlen;
|
||||
unsigned char nh_sel;
|
||||
unsigned char type;
|
||||
unsigned char scope;
|
||||
struct fib_info *fi;
|
||||
struct fib_table *table;
|
||||
struct list_head *fa_head;
|
||||
#ifdef CONFIG_IP_MULTIPLE_TABLES
|
||||
struct fib_rule *r;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user