[IPv6]: Use rtnl registration interface
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
fa34ddd739
commit
c127ea2c45
@ -216,7 +216,7 @@ nla_put_failure:
|
||||
return -ENOBUFS;
|
||||
}
|
||||
|
||||
int fib6_rules_dump(struct sk_buff *skb, struct netlink_callback *cb)
|
||||
static int fib6_rules_dump(struct sk_buff *skb, struct netlink_callback *cb)
|
||||
{
|
||||
return fib_rules_dump(skb, cb, AF_INET6);
|
||||
}
|
||||
@ -255,9 +255,11 @@ void __init fib6_rules_init(void)
|
||||
list_add_tail(&main_rule.common.list, &fib6_rules);
|
||||
|
||||
fib_rules_register(&fib6_rules_ops);
|
||||
__rtnl_register(PF_INET6, RTM_GETRULE, NULL, fib6_rules_dump);
|
||||
}
|
||||
|
||||
void fib6_rules_cleanup(void)
|
||||
{
|
||||
rtnl_unregister(PF_INET6, RTM_GETRULE);
|
||||
fib_rules_unregister(&fib6_rules_ops);
|
||||
}
|
||||
|
Reference in New Issue
Block a user