include/linux/netfilter/nf_conntrack_ftp.h

Source file repositories/reference/linux-study-clean/include/linux/netfilter/nf_conntrack_ftp.h

File Facts

System
Linux kernel
Corpus path
include/linux/netfilter/nf_conntrack_ftp.h
Extension
.h
Size
1231 bytes
Lines
40
Domain
Core OS
Bucket
Core Kernel Interface
Inferred role
Core OS: implementation source
Status
source implementation candidate

Why This File Exists

Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.

Dependency Surface

Detected Declarations

Annotated Snippet

struct nf_ct_ftp_master {
	/* Valid seq positions for cmd matching after newline */
	u_int32_t seq_aft_nl[IP_CT_DIR_MAX][NUM_SEQ_TO_REMEMBER];
	/* 0 means seq_match_aft_nl not set */
	u_int16_t seq_aft_nl_num[IP_CT_DIR_MAX];
	/* pickup sequence tracking, useful for conntrackd */
	u_int16_t flags[IP_CT_DIR_MAX];
};

/* For NAT to hook in when we find a packet which describes what other
 * connection we should expect. */
typedef unsigned int
nf_nat_ftp_hook_fn(struct sk_buff *skb,
		   enum ip_conntrack_info ctinfo,
		   enum nf_ct_ftp_type type,
		   unsigned int protoff,
		   unsigned int matchoff,
		   unsigned int matchlen,
		   struct nf_conntrack_expect *exp);

extern nf_nat_ftp_hook_fn __rcu *nf_nat_ftp_hook;
#endif /* _NF_CONNTRACK_FTP_H */

Annotation

Implementation Notes