fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / include / linux / netfilter_ipv4 / ip_conntrack_ftp.h
index 5f06429..2129fc3 100644 (file)
@@ -2,12 +2,7 @@
 #define _IP_CONNTRACK_FTP_H
 /* FTP tracking. */
 
-#ifdef __KERNEL__
-
-#define FTP_PORT       21
-
-#endif /* __KERNEL__ */
-
+/* This enum is exposed to userspace */
 enum ip_ct_ftp_type
 {
        /* PORT command from client */
@@ -20,6 +15,10 @@ enum ip_ct_ftp_type
        IP_CT_FTP_EPSV,
 };
 
+#ifdef __KERNEL__
+
+#define FTP_PORT       21
+
 #define NUM_SEQ_TO_REMEMBER 2
 /* This structure exists only once per master */
 struct ip_ct_ftp_master {
@@ -40,4 +39,6 @@ extern unsigned int (*ip_nat_ftp_hook)(struct sk_buff **pskb,
                                       unsigned int matchlen,
                                       struct ip_conntrack_expect *exp,
                                       u32 *seq);
+#endif /* __KERNEL__ */
+
 #endif /* _IP_CONNTRACK_FTP_H */