aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip_fib.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-01-31 19:10:03 -0500
committerDavid S. Miller <davem@davemloft.net>2011-01-31 19:10:03 -0500
commit5b4704419cbd0b7597a91c19f9e8e8b17c1af071 (patch)
tree94ee46905ba2a142bdf910fb26f7450c41ebc46a /include/net/ip_fib.h
parenta5e3c2aae23a3719105c1ae662c67ef282f213db (diff)
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>
Diffstat (limited to 'include/net/ip_fib.h')
-rw-r--r--include/net/ip_fib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h
index 2c0508a6e07c..f5199b08ba53 100644
--- a/include/net/ip_fib.h
+++ b/include/net/ip_fib.h
@@ -96,12 +96,15 @@ struct fib_info {
96struct fib_rule; 96struct fib_rule;
97#endif 97#endif
98 98
99struct fib_table;
99struct fib_result { 100struct fib_result {
100 unsigned char prefixlen; 101 unsigned char prefixlen;
101 unsigned char nh_sel; 102 unsigned char nh_sel;
102 unsigned char type; 103 unsigned char type;
103 unsigned char scope; 104 unsigned char scope;
104 struct fib_info *fi; 105 struct fib_info *fi;
106 struct fib_table *table;
107 struct list_head *fa_head;
105#ifdef CONFIG_IP_MULTIPLE_TABLES 108#ifdef CONFIG_IP_MULTIPLE_TABLES
106 struct fib_rule *r; 109 struct fib_rule *r;
107#endif 110#endif