1 #ifndef _NF_CONNTRACK_FTP_H
2 #define _NF_CONNTRACK_FTP_H
5 /* This enum is exposed to userspace */
7 /* PORT command from client */
9 /* PASV response from server */
11 /* EPRT command from client */
13 /* EPSV response from server */
21 #define NUM_SEQ_TO_REMEMBER 2
22 /* This structure exists only once per master */
23 struct nf_ct_ftp_master {
24 /* Valid seq positions for cmd matching after newline */
25 u_int32_t seq_aft_nl[IP_CT_DIR_MAX][NUM_SEQ_TO_REMEMBER];
26 /* 0 means seq_match_aft_nl not set */
27 int seq_aft_nl_num[IP_CT_DIR_MAX];
30 struct nf_conntrack_expect;
32 /* For NAT to hook in when we find a packet which describes what other
33 * connection we should expect. */
34 extern unsigned int (*nf_nat_ftp_hook)(struct sk_buff *skb,
35 enum ip_conntrack_info ctinfo,
36 enum nf_ct_ftp_type type,
37 unsigned int matchoff,
38 unsigned int matchlen,
39 struct nf_conntrack_expect *exp);
40 #endif /* __KERNEL__ */
42 #endif /* _NF_CONNTRACK_FTP_H */