diff options
Diffstat (limited to 'net/ipv6/fib6_rules.c')
-rw-r--r-- | net/ipv6/fib6_rules.c | 4 |
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 | ||
219 | int fib6_rules_dump(struct sk_buff *skb, struct netlink_callback *cb) | 219 | static 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 | ||
260 | void fib6_rules_cleanup(void) | 261 | void 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 | } |