Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58977
b: refs/heads/master
c: 4ba8877
h: refs/heads/master
i:
  58975: f6bbea9
v: v3
  • Loading branch information
Yasuyuki Kozakai authored and David S. Miller committed Jul 11, 2007
1 parent 719269b commit e5e3245
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 23 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9f15c5302de4e8b0aac7ca24c36bf26a7fe1a513
refs/heads/master: 4ba887790ce2015e8c464809c0be902fb813ad15
23 changes: 1 addition & 22 deletions trunk/include/net/netfilter/ipv4/nf_conntrack_ipv4.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,8 @@
#ifndef _NF_CONNTRACK_IPV4_H
#define _NF_CONNTRACK_IPV4_H

#ifdef CONFIG_NF_NAT_NEEDED
#include <net/netfilter/nf_nat.h>
#include <linux/netfilter/nf_conntrack_pptp.h>

/* per conntrack: nat application helper private data */
union nf_conntrack_nat_help {
/* insert nat helper private data here */
struct nf_nat_pptp nat_pptp_info;
};

struct nf_conn_nat {
struct nf_nat_info info;
union nf_conntrack_nat_help help;
#if defined(CONFIG_IP_NF_TARGET_MASQUERADE) || \
defined(CONFIG_IP_NF_TARGET_MASQUERADE_MODULE)
int masq_index;
#endif
};
#endif /* CONFIG_NF_NAT_NEEDED */

/* Returns new sk_buff, or NULL */
struct sk_buff *
nf_ct_ipv4_ct_gather_frags(struct sk_buff *skb);
struct sk_buff *nf_ct_ipv4_ct_gather_frags(struct sk_buff *skb);

extern struct nf_conntrack_l4proto nf_conntrack_l4proto_tcp4;
extern struct nf_conntrack_l4proto nf_conntrack_l4proto_udp4;
Expand Down
1 change: 1 addition & 0 deletions trunk/include/net/netfilter/nf_conntrack.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ nf_conntrack_unregister_cache(u_int32_t features);
* nat: nf_conn .. nf_conn_nat, nf_conn .. nf_conn_nat .. nf_conn help
*/
#ifdef CONFIG_NF_NAT_NEEDED
#include <net/netfilter/nf_nat.h>
static inline struct nf_conn_nat *nfct_nat(const struct nf_conn *ct)
{
unsigned int offset = sizeof(struct nf_conn);
Expand Down
18 changes: 18 additions & 0 deletions trunk/include/net/netfilter/nf_nat.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ struct nf_nat_multi_range_compat

#ifdef __KERNEL__
#include <linux/list.h>
#include <linux/netfilter/nf_conntrack_pptp.h>

/* The structure embedded in the conntrack structure. */
struct nf_nat_info
Expand All @@ -59,6 +60,23 @@ struct nf_nat_info
struct nf_nat_seq seq[IP_CT_DIR_MAX];
};

/* per conntrack: nat application helper private data */
union nf_conntrack_nat_help
{
/* insert nat helper private data here */
struct nf_nat_pptp nat_pptp_info;
};

struct nf_conn_nat
{
struct nf_nat_info info;
union nf_conntrack_nat_help help;
#if defined(CONFIG_IP_NF_TARGET_MASQUERADE) || \
defined(CONFIG_IP_NF_TARGET_MASQUERADE_MODULE)
int masq_index;
#endif
};

struct nf_conn;

/* Set up the info structure to map into this range. */
Expand Down
1 change: 1 addition & 0 deletions trunk/include/net/netfilter/nf_nat_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#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. */
Expand Down

0 comments on commit e5e3245

Please sign in to comment.