patch-2.3.25 linux/net/decnet/dn_neigh.c
Next file: linux/net/decnet/dn_route.c
Previous file: linux/net/decnet/dn_fib.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Thu Oct 28 14:34:44 1999
- Orig file:
v2.3.24/linux/net/decnet/dn_neigh.c
- Orig date:
Fri Sep 10 23:57:38 1999
diff -u --recursive --new-file v2.3.24/linux/net/decnet/dn_neigh.c linux/net/decnet/dn_neigh.c
@@ -643,13 +643,6 @@
return len;
}
-static struct proc_dir_entry proc_net_dn_neigh = {
- PROC_NET_DN_ADJ, 12, "decnet_neigh",
- S_IFREG | S_IRUGO, 1, 0, 0,
- 0, &proc_net_inode_operations,
- dn_neigh_get_info
-};
-
#endif
void __init dn_neigh_init(void)
@@ -657,7 +650,7 @@
neigh_table_init(&dn_neigh_table);
#ifdef CONFIG_PROC_FS
- proc_net_register(&proc_net_dn_neigh);
+ proc_net_create("decnet_neigh",0,dn_neigh_get_info);
#endif /* CONFIG_PROC_FS */
}
@@ -665,7 +658,7 @@
void dn_neigh_cleanup(void)
{
#ifdef CONFIG_PROC_FS
- proc_net_unregister(PROC_NET_DN_ADJ);
+ proc_net_remove("decnet_neigh");
#endif /* CONFIG_PROC_FS */
neigh_table_clear(&dn_neigh_table);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)