Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a176c1a authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[NETFILTER]: iptable_{filter,mangle}: more descriptive "happy cracking" message

parent 5d78a849
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -81,7 +81,8 @@ ipt_local_out_hook(unsigned int hook,
	if ((*pskb)->len < sizeof(struct iphdr)
	if ((*pskb)->len < sizeof(struct iphdr)
	    || ip_hdrlen(*pskb) < sizeof(struct iphdr)) {
	    || ip_hdrlen(*pskb) < sizeof(struct iphdr)) {
		if (net_ratelimit())
		if (net_ratelimit())
			printk("ipt_hook: happy cracking.\n");
			printk("iptable_filter: ignoring short SOCK_RAW "
			       "packet.\n");
		return NF_ACCEPT;
		return NF_ACCEPT;
	}
	}


+2 −1
Original line number Original line Diff line number Diff line
@@ -100,7 +100,8 @@ ipt_local_hook(unsigned int hook,
	if ((*pskb)->len < sizeof(struct iphdr)
	if ((*pskb)->len < sizeof(struct iphdr)
	    || ip_hdrlen(*pskb) < sizeof(struct iphdr)) {
	    || ip_hdrlen(*pskb) < sizeof(struct iphdr)) {
		if (net_ratelimit())
		if (net_ratelimit())
			printk("ipt_hook: happy cracking.\n");
			printk("iptable_mangle: ignoring short SOCK_RAW "
			       "packet.\n");
		return NF_ACCEPT;
		return NF_ACCEPT;
	}
	}