Commit 81a875bd authored by Maciej Soltysiak's avatar Maciej Soltysiak Committed by Hideaki Yoshifuji

[IPV4]: Be more verbose about invalid ICMPs sent to broadcast.

parent b98c36fe
......@@ -659,8 +659,12 @@ static void icmp_unreach(struct sk_buff *skb)
inet_addr_type(iph->daddr) == RTN_BROADCAST) {
if (net_ratelimit())
printk(KERN_WARNING "%u.%u.%u.%u sent an invalid ICMP "
"error to a broadcast.\n",
NIPQUAD(skb->nh.iph->saddr));
"type %u, code %u "
"error to a broadcast: %u.%u.%u.%u on %s\n",
NIPQUAD(iph->saddr),
icmph->type, icmph->code,
NIPQUAD(iph->daddr),
skb->dev->name);
goto out;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment