[NETFILTER]: iptable_{filter,mangle}: more descriptive "happy cracking" message
authorPatrick McHardy <kaber@trash.net>
Thu, 10 May 2007 21:16:56 +0000 (14:16 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 11 May 2007 06:47:59 +0000 (23:47 -0700)
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/iptable_filter.c
net/ipv4/netfilter/iptable_mangle.c

index ea14979..4f51c1d 100644 (file)
@@ -81,7 +81,8 @@ ipt_local_out_hook(unsigned int hook,
        if ((*pskb)->len < sizeof(struct iphdr)
            || ip_hdrlen(*pskb) < sizeof(struct iphdr)) {
                if (net_ratelimit())
-                       printk("ipt_hook: happy cracking.\n");
+                       printk("iptable_filter: ignoring short SOCK_RAW "
+                              "packet.\n");
                return NF_ACCEPT;
        }
 
index c3827ba..902446f 100644 (file)
@@ -100,7 +100,8 @@ ipt_local_hook(unsigned int hook,
        if ((*pskb)->len < sizeof(struct iphdr)
            || ip_hdrlen(*pskb) < sizeof(struct iphdr)) {
                if (net_ratelimit())
-                       printk("ipt_hook: happy cracking.\n");
+                       printk("iptable_mangle: ignoring short SOCK_RAW "
+                              "packet.\n");
                return NF_ACCEPT;
        }