patch-1.3.17 linux/net/ipv4/arp.c

Next file: linux/net/ipv4/ip.c
Previous file: linux/net/ipv4/af_inet.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.16/linux/net/ipv4/arp.c linux/net/ipv4/arp.c
@@ -84,6 +84,7 @@
 #include <net/netrom.h>
 #endif
 #endif
+#include <linux/proc_fs.h>
 
 
 /*
@@ -1039,7 +1040,7 @@
 
 #define HBUFFERLEN 30
 
-int arp_get_info(char *buffer, char **start, off_t offset, int length)
+int arp_get_info(char *buffer, char **start, off_t offset, int length, int dummy)
 {
 	int len=0;
 	off_t begin=0;
@@ -1455,5 +1456,8 @@
 	add_timer(&arp_timer);
 	/* Register for device down reports */
 	register_netdevice_notifier(&arp_dev_notifier);
+
+proc_net_register(&(struct proc_dir_entry)
+	{ PROC_NET_ARP,		arp_get_info,	3, "arp" });
 }
 

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