aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSteven Whitehouse <steve@chygwyn.com>2006-08-09 18:56:46 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 17:54:15 -0400
commita8731cbf61c8768ea129780b70dc7dfc6795aad4 (patch)
tree82e177adc2b342d9943d1737f82fc1b205116b14 /include
parent8f491069b40be5d627007a343f99759e9da6a178 (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')
-rw-r--r--include/linux/rtnetlink.h3
-rw-r--r--include/net/dn_fib.h8
2 files changed, 5 insertions, 6 deletions
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h
index 784a1a29490e..0aaffa2ae666 100644
--- a/include/linux/rtnetlink.h
+++ b/include/linux/rtnetlink.h
@@ -534,7 +534,8 @@ enum rtnetlink_groups {
534 RTNLGRP_NOP2, 534 RTNLGRP_NOP2,
535 RTNLGRP_DECnet_ROUTE, 535 RTNLGRP_DECnet_ROUTE,
536#define RTNLGRP_DECnet_ROUTE RTNLGRP_DECnet_ROUTE 536#define RTNLGRP_DECnet_ROUTE RTNLGRP_DECnet_ROUTE
537 RTNLGRP_NOP3, 537 RTNLGRP_DECnet_RULE,
538#define RTNLGRP_DECnet_RULE RTNLGRP_DECnet_RULE
538 RTNLGRP_NOP4, 539 RTNLGRP_NOP4,
539 RTNLGRP_IPV6_PREFIX, 540 RTNLGRP_IPV6_PREFIX,
540#define RTNLGRP_IPV6_PREFIX RTNLGRP_IPV6_PREFIX 541#define RTNLGRP_IPV6_PREFIX RTNLGRP_IPV6_PREFIX
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
24struct dn_fib_res { 24struct 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 */
148extern void dn_fib_rules_init(void); 148extern void dn_fib_rules_init(void);
149extern void dn_fib_rules_cleanup(void); 149extern void dn_fib_rules_cleanup(void);
150extern void dn_fib_rule_put(struct dn_fib_rule *);
151extern __le16 dn_fib_rules_policy(__le16 saddr, struct dn_fib_res *res, unsigned *flags);
152extern unsigned dnet_addr_type(__le16 addr); 150extern unsigned dnet_addr_type(__le16 addr);
153extern int dn_fib_lookup(const struct flowi *fl, struct dn_fib_res *res); 151extern 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
182extern struct dn_fib_table *dn_fib_tables[]; 180extern struct dn_fib_table *dn_fib_tables[];