diff options
author | Thomas Graf <tgraf@suug.ch> | 2007-03-22 14:55:17 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:27:08 -0400 |
commit | 63f3444fb9a54c024d55f1205f8b94e7d2786595 (patch) | |
tree | 41cde0c702a2b4400a34f02380eb3baf1cc72a2b /net/ipv4/fib_rules.c | |
parent | 9d9e6a5819230b5a5cc036f213135cb123ab1e50 (diff) |
[IPv4]: Use rtnl registration interface
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_rules.c')
-rw-r--r-- | net/ipv4/fib_rules.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv4/fib_rules.c b/net/ipv4/fib_rules.c index c660c074c76c..a7f931ddfaad 100644 --- a/net/ipv4/fib_rules.c +++ b/net/ipv4/fib_rules.c | |||
@@ -274,7 +274,7 @@ nla_put_failure: | |||
274 | return -ENOBUFS; | 274 | return -ENOBUFS; |
275 | } | 275 | } |
276 | 276 | ||
277 | int fib4_rules_dump(struct sk_buff *skb, struct netlink_callback *cb) | 277 | static int fib4_rule_dump(struct sk_buff *skb, struct netlink_callback *cb) |
278 | { | 278 | { |
279 | return fib_rules_dump(skb, cb, AF_INET); | 279 | return fib_rules_dump(skb, cb, AF_INET); |
280 | } | 280 | } |
@@ -327,4 +327,6 @@ void __init fib4_rules_init(void) | |||
327 | list_add_tail(&default_rule.common.list, &fib4_rules); | 327 | list_add_tail(&default_rule.common.list, &fib4_rules); |
328 | 328 | ||
329 | fib_rules_register(&fib4_rules_ops); | 329 | fib_rules_register(&fib4_rules_ops); |
330 | |||
331 | rtnl_register(PF_INET, RTM_GETRULE, NULL, fib4_rule_dump); | ||
330 | } | 332 | } |