⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nf_conntrack_core.h

📁 linux-2.6.15.6
💻 H
字号:
/* * This header is used to share core functionality between the * standalone connection tracking module, and the compatibility layer's use * of connection tracking. * * 16 Dec 2003: Yasuyuki Kozakai @USAGI <yasuyuki.kozakai@toshiba.co.jp> *	- generalize L3 protocol dependent part. * * Derived from include/linux/netfiter_ipv4/ip_conntrack_core.h */#ifndef _NF_CONNTRACK_CORE_H#define _NF_CONNTRACK_CORE_H#include <linux/netfilter.h>/* This header is used to share core functionality between the   standalone connection tracking module, and the compatibility layer's use   of connection tracking. */extern unsigned int nf_conntrack_in(int pf,				    unsigned int hooknum,				    struct sk_buff **pskb);extern int nf_conntrack_init(void);extern void nf_conntrack_cleanup(void);struct nf_conntrack_l3proto;extern struct nf_conntrack_l3proto *nf_ct_find_l3proto(u_int16_t pf);/* Like above, but you already have conntrack read lock. */extern struct nf_conntrack_l3proto *__nf_ct_find_l3proto(u_int16_t l3proto);struct nf_conntrack_protocol;extern intnf_ct_get_tuple(const struct sk_buff *skb,		unsigned int nhoff,		unsigned int dataoff,		u_int16_t l3num,		u_int8_t protonum,		struct nf_conntrack_tuple *tuple,		const struct nf_conntrack_l3proto *l3proto,		const struct nf_conntrack_protocol *protocol);extern intnf_ct_invert_tuple(struct nf_conntrack_tuple *inverse,		   const struct nf_conntrack_tuple *orig,		   const struct nf_conntrack_l3proto *l3proto,		   const struct nf_conntrack_protocol *protocol);/* Find a connection corresponding to a tuple. */extern struct nf_conntrack_tuple_hash *nf_conntrack_find_get(const struct nf_conntrack_tuple *tuple,		      const struct nf_conn *ignored_conntrack);extern int __nf_conntrack_confirm(struct sk_buff **pskb);/* Confirm a connection: returns NF_DROP if packet must be dropped. */static inline int nf_conntrack_confirm(struct sk_buff **pskb){	struct nf_conn *ct = (struct nf_conn *)(*pskb)->nfct;	int ret = NF_ACCEPT;	if (ct) {		if (!nf_ct_is_confirmed(ct))			ret = __nf_conntrack_confirm(pskb);		nf_ct_deliver_cached_events(ct);	}	return ret;}extern void __nf_conntrack_attach(struct sk_buff *nskb, struct sk_buff *skb);extern struct list_head *nf_conntrack_hash;extern struct list_head nf_conntrack_expect_list;extern rwlock_t nf_conntrack_lock ;#endif /* _NF_CONNTRACK_CORE_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -