summaryrefslogtreecommitdiffstats
path: root/net/ipv6/icmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/icmp.c')
-rw-r--r--net/ipv6/icmp.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c
index 62c1037d9e83..092934032077 100644
--- a/net/ipv6/icmp.c
+++ b/net/ipv6/icmp.c
@@ -338,7 +338,7 @@ static struct dst_entry *icmpv6_route_lookup(struct net *net,
338 * anycast. 338 * anycast.
339 */ 339 */
340 if (((struct rt6_info *)dst)->rt6i_flags & RTF_ANYCAST) { 340 if (((struct rt6_info *)dst)->rt6i_flags & RTF_ANYCAST) {
341 LIMIT_NETDEBUG(KERN_DEBUG "icmp6_send: acast source\n"); 341 net_dbg_ratelimited("icmp6_send: acast source\n");
342 dst_release(dst); 342 dst_release(dst);
343 return ERR_PTR(-EINVAL); 343 return ERR_PTR(-EINVAL);
344 } 344 }
@@ -452,7 +452,7 @@ static void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info)
452 * and anycast addresses will be checked later. 452 * and anycast addresses will be checked later.
453 */ 453 */
454 if ((addr_type == IPV6_ADDR_ANY) || (addr_type & IPV6_ADDR_MULTICAST)) { 454 if ((addr_type == IPV6_ADDR_ANY) || (addr_type & IPV6_ADDR_MULTICAST)) {
455 LIMIT_NETDEBUG(KERN_DEBUG "icmp6_send: addr_any/mcast source\n"); 455 net_dbg_ratelimited("icmp6_send: addr_any/mcast source\n");
456 return; 456 return;
457 } 457 }
458 458
@@ -460,7 +460,7 @@ static void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info)
460 * Never answer to a ICMP packet. 460 * Never answer to a ICMP packet.
461 */ 461 */
462 if (is_ineligible(skb)) { 462 if (is_ineligible(skb)) {
463 LIMIT_NETDEBUG(KERN_DEBUG "icmp6_send: no reply to icmp error\n"); 463 net_dbg_ratelimited("icmp6_send: no reply to icmp error\n");
464 return; 464 return;
465 } 465 }
466 466
@@ -509,7 +509,7 @@ static void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info)
509 len = skb->len - msg.offset; 509 len = skb->len - msg.offset;
510 len = min_t(unsigned int, len, IPV6_MIN_MTU - sizeof(struct ipv6hdr) - sizeof(struct icmp6hdr)); 510 len = min_t(unsigned int, len, IPV6_MIN_MTU - sizeof(struct ipv6hdr) - sizeof(struct icmp6hdr));
511 if (len < 0) { 511 if (len < 0) {
512 LIMIT_NETDEBUG(KERN_DEBUG "icmp: len problem\n"); 512 net_dbg_ratelimited("icmp: len problem\n");
513 goto out_dst_release; 513 goto out_dst_release;
514 } 514 }
515 515
@@ -706,9 +706,8 @@ static int icmpv6_rcv(struct sk_buff *skb)
706 daddr = &ipv6_hdr(skb)->daddr; 706 daddr = &ipv6_hdr(skb)->daddr;
707 707
708 if (skb_checksum_validate(skb, IPPROTO_ICMPV6, ip6_compute_pseudo)) { 708 if (skb_checksum_validate(skb, IPPROTO_ICMPV6, ip6_compute_pseudo)) {
709 LIMIT_NETDEBUG(KERN_DEBUG 709 net_dbg_ratelimited("ICMPv6 checksum failed [%pI6c > %pI6c]\n",
710 "ICMPv6 checksum failed [%pI6c > %pI6c]\n", 710 saddr, daddr);
711 saddr, daddr);
712 goto csum_error; 711 goto csum_error;
713 } 712 }
714 713
@@ -781,7 +780,7 @@ static int icmpv6_rcv(struct sk_buff *skb)
781 if (type & ICMPV6_INFOMSG_MASK) 780 if (type & ICMPV6_INFOMSG_MASK)
782 break; 781 break;
783 782
784 LIMIT_NETDEBUG(KERN_DEBUG "icmpv6: msg of unknown type\n"); 783 net_dbg_ratelimited("icmpv6: msg of unknown type\n");
785 784
786 /* 785 /*
787 * error of unknown type. 786 * error of unknown type.