aboutsummaryrefslogtreecommitdiffstats
path: root/net/decnet/dn_route.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2007-03-22 14:57:46 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:27:12 -0400
commitfa34ddd739cecf3999ec0b7562618e8321829d41 (patch)
treeddc3534b56faca48077922cddbbb79e9b5b0c1ea /net/decnet/dn_route.c
parent708914cc5e1657eb1a1f9eefc6333dfd2df8c73a (diff)
[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>
Diffstat (limited to 'net/decnet/dn_route.c')
-rw-r--r--net/decnet/dn_route.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c
index 2ae35ef1f077..5d7337bcf0fe 100644
--- a/net/decnet/dn_route.c
+++ b/net/decnet/dn_route.c
@@ -1522,7 +1522,7 @@ rtattr_failure:
1522/* 1522/*
1523 * This is called by both endnodes and routers now. 1523 * This is called by both endnodes and routers now.
1524 */ 1524 */
1525int dn_cache_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, void *arg) 1525static int dn_cache_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, void *arg)
1526{ 1526{
1527 struct rtattr **rta = arg; 1527 struct rtattr **rta = arg;
1528 struct rtmsg *rtm = NLMSG_DATA(nlh); 1528 struct rtmsg *rtm = NLMSG_DATA(nlh);
@@ -1813,6 +1813,13 @@ void __init dn_route_init(void)
1813 dn_dst_ops.gc_thresh = (dn_rt_hash_mask + 1); 1813 dn_dst_ops.gc_thresh = (dn_rt_hash_mask + 1);
1814 1814
1815 proc_net_fops_create("decnet_cache", S_IRUGO, &dn_rt_cache_seq_fops); 1815 proc_net_fops_create("decnet_cache", S_IRUGO, &dn_rt_cache_seq_fops);
1816
1817#ifdef CONFIG_DECNET_ROUTER
1818 rtnl_register(PF_DECnet, RTM_GETROUTE, dn_cache_getroute, dn_fib_dump);
1819#else
1820 rtnl_register(PF_DECnet, RTM_GETROUTE, dn_cache_getroute,
1821 dn_cache_dump);
1822#endif
1816} 1823}
1817 1824
1818void __exit dn_route_cleanup(void) 1825void __exit dn_route_cleanup(void)