-
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: 66779 b: refs/heads/master c: b421995 h: refs/heads/master i: 66777: 6fccda8 66775: c40e7e0 v: v3
- Loading branch information
Herbert Xu
authored and
David S. Miller
committed
Oct 10, 2007
1 parent
5c839ef
commit 6b40757
Showing
6 changed files
with
385 additions
and
1 deletion.
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: ce1234d299f3823ea07019c0f7b7b0bcb81ee7a0 | ||
refs/heads/master: b4219952356baa162368f2f5dab6421a5dbc5e15 |
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,29 @@ | ||
#ifndef __LINUX_TC_NAT_H | ||
#define __LINUX_TC_NAT_H | ||
|
||
#include <linux/pkt_cls.h> | ||
#include <linux/types.h> | ||
|
||
#define TCA_ACT_NAT 9 | ||
|
||
enum | ||
{ | ||
TCA_NAT_UNSPEC, | ||
TCA_NAT_PARMS, | ||
TCA_NAT_TM, | ||
__TCA_NAT_MAX | ||
}; | ||
#define TCA_NAT_MAX (__TCA_NAT_MAX - 1) | ||
|
||
#define TCA_NAT_FLAG_EGRESS 1 | ||
|
||
struct tc_nat | ||
{ | ||
tc_gen; | ||
__be32 old_addr; | ||
__be32 new_addr; | ||
__be32 mask; | ||
__u32 flags; | ||
}; | ||
|
||
#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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef __NET_TC_NAT_H | ||
#define __NET_TC_NAT_H | ||
|
||
#include <linux/types.h> | ||
#include <net/act_api.h> | ||
|
||
struct tcf_nat { | ||
struct tcf_common common; | ||
|
||
__be32 old_addr; | ||
__be32 new_addr; | ||
__be32 mask; | ||
u32 flags; | ||
}; | ||
|
||
static inline struct tcf_nat *to_tcf_nat(struct tcf_common *pc) | ||
{ | ||
return container_of(pc, struct tcf_nat, common); | ||
} | ||
|
||
#endif /* __NET_TC_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
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
Oops, something went wrong.