diff options
author | Thomas Graf <tgraf@suug.ch> | 2007-03-22 14:57:46 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:27:12 -0400 |
commit | fa34ddd739cecf3999ec0b7562618e8321829d41 (patch) | |
tree | ddc3534b56faca48077922cddbbb79e9b5b0c1ea /net/decnet/dn_rules.c | |
parent | 708914cc5e1657eb1a1f9eefc6333dfd2df8c73a (diff) |
[DECNet]: Use rtnl registration interface
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/decnet/dn_rules.c b/net/decnet/dn_rules.c index 5e86dd542302..a7a7da9b35c3 100644 --- a/net/decnet/dn_rules.c +++ b/net/decnet/dn_rules.c | |||
@@ -239,7 +239,7 @@ static u32 dn_fib_rule_default_pref(void) | |||
239 | return 0; | 239 | return 0; |
240 | } | 240 | } |
241 | 241 | ||
242 | int dn_fib_dump_rules(struct sk_buff *skb, struct netlink_callback *cb) | 242 | static int dn_fib_dump_rules(struct sk_buff *skb, struct netlink_callback *cb) |
243 | { | 243 | { |
244 | return fib_rules_dump(skb, cb, AF_DECnet); | 244 | return fib_rules_dump(skb, cb, AF_DECnet); |
245 | } | 245 | } |
@@ -264,10 +264,12 @@ void __init dn_fib_rules_init(void) | |||
264 | { | 264 | { |
265 | list_add_tail(&default_rule.common.list, &dn_fib_rules); | 265 | list_add_tail(&default_rule.common.list, &dn_fib_rules); |
266 | fib_rules_register(&dn_fib_rules_ops); | 266 | fib_rules_register(&dn_fib_rules_ops); |
267 | rtnl_register(PF_DECnet, RTM_GETRULE, NULL, dn_fib_dump_rules); | ||
267 | } | 268 | } |
268 | 269 | ||
269 | void __exit dn_fib_rules_cleanup(void) | 270 | void __exit dn_fib_rules_cleanup(void) |
270 | { | 271 | { |
272 | rtnl_unregister(PF_DECnet, RTM_GETRULE); | ||
271 | fib_rules_unregister(&dn_fib_rules_ops); | 273 | fib_rules_unregister(&dn_fib_rules_ops); |
272 | } | 274 | } |
273 | 275 | ||