-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 273503 b: refs/heads/master c: 8d83f63 h: refs/heads/master i: 273501: c0a22b5 273499: e250728 273495: 41c8c74 273487: 90afc46 273471: 681cf26 v: v3
- Loading branch information
Pablo Neira Ayuso
committed
Nov 1, 2011
1 parent
72019ed
commit 53deb99
Showing
5 changed files
with
62 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 0a9ee81349d90c6c85831f38118bf569c60a4d51 | ||
refs/heads/master: 8d83f63b19d45ba0898b97824afcc8e0b5c954cb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ header-y += ipt_ah.h | |
header-y += ipt_ecn.h | ||
header-y += ipt_realm.h | ||
header-y += ipt_ttl.h | ||
header-y += nf_nat.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#ifndef _LINUX_NF_NAT_H | ||
#define _LINUX_NF_NAT_H | ||
|
||
#include <linux/types.h> | ||
|
||
#define IP_NAT_RANGE_MAP_IPS 1 | ||
#define IP_NAT_RANGE_PROTO_SPECIFIED 2 | ||
#define IP_NAT_RANGE_PROTO_RANDOM 4 | ||
#define IP_NAT_RANGE_PERSISTENT 8 | ||
|
||
/* The protocol-specific manipulable parts of the tuple. */ | ||
union nf_conntrack_man_proto { | ||
/* Add other protocols here. */ | ||
__be16 all; | ||
|
||
struct { | ||
__be16 port; | ||
} tcp; | ||
struct { | ||
__be16 port; | ||
} udp; | ||
struct { | ||
__be16 id; | ||
} icmp; | ||
struct { | ||
__be16 port; | ||
} dccp; | ||
struct { | ||
__be16 port; | ||
} sctp; | ||
struct { | ||
__be16 key; /* GRE key is 32bit, PPtP only uses 16bit */ | ||
} gre; | ||
}; | ||
|
||
/* Single range specification. */ | ||
struct nf_nat_range { | ||
/* Set to OR of flags above. */ | ||
unsigned int flags; | ||
|
||
/* Inclusive: network order. */ | ||
__be32 min_ip, max_ip; | ||
|
||
/* Inclusive: network order */ | ||
union nf_conntrack_man_proto min, max; | ||
}; | ||
|
||
/* For backwards compat: don't use in modern code. */ | ||
struct nf_nat_multi_range_compat { | ||
unsigned int rangesize; /* Must be 1. */ | ||
|
||
/* hangs off end. */ | ||
struct nf_nat_range range[1]; | ||
}; | ||
|
||
#define nf_nat_multi_range nf_nat_multi_range_compat | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters