diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2010-10-13 10:37:45 -0400 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2010-10-13 12:00:50 -0400 |
commit | 75f0a0fd787bfa3ea1a916ca632a5b9e0007cbb7 (patch) | |
tree | 1928cb3401ead89d561e04d4d317422a0ed80283 | |
parent | 243bf6e29eef642de0ff62f1ebf58bc2396d6d6e (diff) |
netfilter: xtables: unify {ip,ip6,arp}t_error_target
Unification of struct *_error_target was forgotten in
v2.6.16-1689-g1e30a01.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
-rw-r--r-- | include/linux/netfilter/x_tables.h | 5 | ||||
-rw-r--r-- | include/linux/netfilter_arp/arp_tables.h | 10 | ||||
-rw-r--r-- | include/linux/netfilter_ipv4/ip_tables.h | 10 | ||||
-rw-r--r-- | include/linux/netfilter_ipv6/ip6_tables.h | 10 |
4 files changed, 14 insertions, 21 deletions
diff --git a/include/linux/netfilter/x_tables.h b/include/linux/netfilter/x_tables.h index 24e5d01d27d0..742bec051440 100644 --- a/include/linux/netfilter/x_tables.h +++ b/include/linux/netfilter/x_tables.h | |||
@@ -66,6 +66,11 @@ struct xt_standard_target { | |||
66 | int verdict; | 66 | int verdict; |
67 | }; | 67 | }; |
68 | 68 | ||
69 | struct xt_error_target { | ||
70 | struct xt_entry_target target; | ||
71 | char errorname[XT_FUNCTION_MAXNAMELEN]; | ||
72 | }; | ||
73 | |||
69 | /* The argument to IPT_SO_GET_REVISION_*. Returns highest revision | 74 | /* The argument to IPT_SO_GET_REVISION_*. Returns highest revision |
70 | * kernel supports, if >= revision. */ | 75 | * kernel supports, if >= revision. */ |
71 | struct xt_get_revision { | 76 | struct xt_get_revision { |
diff --git a/include/linux/netfilter_arp/arp_tables.h b/include/linux/netfilter_arp/arp_tables.h index 6e2341a811d6..f02d57436a34 100644 --- a/include/linux/netfilter_arp/arp_tables.h +++ b/include/linux/netfilter_arp/arp_tables.h | |||
@@ -26,6 +26,7 @@ | |||
26 | #define ARPT_TABLE_MAXNAMELEN XT_TABLE_MAXNAMELEN | 26 | #define ARPT_TABLE_MAXNAMELEN XT_TABLE_MAXNAMELEN |
27 | #define arpt_entry_target xt_entry_target | 27 | #define arpt_entry_target xt_entry_target |
28 | #define arpt_standard_target xt_standard_target | 28 | #define arpt_standard_target xt_standard_target |
29 | #define arpt_error_target xt_error_target | ||
29 | #define ARPT_CONTINUE XT_CONTINUE | 30 | #define ARPT_CONTINUE XT_CONTINUE |
30 | #define ARPT_RETURN XT_RETURN | 31 | #define ARPT_RETURN XT_RETURN |
31 | #define arpt_counters_info xt_counters_info | 32 | #define arpt_counters_info xt_counters_info |
@@ -216,14 +217,9 @@ struct arpt_standard { | |||
216 | struct xt_standard_target target; | 217 | struct xt_standard_target target; |
217 | }; | 218 | }; |
218 | 219 | ||
219 | struct arpt_error_target { | ||
220 | struct xt_entry_target target; | ||
221 | char errorname[XT_FUNCTION_MAXNAMELEN]; | ||
222 | }; | ||
223 | |||
224 | struct arpt_error { | 220 | struct arpt_error { |
225 | struct arpt_entry entry; | 221 | struct arpt_entry entry; |
226 | struct arpt_error_target target; | 222 | struct xt_error_target target; |
227 | }; | 223 | }; |
228 | 224 | ||
229 | #define ARPT_ENTRY_INIT(__size) \ | 225 | #define ARPT_ENTRY_INIT(__size) \ |
@@ -244,7 +240,7 @@ struct arpt_error { | |||
244 | { \ | 240 | { \ |
245 | .entry = ARPT_ENTRY_INIT(sizeof(struct arpt_error)), \ | 241 | .entry = ARPT_ENTRY_INIT(sizeof(struct arpt_error)), \ |
246 | .target = XT_TARGET_INIT(XT_ERROR_TARGET, \ | 242 | .target = XT_TARGET_INIT(XT_ERROR_TARGET, \ |
247 | sizeof(struct arpt_error_target)), \ | 243 | sizeof(struct xt_error_target)), \ |
248 | .target.errorname = "ERROR", \ | 244 | .target.errorname = "ERROR", \ |
249 | } | 245 | } |
250 | 246 | ||
diff --git a/include/linux/netfilter_ipv4/ip_tables.h b/include/linux/netfilter_ipv4/ip_tables.h index ee54b3b7e237..d0fef0a436f9 100644 --- a/include/linux/netfilter_ipv4/ip_tables.h +++ b/include/linux/netfilter_ipv4/ip_tables.h | |||
@@ -37,6 +37,7 @@ | |||
37 | #define ipt_entry_match xt_entry_match | 37 | #define ipt_entry_match xt_entry_match |
38 | #define ipt_entry_target xt_entry_target | 38 | #define ipt_entry_target xt_entry_target |
39 | #define ipt_standard_target xt_standard_target | 39 | #define ipt_standard_target xt_standard_target |
40 | #define ipt_error_target xt_error_target | ||
40 | #define ipt_counters xt_counters | 41 | #define ipt_counters xt_counters |
41 | #define IPT_CONTINUE XT_CONTINUE | 42 | #define IPT_CONTINUE XT_CONTINUE |
42 | #define IPT_RETURN XT_RETURN | 43 | #define IPT_RETURN XT_RETURN |
@@ -247,14 +248,9 @@ struct ipt_standard { | |||
247 | struct xt_standard_target target; | 248 | struct xt_standard_target target; |
248 | }; | 249 | }; |
249 | 250 | ||
250 | struct ipt_error_target { | ||
251 | struct xt_entry_target target; | ||
252 | char errorname[XT_FUNCTION_MAXNAMELEN]; | ||
253 | }; | ||
254 | |||
255 | struct ipt_error { | 251 | struct ipt_error { |
256 | struct ipt_entry entry; | 252 | struct ipt_entry entry; |
257 | struct ipt_error_target target; | 253 | struct xt_error_target target; |
258 | }; | 254 | }; |
259 | 255 | ||
260 | #define IPT_ENTRY_INIT(__size) \ | 256 | #define IPT_ENTRY_INIT(__size) \ |
@@ -275,7 +271,7 @@ struct ipt_error { | |||
275 | { \ | 271 | { \ |
276 | .entry = IPT_ENTRY_INIT(sizeof(struct ipt_error)), \ | 272 | .entry = IPT_ENTRY_INIT(sizeof(struct ipt_error)), \ |
277 | .target = XT_TARGET_INIT(XT_ERROR_TARGET, \ | 273 | .target = XT_TARGET_INIT(XT_ERROR_TARGET, \ |
278 | sizeof(struct ipt_error_target)), \ | 274 | sizeof(struct xt_error_target)), \ |
279 | .target.errorname = "ERROR", \ | 275 | .target.errorname = "ERROR", \ |
280 | } | 276 | } |
281 | 277 | ||
diff --git a/include/linux/netfilter_ipv6/ip6_tables.h b/include/linux/netfilter_ipv6/ip6_tables.h index ac2b411ea63a..dca11186e522 100644 --- a/include/linux/netfilter_ipv6/ip6_tables.h +++ b/include/linux/netfilter_ipv6/ip6_tables.h | |||
@@ -37,6 +37,7 @@ | |||
37 | #define ip6t_entry_match xt_entry_match | 37 | #define ip6t_entry_match xt_entry_match |
38 | #define ip6t_entry_target xt_entry_target | 38 | #define ip6t_entry_target xt_entry_target |
39 | #define ip6t_standard_target xt_standard_target | 39 | #define ip6t_standard_target xt_standard_target |
40 | #define ip6t_error_target xt_error_target | ||
40 | #define ip6t_counters xt_counters | 41 | #define ip6t_counters xt_counters |
41 | #define IP6T_CONTINUE XT_CONTINUE | 42 | #define IP6T_CONTINUE XT_CONTINUE |
42 | #define IP6T_RETURN XT_RETURN | 43 | #define IP6T_RETURN XT_RETURN |
@@ -137,14 +138,9 @@ struct ip6t_standard { | |||
137 | struct xt_standard_target target; | 138 | struct xt_standard_target target; |
138 | }; | 139 | }; |
139 | 140 | ||
140 | struct ip6t_error_target { | ||
141 | struct xt_entry_target target; | ||
142 | char errorname[XT_FUNCTION_MAXNAMELEN]; | ||
143 | }; | ||
144 | |||
145 | struct ip6t_error { | 141 | struct ip6t_error { |
146 | struct ip6t_entry entry; | 142 | struct ip6t_entry entry; |
147 | struct ip6t_error_target target; | 143 | struct xt_error_target target; |
148 | }; | 144 | }; |
149 | 145 | ||
150 | #define IP6T_ENTRY_INIT(__size) \ | 146 | #define IP6T_ENTRY_INIT(__size) \ |
@@ -165,7 +161,7 @@ struct ip6t_error { | |||
165 | { \ | 161 | { \ |
166 | .entry = IP6T_ENTRY_INIT(sizeof(struct ip6t_error)), \ | 162 | .entry = IP6T_ENTRY_INIT(sizeof(struct ip6t_error)), \ |
167 | .target = XT_TARGET_INIT(XT_ERROR_TARGET, \ | 163 | .target = XT_TARGET_INIT(XT_ERROR_TARGET, \ |
168 | sizeof(struct ip6t_error_target)), \ | 164 | sizeof(struct xt_error_target)), \ |
169 | .target.errorname = "ERROR", \ | 165 | .target.errorname = "ERROR", \ |
170 | } | 166 | } |
171 | 167 | ||