patch-2.1.3 linux/net/ipv4/ip_output.c

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

diff -u --recursive --new-file v2.1.2/linux/net/ipv4/ip_output.c linux/net/ipv4/ip_output.c
@@ -1086,6 +1086,17 @@
 	0
 };
 
+#ifdef CONFIG_IP_MULTICAST
+#ifdef CONFIG_PROC_FS
+static struct proc_dir_entry proc_net_igmp = {
+	PROC_NET_IGMP, 4, "igmp",
+	S_IFREG | S_IRUGO, 1, 0, 0,
+	0, &proc_net_inode_operations,
+	ip_mc_procinfo
+};
+#endif	
+#endif
+
 /*
  *	IP registers the packet type and then calls the subprotocol initialisers
  */
@@ -1105,12 +1116,7 @@
 
 #ifdef CONFIG_IP_MULTICAST
 #ifdef CONFIG_PROC_FS
-	proc_net_register(&(struct proc_dir_entry) {
-		PROC_NET_IGMP, 4, "igmp",
-		S_IFREG | S_IRUGO, 1, 0, 0,
-		0, &proc_net_inode_operations,
-		ip_mc_procinfo
-	});
+	proc_net_register(&proc_net_igmp);
 #endif	
 #endif
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov