From: Patrick McHardy Date: Tue, 18 Dec 2007 05:56:14 +0000 (-0800) Subject: [NETFILTER]: arp_tables: remove ipchains compat hack X-Git-Tag: MMI-PSA29.97-13-9~37648^2~1027 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=70f0bfcf6a24e259d51f62354f866f42f8a3d317;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [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 Signed-off-by: David S. Miller --- 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) if (copy_from_user(&tmp, user, sizeof(tmp)) != 0) return -EFAULT; - /* Hack: Causes ipchains to give correct error msg --RR */ - if (len != sizeof(tmp) + tmp.size) - return -ENOPROTOOPT; - /* overflow check */ if (tmp.num_counters >= INT_MAX / sizeof(struct xt_counters)) return -ENOMEM;