aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/netfilter/iptable_mangle.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2009-01-12 00:06:00 +0000
committerDavid S. Miller <davem@davemloft.net>2009-01-12 21:18:33 -0800
commit88843104a19d5896bf67ab6bd685e976240dd04a (patch)
tree2a72e316b69d4c009ce55a9c216ac65218bc7554 /net/ipv4/netfilter/iptable_mangle.c
parent985ebdb5ed54151eba734aa1b307460e8e4267ba (diff)
downloadlinux-88843104a19d5896bf67ab6bd685e976240dd04a.tar.gz
netfilter 01/09: remove "happy cracking" message
Don't spam logs for locally generated short packets. these can only be generated by root. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/netfilter/iptable_mangle.c')
-rw-r--r--net/ipv4/netfilter/iptable_mangle.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/net/ipv4/netfilter/iptable_mangle.c b/net/ipv4/netfilter/iptable_mangle.c
index 69f2c4287146a..3929d20b9e452 100644
--- a/net/ipv4/netfilter/iptable_mangle.c
+++ b/net/ipv4/netfilter/iptable_mangle.c
@@ -132,12 +132,8 @@ ipt_local_hook(unsigned int hook,
/* root is playing with raw sockets. */
if (skb->len < sizeof(struct iphdr)
- || ip_hdrlen(skb) < sizeof(struct iphdr)) {
- if (net_ratelimit())
- printk("iptable_mangle: ignoring short SOCK_RAW "
- "packet.\n");
+ || ip_hdrlen(skb) < sizeof(struct iphdr))
return NF_ACCEPT;
- }
/* Save things which could affect route */
mark = skb->mark;