diff options
Diffstat (limited to 'net/decnet/dn_route.c')
-rw-r--r-- | net/decnet/dn_route.c | 9 |
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 | */ |
1525 | int dn_cache_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, void *arg) | 1525 | static 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 | ||
1818 | void __exit dn_route_cleanup(void) | 1825 | void __exit dn_route_cleanup(void) |