patch-1.3.17 linux/net/netrom/af_netrom.c
Next file: linux/net/netrom/nr_route.c
Previous file: linux/net/netrom/Makefile
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Wed Aug 9 09:52:30 1995
- Orig file:
v1.3.16/linux/net/netrom/af_netrom.c
- Orig date:
Wed Aug 2 13:21:18 1995
diff -u --recursive --new-file v1.3.16/linux/net/netrom/af_netrom.c linux/net/netrom/af_netrom.c
@@ -1284,7 +1284,8 @@
return(0);
}
-int nr_get_info(char *buffer, char **start, off_t offset, int length)
+static int nr_get_info(char *buffer, char **start, off_t offset,
+ int length, int dummy)
{
struct sock *s;
struct device *dev;
@@ -1388,6 +1389,14 @@
nr_default.busy_delay = NR_DEFAULT_T4;
nr_default.tries = NR_DEFAULT_N2;
nr_default.window = NR_DEFAULT_WINDOW;
+
+proc_net_register(&(struct proc_dir_entry)
+ { PROC_NET_NR, nr_get_info, 2, "nr" });
+proc_net_register(&(struct proc_dir_entry)
+ { PROC_NET_NR_NEIGH, nr_neigh_get_info, 8, "nr_neigh" });
+proc_net_register(&(struct proc_dir_entry)
+ { PROC_NET_NR_NODES, nr_nodes_get_info, 8, "nr_nodes" });
+
}
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this