Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+14 -21
+5
include/linux/netfilter/x_tables.h
··· 66 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 74 /* The argument to IPT_SO_GET_REVISION_*. Returns highest revision 70 75 * kernel supports, if >= revision. */ 71 76 struct xt_get_revision {
+3 -7
include/linux/netfilter_arp/arp_tables.h
··· 26 26 #define ARPT_TABLE_MAXNAMELEN XT_TABLE_MAXNAMELEN 27 27 #define arpt_entry_target xt_entry_target 28 28 #define arpt_standard_target xt_standard_target 29 + #define arpt_error_target xt_error_target 29 30 #define ARPT_CONTINUE XT_CONTINUE 30 31 #define ARPT_RETURN XT_RETURN 31 32 #define arpt_counters_info xt_counters_info ··· 217 216 struct xt_standard_target target; 218 217 }; 219 218 220 - struct arpt_error_target { 221 - struct xt_entry_target target; 222 - char errorname[XT_FUNCTION_MAXNAMELEN]; 223 - }; 224 - 225 219 struct arpt_error { 226 220 struct arpt_entry entry; 227 - struct arpt_error_target target; 221 + struct xt_error_target target; 228 222 }; 229 223 230 224 #define ARPT_ENTRY_INIT(__size) \ ··· 240 244 { \ 241 245 .entry = ARPT_ENTRY_INIT(sizeof(struct arpt_error)), \ 242 246 .target = XT_TARGET_INIT(XT_ERROR_TARGET, \ 243 - sizeof(struct arpt_error_target)), \ 247 + sizeof(struct xt_error_target)), \ 244 248 .target.errorname = "ERROR", \ 245 249 } 246 250
+3 -7
include/linux/netfilter_ipv4/ip_tables.h
··· 37 37 #define ipt_entry_match xt_entry_match 38 38 #define ipt_entry_target xt_entry_target 39 39 #define ipt_standard_target xt_standard_target 40 + #define ipt_error_target xt_error_target 40 41 #define ipt_counters xt_counters 41 42 #define IPT_CONTINUE XT_CONTINUE 42 43 #define IPT_RETURN XT_RETURN ··· 248 247 struct xt_standard_target target; 249 248 }; 250 249 251 - struct ipt_error_target { 252 - struct xt_entry_target target; 253 - char errorname[XT_FUNCTION_MAXNAMELEN]; 254 - }; 255 - 256 250 struct ipt_error { 257 251 struct ipt_entry entry; 258 - struct ipt_error_target target; 252 + struct xt_error_target target; 259 253 }; 260 254 261 255 #define IPT_ENTRY_INIT(__size) \ ··· 271 275 { \ 272 276 .entry = IPT_ENTRY_INIT(sizeof(struct ipt_error)), \ 273 277 .target = XT_TARGET_INIT(XT_ERROR_TARGET, \ 274 - sizeof(struct ipt_error_target)), \ 278 + sizeof(struct xt_error_target)), \ 275 279 .target.errorname = "ERROR", \ 276 280 } 277 281
+3 -7
include/linux/netfilter_ipv6/ip6_tables.h
··· 37 37 #define ip6t_entry_match xt_entry_match 38 38 #define ip6t_entry_target xt_entry_target 39 39 #define ip6t_standard_target xt_standard_target 40 + #define ip6t_error_target xt_error_target 40 41 #define ip6t_counters xt_counters 41 42 #define IP6T_CONTINUE XT_CONTINUE 42 43 #define IP6T_RETURN XT_RETURN ··· 138 137 struct xt_standard_target target; 139 138 }; 140 139 141 - struct ip6t_error_target { 142 - struct xt_entry_target target; 143 - char errorname[XT_FUNCTION_MAXNAMELEN]; 144 - }; 145 - 146 140 struct ip6t_error { 147 141 struct ip6t_entry entry; 148 - struct ip6t_error_target target; 142 + struct xt_error_target target; 149 143 }; 150 144 151 145 #define IP6T_ENTRY_INIT(__size) \ ··· 161 165 { \ 162 166 .entry = IP6T_ENTRY_INIT(sizeof(struct ip6t_error)), \ 163 167 .target = XT_TARGET_INIT(XT_ERROR_TARGET, \ 164 - sizeof(struct ip6t_error_target)), \ 168 + sizeof(struct xt_error_target)), \ 165 169 .target.errorname = "ERROR", \ 166 170 } 167 171