patch-1.3.17 linux/net/core/dev.c

Next file: linux/net/ethernet/Makefile
Previous file: linux/net/core/datagram.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.16/linux/net/core/dev.c linux/net/core/dev.c
@@ -69,7 +69,7 @@
 #include <linux/skbuff.h>
 #include <net/sock.h>
 #include <net/arp.h>
-
+#include <linux/proc_fs.h>
 
 /*
  *	The list of packet types we will receive (as opposed to discard)
@@ -901,7 +901,7 @@
  *	to create /proc/net/dev
  */
  
-int dev_get_info(char *buffer, char **start, off_t offset, int length)
+int dev_get_info(char *buffer, char **start, off_t offset, int length, int dummy)
 {
 	int len=0;
 	off_t begin=0;
@@ -1320,5 +1320,8 @@
 			dev2 = dev;
 		}
 	}
+proc_net_register(&(struct proc_dir_entry)
+	{ PROC_NET_DEV,		dev_get_info,	3, "dev" });
+
 }
 

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