]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[NETFILTER]: arp_tables: remove ipchains compat hack
authorPatrick McHardy <kaber@trash.net>
Tue, 18 Dec 2007 05:56:14 +0000 (21:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:58:45 +0000 (14:58 -0800)
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>
net/ipv4/netfilter/arp_tables.c

index fb4d77978ec3afd29bf8698fe9204691674261d8..cafb35ae28561b505e624a54c00e1ff6b12cbc4d 100644 (file)
@@ -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;