aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-12-18 00:56:14 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:58:45 -0500
commit70f0bfcf6a24e259d51f62354f866f42f8a3d317 (patch)
tree749df0e1f0f223c2cbf97f210dca4e44b5b3bf9c
parent197631201ec2833f50ac50e6aa7c8ee151e66dda (diff)
[NETFILTER]: arp_tables: remove ipchains compat hack
Remove compatiblity hack copied from ip_tables.c - ipchains didn't even support arp_tables :) Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/ipv4/netfilter/arp_tables.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/ipv4/netfilter/arp_tables.c b/net/ipv4/netfilter/arp_tables.c
index fb4d77978ec3..cafb35ae2856 100644
--- a/net/ipv4/netfilter/arp_tables.c
+++ b/net/ipv4/netfilter/arp_tables.c
@@ -784,10 +784,6 @@ static int do_replace(void __user *user, unsigned int len)
784 if (copy_from_user(&tmp, user, sizeof(tmp)) != 0) 784 if (copy_from_user(&tmp, user, sizeof(tmp)) != 0)
785 return -EFAULT; 785 return -EFAULT;
786 786
787 /* Hack: Causes ipchains to give correct error msg --RR */
788 if (len != sizeof(tmp) + tmp.size)
789 return -ENOPROTOOPT;
790
791 /* overflow check */ 787 /* overflow check */
792 if (tmp.num_counters >= INT_MAX / sizeof(struct xt_counters)) 788 if (tmp.num_counters >= INT_MAX / sizeof(struct xt_counters))
793 return -ENOMEM; 789 return -ENOMEM;