diff options
author | Patrick McHardy <kaber@trash.net> | 2006-08-11 02:11:47 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 17:54:28 -0400 |
commit | abcab268303c22d24fc89fedd35d82271d20f5da (patch) | |
tree | 2add5b99164734899d92ad37d89b1ded91c219bf /net/decnet/dn_rules.c | |
parent | 1b43af5480c351dbcb2eef478bafe179cbeb6e83 (diff) |
[DECNET]: Increase number of possible routing tables to 2^32
Increase the number of possible routing tables to 2^32 by replacing the
fixed sized array of pointers by a hash table and replacing iterations
over all possible table IDs by hash table walking.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet/dn_rules.c')
-rw-r--r-- | net/decnet/dn_rules.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/decnet/dn_rules.c b/net/decnet/dn_rules.c index 096f1273e714..878312ff34ec 100644 --- a/net/decnet/dn_rules.c +++ b/net/decnet/dn_rules.c | |||
@@ -210,7 +210,7 @@ unsigned dnet_addr_type(__le16 addr) | |||
210 | struct flowi fl = { .nl_u = { .dn_u = { .daddr = addr } } }; | 210 | struct flowi fl = { .nl_u = { .dn_u = { .daddr = addr } } }; |
211 | struct dn_fib_res res; | 211 | struct dn_fib_res res; |
212 | unsigned ret = RTN_UNICAST; | 212 | unsigned ret = RTN_UNICAST; |
213 | struct dn_fib_table *tb = dn_fib_tables[RT_TABLE_LOCAL]; | 213 | struct dn_fib_table *tb = dn_fib_get_table(RT_TABLE_LOCAL, 0); |
214 | 214 | ||
215 | res.r = NULL; | 215 | res.r = NULL; |
216 | 216 | ||