patch-2.1.3 linux/net/ipv4/ip_masq.c
Next file: linux/net/ipv4/ip_masq_app.c
Previous file: linux/net/ipv4/ip_fw.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/ip_masq.c
- Orig date:
Thu Jun 6 16:23:49 1996
diff -u --recursive --new-file v2.1.2/linux/net/ipv4/ip_masq.c linux/net/ipv4/ip_masq.c
@@ -994,6 +994,15 @@
return len;
}
+#ifdef CONFIG_PROC_FS
+static struct proc_dir_entry proc_net_ipmsqhst = {
+ PROC_NET_IPMSQHST, 13, "ip_masquerade",
+ S_IFREG | S_IRUGO, 1, 0, 0,
+ 0, &proc_net_inode_operations,
+ ip_msqhst_procinfo
+};
+#endif
+
/*
* Initialize ip masquerading
*/
@@ -1001,12 +1010,7 @@
{
register_symtab (&ip_masq_syms);
#ifdef CONFIG_PROC_FS
- proc_net_register(&(struct proc_dir_entry) {
- PROC_NET_IPMSQHST, 13, "ip_masquerade",
- S_IFREG | S_IRUGO, 1, 0, 0,
- 0, &proc_net_inode_operations,
- ip_msqhst_procinfo
- });
+ proc_net_register(&proc_net_ipmsqhst);
#endif
ip_masq_app_init();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov