4e77be4637
There are a mix of function prototypes with and without extern in the kernel sources. Standardize on not using extern for function prototypes. Function prototypes don't need to be written with extern. extern is assumed by the compiler. Its use is as unnecessary as using auto to declare automatic/local variables in a block. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
32 lines
888 B
C
32 lines
888 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. */
|
|
|
|
unsigned int nf_nat_packet(struct nf_conn *ct, enum ip_conntrack_info ctinfo,
|
|
unsigned int hooknum, struct sk_buff *skb);
|
|
|
|
int nf_xfrm_me_harder(struct sk_buff *skb, unsigned int family);
|
|
|
|
static inline int nf_nat_initialized(struct nf_conn *ct,
|
|
enum nf_nat_manip_type manip)
|
|
{
|
|
if (manip == NF_NAT_MANIP_SRC)
|
|
return ct->status & IPS_SRC_NAT_DONE;
|
|
else
|
|
return ct->status & IPS_DST_NAT_DONE;
|
|
}
|
|
|
|
struct nlattr;
|
|
|
|
extern int
|
|
(*nfnetlink_parse_nat_setup_hook)(struct nf_conn *ct,
|
|
enum nf_nat_manip_type manip,
|
|
const struct nlattr *attr);
|
|
|
|
#endif /* _NF_NAT_CORE_H */
|