2012-06-19 00:10:57 +00:00
|
|
|
#ifndef _NET_NFNL_QUEUE_H_
|
|
|
|
#define _NET_NFNL_QUEUE_H_
|
|
|
|
|
|
|
|
#include <linux/netfilter/nf_conntrack_common.h>
|
|
|
|
|
|
|
|
struct nf_conn;
|
|
|
|
|
2012-06-19 03:25:46 +00:00
|
|
|
#ifdef CONFIG_NETFILTER_NETLINK_QUEUE_CT
|
2012-06-19 00:10:57 +00:00
|
|
|
struct nf_conn *nfqnl_ct_get(struct sk_buff *entskb, size_t *size,
|
|
|
|
enum ip_conntrack_info *ctinfo);
|
|
|
|
struct nf_conn *nfqnl_ct_parse(const struct sk_buff *skb,
|
|
|
|
const struct nlattr *attr,
|
|
|
|
enum ip_conntrack_info *ctinfo);
|
|
|
|
int nfqnl_ct_put(struct sk_buff *skb, struct nf_conn *ct,
|
|
|
|
enum ip_conntrack_info ctinfo);
|
|
|
|
void nfqnl_ct_seq_adjust(struct sk_buff *skb, struct nf_conn *ct,
|
|
|
|
enum ip_conntrack_info ctinfo, int diff);
|
2013-08-07 16:13:20 +00:00
|
|
|
int nfqnl_attach_expect(struct nf_conn *ct, const struct nlattr *attr,
|
|
|
|
u32 portid, u32 report);
|
2012-06-19 00:10:57 +00:00
|
|
|
#else
|
|
|
|
inline struct nf_conn *
|
|
|
|
nfqnl_ct_get(struct sk_buff *entskb, size_t *size, enum ip_conntrack_info *ctinfo)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline struct nf_conn *nfqnl_ct_parse(const struct sk_buff *skb,
|
|
|
|
const struct nlattr *attr,
|
|
|
|
enum ip_conntrack_info *ctinfo)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline int
|
|
|
|
nfqnl_ct_put(struct sk_buff *skb, struct nf_conn *ct, enum ip_conntrack_info ctinfo)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void nfqnl_ct_seq_adjust(struct sk_buff *skb, struct nf_conn *ct,
|
|
|
|
enum ip_conntrack_info ctinfo, int diff)
|
|
|
|
{
|
|
|
|
}
|
2013-08-07 16:13:20 +00:00
|
|
|
|
|
|
|
inline int nfqnl_attach_expect(struct nf_conn *ct, const struct nlattr *attr,
|
|
|
|
u32 portid, u32 report)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2012-06-19 00:10:57 +00:00
|
|
|
#endif /* NF_CONNTRACK */
|
|
|
|
#endif
|