projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1976312
)
[NETFILTER]: arp_tables: remove ipchains compat hack
author
Patrick McHardy
<kaber@trash.net>
Tue, 18 Dec 2007 05:56:14 +0000
(21:56 -0800)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/netfilter/arp_tables.c
b/net/ipv4/netfilter/arp_tables.c
index fb4d77978ec3afd29bf8698fe9204691674261d8..cafb35ae28561b505e624a54c00e1ff6b12cbc4d 100644
(file)
--- 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;