![Herbert Xu](/assets/img/avatar_default.png)
With all the users of the double pointers removed, this patch mops up by finally replacing all occurances of sk_buff ** in the netfilter API by sk_buff *. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
29 lines
871 B
C
29 lines
871 B
C
#ifndef _NF_NAT_CORE_H
|
|
#define _NF_NAT_CORE_H
|
|
#include <linux/list.h>
|
|
#include <net/netfilter/nf_conntrack.h>
|
|
#include <net/netfilter/nf_nat.h>
|
|
|
|
/* This header used to share core functionality between the standalone
|
|
NAT module, and the compatibility layer's use of NAT for masquerading. */
|
|
|
|
extern unsigned int nf_nat_packet(struct nf_conn *ct,
|
|
enum ip_conntrack_info ctinfo,
|
|
unsigned int hooknum,
|
|
struct sk_buff *skb);
|
|
|
|
extern int nf_nat_icmp_reply_translation(struct nf_conn *ct,
|
|
enum ip_conntrack_info ctinfo,
|
|
unsigned int hooknum,
|
|
struct sk_buff *skb);
|
|
|
|
static inline int nf_nat_initialized(struct nf_conn *ct,
|
|
enum nf_nat_manip_type manip)
|
|
{
|
|
if (manip == IP_NAT_MANIP_SRC)
|
|
return test_bit(IPS_SRC_NAT_DONE_BIT, &ct->status);
|
|
else
|
|
return test_bit(IPS_DST_NAT_DONE_BIT, &ct->status);
|
|
}
|
|
#endif /* _NF_NAT_CORE_H */
|