aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/fib6_rules.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2007-03-22 14:58:32 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:27:13 -0400
commitc127ea2c45d1b13a672fde254679721bb282e90a (patch)
tree01569ce9d6a250b3f3e311a02ea1890327c3a36f /net/ipv6/fib6_rules.c
parentfa34ddd739cecf3999ec0b7562618e8321829d41 (diff)
[IPv6]: 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/ipv6/fib6_rules.c')
-rw-r--r--net/ipv6/fib6_rules.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c
index ea3035b4e3e8..c74da4b6dd2f 100644
--- a/net/ipv6/fib6_rules.c
+++ b/net/ipv6/fib6_rules.c
@@ -216,7 +216,7 @@ nla_put_failure:
216 return -ENOBUFS; 216 return -ENOBUFS;
217} 217}
218 218
219int fib6_rules_dump(struct sk_buff *skb, struct netlink_callback *cb) 219static int fib6_rules_dump(struct sk_buff *skb, struct netlink_callback *cb)
220{ 220{
221 return fib_rules_dump(skb, cb, AF_INET6); 221 return fib_rules_dump(skb, cb, AF_INET6);
222} 222}
@@ -255,9 +255,11 @@ void __init fib6_rules_init(void)
255 list_add_tail(&main_rule.common.list, &fib6_rules); 255 list_add_tail(&main_rule.common.list, &fib6_rules);
256 256
257 fib_rules_register(&fib6_rules_ops); 257 fib_rules_register(&fib6_rules_ops);
258 __rtnl_register(PF_INET6, RTM_GETRULE, NULL, fib6_rules_dump);
258} 259}
259 260
260void fib6_rules_cleanup(void) 261void fib6_rules_cleanup(void)
261{ 262{
263 rtnl_unregister(PF_INET6, RTM_GETRULE);
262 fib_rules_unregister(&fib6_rules_ops); 264 fib_rules_unregister(&fib6_rules_ops);
263} 265}