patch-2.1.3 linux/net/ipv4/arp.c
Next file: linux/net/ipv4/ip_forward.c
Previous file: linux/net/ipv4/af_inet.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Wed Oct 9 20:11:11 1996
- Orig file:
v2.1.2/linux/net/ipv4/arp.c
- Orig date:
Sat Oct 5 16:58:36 1996
diff -u --recursive --new-file v2.1.2/linux/net/ipv4/arp.c linux/net/ipv4/arp.c
@@ -2389,6 +2389,15 @@
0
};
+#ifdef CONFIG_PROC_FS
+static struct proc_dir_entry proc_net_arp = {
+ PROC_NET_ARP, 3, "arp",
+ S_IFREG | S_IRUGO, 1, 0, 0,
+ 0, &proc_net_inode_operations,
+ arp_get_info
+};
+#endif
+
void arp_init (void)
{
/* Register the packet type */
@@ -2400,12 +2409,7 @@
register_netdevice_notifier(&arp_dev_notifier);
#ifdef CONFIG_PROC_FS
- proc_net_register(&(struct proc_dir_entry) {
- PROC_NET_ARP, 3, "arp",
- S_IFREG | S_IRUGO, 1, 0, 0,
- 0, &proc_net_inode_operations,
- arp_get_info
- });
+ proc_net_register(&proc_net_arp);
#endif
#ifdef CONFIG_ARPD
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov