patch-1.3.19 linux/net/core/dev.c
Next file: linux/net/core/skbuff.c
Previous file: linux/net/core/Makefile
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Tue Aug 15 14:45:20 1995
- Orig file:
v1.3.18/linux/net/core/dev.c
- Orig date:
Sun Aug 13 14:45:36 1995
diff -u --recursive --new-file v1.3.18/linux/net/core/dev.c linux/net/core/dev.c
@@ -70,6 +70,7 @@
#include <net/sock.h>
#include <net/arp.h>
#include <linux/proc_fs.h>
+#include <linux/stat.h>
/*
* The list of packet types we will receive (as opposed to discard)
@@ -1320,8 +1321,12 @@
dev2 = dev;
}
}
-proc_net_register(&(struct proc_dir_entry)
- { PROC_NET_DEV, 3, "dev", dev_get_info });
+ proc_net_register(&(struct proc_dir_entry) {
+ PROC_NET_DEV, 3, "dev",
+ S_IFREG | S_IRUGO, 1, 0, 0,
+ 0, &proc_net_inode_operations,
+ dev_get_info
+ });
}
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