patch-2.1.18 linux/net/ipv4/ip_masq_ftp.c

Next file: linux/net/ipv4/ip_masq_irc.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.17/linux/net/ipv4/ip_masq_ftp.c linux/net/ipv4/ip_masq_ftp.c
@@ -5,19 +5,19 @@
  * Version:	@(#)ip_masq_ftp.c 0.01   02/05/96
  *
  * Author:	Wouter Gadeyne
- *		
+ *
  *
  * Fixes:
  *	Wouter Gadeyne		:	Fixed masquerading support of ftp PORT commands
  * 	Juan Jose Ciarlante	:	Code moved and adapted from ip_fw.c
- *	
+ *
  *
  *
  *	This program is free software; you can redistribute it and/or
  *	modify it under the terms of the GNU General Public License
  *	as published by the Free Software Foundation; either version
  *	2 of the License, or (at your option) any later version.
- *	
+ *
  */
 
 #include <linux/module.h>
@@ -100,14 +100,14 @@
 		port = (p5<<8) | p6;
 #if DEBUG_CONFIG_IP_MASQ_FTP
 		printk("PORT %X:%X detected\n",from,port);
-#endif	
+#endif
 		/*
 		 * Now update or create an masquerade entry for it
 		 */
 #if DEBUG_CONFIG_IP_MASQ_FTP
 		printk("protocol %d %lX:%X %X:%X\n", iph->protocol, htonl(from), htons(port), iph->daddr, 0);
 
-#endif	
+#endif
 		n_ms = ip_masq_out_get_2(iph->protocol,
 					 htonl(from), htons(port),
 					 iph->daddr, 0);
@@ -120,7 +120,7 @@
 					   htonl(from), htons(port),
 					   iph->daddr, 0,
 					   IP_MASQ_F_NO_DPORT);
-					
+
 			if (n_ms==NULL)
 				return 0;
 		}
@@ -142,18 +142,18 @@
 		buf_len = strlen(buf);
 #if DEBUG_CONFIG_IP_MASQ_FTP
 		printk("new PORT %X:%X\n",from,port);
-#endif	
+#endif
 
 		/*
 		 * Calculate required delta-offset to keep TCP happy
 		 */
-		
+
 		diff = buf_len - (data-p);
-		
+
 		/*
 		 *	No shift.
 		 */
-		
+
 		if (diff==0)
 		{
 			/*
@@ -201,12 +201,12 @@
 }
 
 #ifdef MODULE
+EXPORT_NO_SYMBOLS;
 
 int init_module(void)
 {
         if (ip_masq_ftp_init() != 0)
                 return -EIO;
-        register_symtab(0);
         return 0;
 }
 

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