net: cleanup include/linux
[deliverable/linux.git] / include / linux / netfilter / nf_conntrack_ftp.h
CommitLineData
9fb9cbb1
YK
1#ifndef _NF_CONNTRACK_FTP_H
2#define _NF_CONNTRACK_FTP_H
3/* FTP tracking. */
4
5/* This enum is exposed to userspace */
d94d9fee 6enum nf_ct_ftp_type {
9fb9cbb1 7 /* PORT command from client */
55a73324 8 NF_CT_FTP_PORT,
9fb9cbb1 9 /* PASV response from server */
55a73324 10 NF_CT_FTP_PASV,
9fb9cbb1 11 /* EPRT command from client */
55a73324 12 NF_CT_FTP_EPRT,
9fb9cbb1 13 /* EPSV response from server */
55a73324 14 NF_CT_FTP_EPSV,
9fb9cbb1
YK
15};
16
17#ifdef __KERNEL__
18
19#define FTP_PORT 21
20
21#define NUM_SEQ_TO_REMEMBER 2
22/* This structure exists only once per master */
55a73324 23struct nf_ct_ftp_master {
9fb9cbb1
YK
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];
28};
29
55a73324 30struct nf_conntrack_expect;
9fb9cbb1
YK
31
32/* For NAT to hook in when we find a packet which describes what other
33 * connection we should expect. */
3db05fea 34extern unsigned int (*nf_nat_ftp_hook)(struct sk_buff *skb,
9fb9cbb1 35 enum ip_conntrack_info ctinfo,
55a73324 36 enum nf_ct_ftp_type type,
9fb9cbb1
YK
37 unsigned int matchoff,
38 unsigned int matchlen,
25b86e05 39 struct nf_conntrack_expect *exp);
9fb9cbb1
YK
40#endif /* __KERNEL__ */
41
42#endif /* _NF_CONNTRACK_FTP_H */
This page took 0.681855 seconds and 5 git commands to generate.