Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
nf_nat_core.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/timer.h>
#include <linux/skbuff.h>
#include <linux/gfp.h>
#include <net/xfrm.h>
#include <linux/jhash.h>
#include <linux/rtnetlink.h>
#include <net/netfilter/nf_conntrack.h>
#include <net/netfilter/nf_conntrack_core.h>
#include <net/netfilter/nf_nat.h>
#include <net/netfilter/nf_nat_l3proto.h>
#include <net/netfilter/nf_nat_l4proto.h>
#include <net/netfilter/nf_nat_core.h>
#include <net/netfilter/nf_nat_helper.h>
#include <net/netfilter/nf_conntrack_helper.h>
#include <net/netfilter/nf_conntrack_l3proto.h>
#include <net/netfilter/nf_conntrack_zones.h>
#include <linux/netfilter/nf_nat.h>

Go to the source code of this file.

Data Structures

struct  nf_nat_proto_clean
 

Functions

struct nf_nat_l3proto__nf_nat_l3proto_find (u8 family)
 
struct nf_nat_l4proto__nf_nat_l4proto_find (u8 family, u8 protonum)
 
 EXPORT_SYMBOL_GPL (__nf_nat_l4proto_find)
 
int nf_nat_used_tuple (const struct nf_conntrack_tuple *tuple, const struct nf_conn *ignored_conntrack)
 
 EXPORT_SYMBOL (nf_nat_used_tuple)
 
unsigned int nf_nat_setup_info (struct nf_conn *ct, const struct nf_nat_range *range, enum nf_nat_manip_type maniptype)
 
 EXPORT_SYMBOL (nf_nat_setup_info)
 
unsigned int nf_nat_packet (struct nf_conn *ct, enum ip_conntrack_info ctinfo, unsigned int hooknum, struct sk_buff *skb)
 
 EXPORT_SYMBOL_GPL (nf_nat_packet)
 
int nf_nat_l4proto_register (u8 l3proto, const struct nf_nat_l4proto *l4proto)
 
 EXPORT_SYMBOL_GPL (nf_nat_l4proto_register)
 
void nf_nat_l4proto_unregister (u8 l3proto, const struct nf_nat_l4proto *l4proto)
 
 EXPORT_SYMBOL_GPL (nf_nat_l4proto_unregister)
 
int nf_nat_l3proto_register (const struct nf_nat_l3proto *l3proto)
 
 EXPORT_SYMBOL_GPL (nf_nat_l3proto_register)
 
void nf_nat_l3proto_unregister (const struct nf_nat_l3proto *l3proto)
 
 EXPORT_SYMBOL_GPL (nf_nat_l3proto_unregister)
 
 MODULE_LICENSE ("GPL")
 
 module_init (nf_nat_init)
 
 module_exit (nf_nat_cleanup)
 

Function Documentation

struct nf_nat_l3proto* __nf_nat_l3proto_find ( u8  family)
read

Definition at line 42 of file nf_nat_core.c.

struct nf_nat_l4proto* __nf_nat_l4proto_find ( u8  family,
u8  protonum 
)
read

Definition at line 48 of file nf_nat_core.c.

EXPORT_SYMBOL ( nf_nat_used_tuple  )
EXPORT_SYMBOL ( nf_nat_setup_info  )
EXPORT_SYMBOL_GPL ( __nf_nat_l4proto_find  )
EXPORT_SYMBOL_GPL ( nf_nat_packet  )
EXPORT_SYMBOL_GPL ( nf_nat_l4proto_register  )
EXPORT_SYMBOL_GPL ( nf_nat_l4proto_unregister  )
EXPORT_SYMBOL_GPL ( nf_nat_l3proto_register  )
EXPORT_SYMBOL_GPL ( nf_nat_l3proto_unregister  )
module_exit ( nf_nat_cleanup  )
module_init ( nf_nat_init  )
MODULE_LICENSE ( "GPL"  )
int nf_nat_l3proto_register ( const struct nf_nat_l3proto l3proto)

Definition at line 597 of file nf_nat_core.c.

void nf_nat_l3proto_unregister ( const struct nf_nat_l3proto l3proto)

Definition at line 617 of file nf_nat_core.c.

int nf_nat_l4proto_register ( u8  l3proto,
const struct nf_nat_l4proto l4proto 
)

Definition at line 544 of file nf_nat_core.c.

void nf_nat_l4proto_unregister ( u8  l3proto,
const struct nf_nat_l4proto l4proto 
)

Definition at line 585 of file nf_nat_core.c.

unsigned int nf_nat_packet ( struct nf_conn ct,
enum ip_conntrack_info  ctinfo,
unsigned int  hooknum,
struct sk_buff skb 
)

Definition at line 431 of file nf_nat_core.c.

unsigned int nf_nat_setup_info ( struct nf_conn ct,
const struct nf_nat_range range,
enum nf_nat_manip_type  maniptype 
)

Definition at line 360 of file nf_nat_core.c.

int nf_nat_used_tuple ( const struct nf_conntrack_tuple tuple,
const struct nf_conn ignored_conntrack 
)

Definition at line 131 of file nf_nat_core.c.