Fixes compilation of ipt_ACCOUNT.
Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Index: linux-2.6.21-rc5/net/ipv4/netfilter/ipt_ACCOUNT.c
===================================================================
--- linux-2.6.21-rc5.orig/net/ipv4/netfilter/ipt_ACCOUNT.c
+++ linux-2.6.21-rc5/net/ipv4/netfilter/ipt_ACCOUNT.c
@@ -1051,8 +1051,9 @@ static int ipt_acc_get_ctl(struct sock *
return ret;
}
-static struct ipt_target ipt_acc_reg = {
+static struct xt_target ipt_acc_reg = {
.name = "ACCOUNT",
+ .family = AF_INET,
.target = ipt_acc_target,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17)
.targetsize = sizeof(struct ipt_acc_info),
@@ -1106,7 +1107,7 @@ static int __init init(void)
goto error_cleanup;
}
- if (ipt_register_target(&ipt_acc_reg))
+ if (xt_register_target(&ipt_acc_reg))
goto error_cleanup;
return 0;
@@ -1124,7 +1125,7 @@ error_cleanup:
static void __exit fini(void)
{
- ipt_unregister_target(&ipt_acc_reg);
+ xt_unregister_target(&ipt_acc_reg);
nf_unregister_sockopt(&ipt_acc_sockopts);
|