Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nf_conntrack_ftp.h
Go to the documentation of this file.
1 #ifndef _NF_CONNTRACK_FTP_H
2 #define _NF_CONNTRACK_FTP_H
3 
5 
6 
7 #define FTP_PORT 21
8 
9 #define NF_CT_FTP_SEQ_PICKUP (1 << 0)
10 
11 #define NUM_SEQ_TO_REMEMBER 2
12 /* This structure exists only once per master */
14  /* Valid seq positions for cmd matching after newline */
16  /* 0 means seq_match_aft_nl not set */
18  /* pickup sequence tracking, useful for conntrackd */
20 };
21 
22 struct nf_conntrack_expect;
23 
24 /* For NAT to hook in when we find a packet which describes what other
25  * connection we should expect. */
26 extern unsigned int (*nf_nat_ftp_hook)(struct sk_buff *skb,
27  enum ip_conntrack_info ctinfo,
28  enum nf_ct_ftp_type type,
29  unsigned int protoff,
30  unsigned int matchoff,
31  unsigned int matchlen,
32  struct nf_conntrack_expect *exp);
33 #endif /* _NF_CONNTRACK_FTP_H */