diff options
author | Steven Whitehouse <steve@chygwyn.com> | 2006-08-09 18:56:46 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 17:54:15 -0400 |
commit | a8731cbf61c8768ea129780b70dc7dfc6795aad4 (patch) | |
tree | 82e177adc2b342d9943d1737f82fc1b205116b14 /include/net/dn_fib.h | |
parent | 8f491069b40be5d627007a343f99759e9da6a178 (diff) |
[DECNET]: Covert rules to use generic code
This patch converts the DECnet rules code to use the generic
rules system created by Thomas Graf <tgraf@suug.ch>.
Signed-off-by: Steven Whitehouse <steve@chygwyn.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dn_fib.h')
-rw-r--r-- | include/net/dn_fib.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/net/dn_fib.h b/include/net/dn_fib.h index a15dcf0d5c1e..32bc8ce5c5ce 100644 --- a/include/net/dn_fib.h +++ b/include/net/dn_fib.h | |||
@@ -22,7 +22,7 @@ struct dn_kern_rta | |||
22 | }; | 22 | }; |
23 | 23 | ||
24 | struct dn_fib_res { | 24 | struct dn_fib_res { |
25 | struct dn_fib_rule *r; | 25 | struct fib_rule *r; |
26 | struct dn_fib_info *fi; | 26 | struct dn_fib_info *fi; |
27 | unsigned char prefixlen; | 27 | unsigned char prefixlen; |
28 | unsigned char nh_sel; | 28 | unsigned char nh_sel; |
@@ -147,10 +147,8 @@ extern void dn_fib_table_cleanup(void); | |||
147 | */ | 147 | */ |
148 | extern void dn_fib_rules_init(void); | 148 | extern void dn_fib_rules_init(void); |
149 | extern void dn_fib_rules_cleanup(void); | 149 | extern void dn_fib_rules_cleanup(void); |
150 | extern void dn_fib_rule_put(struct dn_fib_rule *); | ||
151 | extern __le16 dn_fib_rules_policy(__le16 saddr, struct dn_fib_res *res, unsigned *flags); | ||
152 | extern unsigned dnet_addr_type(__le16 addr); | 150 | extern unsigned dnet_addr_type(__le16 addr); |
153 | extern int dn_fib_lookup(const struct flowi *fl, struct dn_fib_res *res); | 151 | extern int dn_fib_lookup(struct flowi *fl, struct dn_fib_res *res); |
154 | 152 | ||
155 | /* | 153 | /* |
156 | * rtnetlink interface | 154 | * rtnetlink interface |
@@ -176,7 +174,7 @@ static inline void dn_fib_res_put(struct dn_fib_res *res) | |||
176 | if (res->fi) | 174 | if (res->fi) |
177 | dn_fib_info_put(res->fi); | 175 | dn_fib_info_put(res->fi); |
178 | if (res->r) | 176 | if (res->r) |
179 | dn_fib_rule_put(res->r); | 177 | fib_rule_put(res->r); |
180 | } | 178 | } |
181 | 179 | ||
182 | extern struct dn_fib_table *dn_fib_tables[]; | 180 | extern struct dn_fib_table *dn_fib_tables[]; |