[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>
This commit is contained in:
committed by
David S. Miller
parent
708914cc5e
commit
fa34ddd739
@@ -504,7 +504,7 @@ static int dn_fib_check_attr(struct rtmsg *r, struct rtattr **rta)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int dn_fib_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
|
||||
static int dn_fib_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
|
||||
{
|
||||
struct dn_fib_table *tb;
|
||||
struct rtattr **rta = arg;
|
||||
@@ -520,7 +520,7 @@ int dn_fib_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
|
||||
return -ESRCH;
|
||||
}
|
||||
|
||||
int dn_fib_rtm_newroute(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
|
||||
static int dn_fib_rtm_newroute(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
|
||||
{
|
||||
struct dn_fib_table *tb;
|
||||
struct rtattr **rta = arg;
|
||||
@@ -748,11 +748,13 @@ void __exit dn_fib_cleanup(void)
|
||||
|
||||
void __init dn_fib_init(void)
|
||||
{
|
||||
|
||||
dn_fib_table_init();
|
||||
dn_fib_rules_init();
|
||||
|
||||
register_dnaddr_notifier(&dn_fib_dnaddr_notifier);
|
||||
|
||||
rtnl_register(PF_DECnet, RTM_NEWROUTE, dn_fib_rtm_newroute, NULL);
|
||||
rtnl_register(PF_DECnet, RTM_DELROUTE, dn_fib_rtm_delroute, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user