patch-2.3.99-pre2 linux/include/linux/netfilter_ipv4/ip_nat_ftp.h

Next file: linux/include/linux/netfilter_ipv4/ip_nat_helper.h
Previous file: linux/include/linux/netfilter_ipv4/ip_nat_core.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre1/linux/include/linux/netfilter_ipv4/ip_nat_ftp.h linux/include/linux/netfilter_ipv4/ip_nat_ftp.h
@@ -0,0 +1,21 @@
+#ifndef _IP_NAT_FTP_H
+#define _IP_NAT_FTP_H
+/* FTP extension for TCP NAT alteration. */
+
+#ifndef __KERNEL__
+#error Only in kernel.
+#endif
+
+/* Protects ftp part of conntracks */
+DECLARE_LOCK_EXTERN(ip_ftp_lock);
+
+/* We keep track of where the last SYN correction was, and the SYN
+   offsets before and after that correction.  Two of these (indexed by
+   direction). */
+struct ip_nat_ftp_info
+{
+	u_int32_t syn_correction_pos;                              
+	int32_t syn_offset_before, syn_offset_after; 
+};
+
+#endif /* _IP_NAT_FTP_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)