GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / include / linux / netfilter / nf_conntrack_ftp.h
blob3e3aa08980c31f7bac7aca80ff3d473c25f4bdcc
1 #ifndef _NF_CONNTRACK_FTP_H
2 #define _NF_CONNTRACK_FTP_H
3 /* FTP tracking. */
5 /* This enum is exposed to userspace */
6 enum nf_ct_ftp_type {
7 /* PORT command from client */
8 NF_CT_FTP_PORT,
9 /* PASV response from server */
10 NF_CT_FTP_PASV,
11 /* EPRT command from client */
12 NF_CT_FTP_EPRT,
13 /* EPSV response from server */
14 NF_CT_FTP_EPSV,
17 #ifdef __KERNEL__
19 #define FTP_PORT 21
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 */