Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215478
b: refs/heads/master
c: 75f0a0f
h: refs/heads/master
v: v3
  • Loading branch information
Jan Engelhardt committed Oct 13, 2010
1 parent 6c4a5fa commit 4743a9f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 22 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: 243bf6e29eef642de0ff62f1ebf58bc2396d6d6e
refs/heads/master: 75f0a0fd787bfa3ea1a916ca632a5b9e0007cbb7
5 changes: 5 additions & 0 deletions trunk/include/linux/netfilter/x_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ struct xt_standard_target {
int verdict;
};

struct xt_error_target {
struct xt_entry_target target;
char errorname[XT_FUNCTION_MAXNAMELEN];
};

/* The argument to IPT_SO_GET_REVISION_*. Returns highest revision
* kernel supports, if >= revision. */
struct xt_get_revision {
Expand Down
10 changes: 3 additions & 7 deletions trunk/include/linux/netfilter_arp/arp_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#define ARPT_TABLE_MAXNAMELEN XT_TABLE_MAXNAMELEN
#define arpt_entry_target xt_entry_target
#define arpt_standard_target xt_standard_target
#define arpt_error_target xt_error_target
#define ARPT_CONTINUE XT_CONTINUE
#define ARPT_RETURN XT_RETURN
#define arpt_counters_info xt_counters_info
Expand Down Expand Up @@ -216,14 +217,9 @@ struct arpt_standard {
struct xt_standard_target target;
};

struct arpt_error_target {
struct xt_entry_target target;
char errorname[XT_FUNCTION_MAXNAMELEN];
};

struct arpt_error {
struct arpt_entry entry;
struct arpt_error_target target;
struct xt_error_target target;
};

#define ARPT_ENTRY_INIT(__size) \
Expand All @@ -244,7 +240,7 @@ struct arpt_error {
{ \
.entry = ARPT_ENTRY_INIT(sizeof(struct arpt_error)), \
.target = XT_TARGET_INIT(XT_ERROR_TARGET, \
sizeof(struct arpt_error_target)), \
sizeof(struct xt_error_target)), \
.target.errorname = "ERROR", \
}

Expand Down
10 changes: 3 additions & 7 deletions trunk/include/linux/netfilter_ipv4/ip_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#define ipt_entry_match xt_entry_match
#define ipt_entry_target xt_entry_target
#define ipt_standard_target xt_standard_target
#define ipt_error_target xt_error_target
#define ipt_counters xt_counters
#define IPT_CONTINUE XT_CONTINUE
#define IPT_RETURN XT_RETURN
Expand Down Expand Up @@ -247,14 +248,9 @@ struct ipt_standard {
struct xt_standard_target target;
};

struct ipt_error_target {
struct xt_entry_target target;
char errorname[XT_FUNCTION_MAXNAMELEN];
};

struct ipt_error {
struct ipt_entry entry;
struct ipt_error_target target;
struct xt_error_target target;
};

#define IPT_ENTRY_INIT(__size) \
Expand All @@ -275,7 +271,7 @@ struct ipt_error {
{ \
.entry = IPT_ENTRY_INIT(sizeof(struct ipt_error)), \
.target = XT_TARGET_INIT(XT_ERROR_TARGET, \
sizeof(struct ipt_error_target)), \
sizeof(struct xt_error_target)), \
.target.errorname = "ERROR", \
}

Expand Down
10 changes: 3 additions & 7 deletions trunk/include/linux/netfilter_ipv6/ip6_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#define ip6t_entry_match xt_entry_match
#define ip6t_entry_target xt_entry_target
#define ip6t_standard_target xt_standard_target
#define ip6t_error_target xt_error_target
#define ip6t_counters xt_counters
#define IP6T_CONTINUE XT_CONTINUE
#define IP6T_RETURN XT_RETURN
Expand Down Expand Up @@ -137,14 +138,9 @@ struct ip6t_standard {
struct xt_standard_target target;
};

struct ip6t_error_target {
struct xt_entry_target target;
char errorname[XT_FUNCTION_MAXNAMELEN];
};

struct ip6t_error {
struct ip6t_entry entry;
struct ip6t_error_target target;
struct xt_error_target target;
};

#define IP6T_ENTRY_INIT(__size) \
Expand All @@ -165,7 +161,7 @@ struct ip6t_error {
{ \
.entry = IP6T_ENTRY_INIT(sizeof(struct ip6t_error)), \
.target = XT_TARGET_INIT(XT_ERROR_TARGET, \
sizeof(struct ip6t_error_target)), \
sizeof(struct xt_error_target)), \
.target.errorname = "ERROR", \
}

Expand Down

0 comments on commit 4743a9f

Please sign in to comment.