summaryrefslogtreecommitdiffstats
path: root/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
diff options
context:
space:
mode:
authorPatrick McHardy2009-01-12 01:06:00 +0100
committerDavid S. Miller2009-01-13 06:18:33 +0100
commit88843104a19d5896bf67ab6bd685e976240dd04a (patch)
tree2a72e316b69d4c009ce55a9c216ac65218bc7554 /net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
parentnet: Fix a comment in include/linux/netdevice.h. (diff)
downloadkernel-qcow2-linux-88843104a19d5896bf67ab6bd685e976240dd04a.tar.gz
kernel-qcow2-linux-88843104a19d5896bf67ab6bd685e976240dd04a.tar.xz
kernel-qcow2-linux-88843104a19d5896bf67ab6bd685e976240dd04a.zip
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/nf_conntrack_l3proto_ipv4.c')
-rw-r--r--net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
index b2141e11575e..4beb04fac588 100644
--- a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
+++ b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
@@ -145,11 +145,8 @@ static unsigned int ipv4_conntrack_local(unsigned int hooknum,
{
/* root is playing with raw sockets. */
if (skb->len < sizeof(struct iphdr) ||
- ip_hdrlen(skb) < sizeof(struct iphdr)) {
- if (net_ratelimit())
- printk("ipt_hook: happy cracking.\n");
+ ip_hdrlen(skb) < sizeof(struct iphdr))
return NF_ACCEPT;
- }
return nf_conntrack_in(dev_net(out), PF_INET, hooknum, skb);
}