patch-2.1.3 linux/net/netrom/af_netrom.c
Next file: linux/net/unix/af_unix.c
Previous file: linux/net/ipv4/tcp_input.c
Back to the patch index
Back to the overall index
- Lines: 56
- Date:
Wed Oct 9 20:11:11 1996
- Orig file:
v2.1.2/linux/net/netrom/af_netrom.c
- Orig date:
Wed Aug 7 08:41:57 1996
diff -u --recursive --new-file v2.1.2/linux/net/netrom/af_netrom.c linux/net/netrom/af_netrom.c
@@ -1401,6 +1401,27 @@
0
};
+#ifdef CONFIG_PROC_FS
+static struct proc_dir_entry proc_net_nr = {
+ PROC_NET_NR, 2, "nr",
+ S_IFREG | S_IRUGO, 1, 0, 0,
+ 0, &proc_net_inode_operations,
+ nr_get_info
+};
+static struct proc_dir_entry proc_net_nr_neigh = {
+ PROC_NET_NR_NEIGH, 8, "nr_neigh",
+ S_IFREG | S_IRUGO, 1, 0, 0,
+ 0, &proc_net_inode_operations,
+ nr_neigh_get_info
+};
+static struct proc_dir_entry proc_net_nr_nodes = {
+ PROC_NET_NR_NODES, 8, "nr_nodes",
+ S_IFREG | S_IRUGO, 1, 0, 0,
+ 0, &proc_net_inode_operations,
+ nr_nodes_get_info
+};
+#endif
+
void nr_proto_init(struct net_proto *pro)
{
sock_register(nr_proto_ops.family, &nr_proto_ops);
@@ -1418,24 +1439,9 @@
nr_default.paclen = NR_DEFAULT_PACLEN;
#ifdef CONFIG_PROC_FS
- proc_net_register(&(struct proc_dir_entry) {
- PROC_NET_NR, 2, "nr",
- S_IFREG | S_IRUGO, 1, 0, 0,
- 0, &proc_net_inode_operations,
- nr_get_info
- });
- proc_net_register(&(struct proc_dir_entry) {
- PROC_NET_NR_NEIGH, 8, "nr_neigh",
- S_IFREG | S_IRUGO, 1, 0, 0,
- 0, &proc_net_inode_operations,
- nr_neigh_get_info
- });
- proc_net_register(&(struct proc_dir_entry) {
- PROC_NET_NR_NODES, 8, "nr_nodes",
- S_IFREG | S_IRUGO, 1, 0, 0,
- 0, &proc_net_inode_operations,
- nr_nodes_get_info
- });
+ proc_net_register(&proc_net_nr);
+ proc_net_register(&proc_net_nr_neigh);
+ proc_net_register(&proc_net_nr_nodes);
#endif
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov