patch-pre2.0.10 linux/net/ipv4/ipmr.c

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

diff -u --recursive --new-file pre2.0.9/linux/net/ipv4/ipmr.c linux/net/ipv4/ipmr.c
@@ -24,6 +24,7 @@
  *		Resolve IFF_ALLMULTI for rest of cards
  */
 
+#include <linux/config.h>
 #include <asm/system.h>
 #include <asm/segment.h>
 #include <linux/types.h>
@@ -910,6 +911,7 @@
 {
 	printk(KERN_INFO "Linux IP multicast router 0.05.\n");
 	register_netdevice_notifier(&ip_mr_notifier);
+#ifdef CONFIG_PROC_FS	
 	proc_net_register(&(struct proc_dir_entry) {
 		PROC_NET_IPMR_VIF, 9 ,"ip_mr_vif",
 		S_IFREG | S_IRUGO, 1, 0, 0,
@@ -922,4 +924,5 @@
 		0, &proc_net_inode_operations,
 		ipmr_mfc_info
 	});
+#endif	
 }

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