Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
nf_nat_helper.c File Reference
#include <linux/module.h>
#include <linux/gfp.h>
#include <linux/types.h>
#include <linux/skbuff.h>
#include <linux/tcp.h>
#include <linux/udp.h>
#include <net/tcp.h>
#include <net/netfilter/nf_conntrack.h>
#include <net/netfilter/nf_conntrack_helper.h>
#include <net/netfilter/nf_conntrack_ecache.h>
#include <net/netfilter/nf_conntrack_expect.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>

Go to the source code of this file.

Macros

#define DUMP_OFFSET(x)
 

Functions

s16 nf_nat_get_offset (const struct nf_conn *ct, enum ip_conntrack_dir dir, u32 seq)
 
void nf_nat_set_seq_adjust (struct nf_conn *ct, enum ip_conntrack_info ctinfo, __be32 seq, s16 off)
 
 EXPORT_SYMBOL_GPL (nf_nat_set_seq_adjust)
 
void nf_nat_tcp_seq_adjust (struct sk_buff *skb, struct nf_conn *ct, u32 ctinfo, int off)
 
 EXPORT_SYMBOL_GPL (nf_nat_tcp_seq_adjust)
 
int __nf_nat_mangle_tcp_packet (struct sk_buff *skb, struct nf_conn *ct, enum ip_conntrack_info ctinfo, unsigned int protoff, unsigned int match_offset, unsigned int match_len, const char *rep_buffer, unsigned int rep_len, bool adjust)
 
 EXPORT_SYMBOL (__nf_nat_mangle_tcp_packet)
 
int nf_nat_mangle_udp_packet (struct sk_buff *skb, struct nf_conn *ct, enum ip_conntrack_info ctinfo, unsigned int protoff, unsigned int match_offset, unsigned int match_len, const char *rep_buffer, unsigned int rep_len)
 
 EXPORT_SYMBOL (nf_nat_mangle_udp_packet)
 
int nf_nat_seq_adjust (struct sk_buff *skb, struct nf_conn *ct, enum ip_conntrack_info ctinfo, unsigned int protoff)
 
void nf_nat_follow_master (struct nf_conn *ct, struct nf_conntrack_expect *exp)
 
 EXPORT_SYMBOL (nf_nat_follow_master)
 

Macro Definition Documentation

#define DUMP_OFFSET (   x)
Value:
pr_debug("offset_before=%d, offset_after=%d, correction_pos=%u\n", \
x->offset_before, x->offset_after, x->correction_pos);

Definition at line 28 of file nf_nat_helper.c.

Function Documentation

int __nf_nat_mangle_tcp_packet ( struct sk_buff skb,
struct nf_conn ct,
enum ip_conntrack_info  ctinfo,
unsigned int  protoff,
unsigned int  match_offset,
unsigned int  match_len,
const char rep_buffer,
unsigned int  rep_len,
bool  adjust 
)

Definition at line 176 of file nf_nat_helper.c.

EXPORT_SYMBOL ( __nf_nat_mangle_tcp_packet  )
EXPORT_SYMBOL ( nf_nat_mangle_udp_packet  )
EXPORT_SYMBOL ( nf_nat_follow_master  )
EXPORT_SYMBOL_GPL ( nf_nat_set_seq_adjust  )
EXPORT_SYMBOL_GPL ( nf_nat_tcp_seq_adjust  )
void nf_nat_follow_master ( struct nf_conn ct,
struct nf_conntrack_expect exp 
)

Definition at line 414 of file nf_nat_helper.c.

s16 nf_nat_get_offset ( const struct nf_conn ct,
enum ip_conntrack_dir  dir,
u32  seq 
)

Definition at line 70 of file nf_nat_helper.c.

int nf_nat_mangle_udp_packet ( struct sk_buff skb,
struct nf_conn ct,
enum ip_conntrack_info  ctinfo,
unsigned int  protoff,
unsigned int  match_offset,
unsigned int  match_len,
const char rep_buffer,
unsigned int  rep_len 
)

Definition at line 230 of file nf_nat_helper.c.

int nf_nat_seq_adjust ( struct sk_buff skb,
struct nf_conn ct,
enum ip_conntrack_info  ctinfo,
unsigned int  protoff 
)

Definition at line 364 of file nf_nat_helper.c.

void nf_nat_set_seq_adjust ( struct nf_conn ct,
enum ip_conntrack_info  ctinfo,
__be32  seq,
s16  off 
)

Definition at line 144 of file nf_nat_helper.c.

void nf_nat_tcp_seq_adjust ( struct sk_buff skb,
struct nf_conn ct,
u32  ctinfo,
int  off 
)

Definition at line 155 of file nf_nat_helper.c.