patch-1.3.45 linux/net/ipv4/icmp.c

Next file: linux/CREDITS
Previous file: linux/mm/memory.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.44/linux/net/ipv4/icmp.c linux/net/ipv4/icmp.c
@@ -356,14 +356,14 @@
 			case ICMP_HOST_UNREACH:
 				break;
 			case ICMP_PROT_UNREACH:
-				printk("ICMP: %s:%d: protocol unreachable.\n",
+				printk(KERN_INFO "ICMP: %s:%d: protocol unreachable.\n",
 					in_ntoa(iph->daddr), ntohs(iph->protocol));
 				break;
 			case ICMP_PORT_UNREACH:
 				break;
 			case ICMP_FRAG_NEEDED:
 #ifdef CONFIG_NO_PATH_MTU_DISCOVERY
-				printk("ICMP: %s: fragmentation needed and DF set.\n",
+				printk(KERN_INFO "ICMP: %s: fragmentation needed and DF set.\n",
 								in_ntoa(iph->daddr));
 				break;
 #else
@@ -408,7 +408,7 @@
 			}
 #endif
 			case ICMP_SR_FAILED:
-				printk("ICMP: %s: Source Route Failed.\n", in_ntoa(iph->daddr));
+				printk(KERN_INFO "ICMP: %s: Source Route Failed.\n", in_ntoa(iph->daddr));
 				break;
 			default:
 				break;
@@ -483,7 +483,7 @@
 	/*
 	 *	We are a router. Routers should not respond to ICMP_REDIRECT messages.
 	 */
-	printk("icmp: ICMP redirect from %s on %s ignored.\n", in_ntoa(source), dev->name);
+	printk(KERN_INFO "icmp: ICMP redirect from %s on %s ignored.\n", in_ntoa(source), dev->name);
 #else	
 	switch(icmph->code & 7) 
 	{
@@ -511,12 +511,12 @@
 			 *	(not some confused thing sending our
 			 *	address)
 			 */
-			printk("ICMP redirect from %s\n", in_ntoa(source));
+			printk(KERN_INFO "ICMP redirect from %s\n", in_ntoa(source));
 			ip_rt_redirect(source, ip, icmph->un.gateway, dev);
 			break;
 		case ICMP_REDIR_NETTOS:
 		case ICMP_REDIR_HOSTTOS:
-			printk("ICMP: cannot handle TOS redirects yet!\n");
+			printk(KERN_INFO "ICMP: cannot handle TOS redirects yet!\n");
 			break;
 		default:
 			break;
@@ -648,7 +648,7 @@
 	{
 		/* Failed checksum! */
 		icmp_statistics.IcmpInErrors++;
-		printk("ICMP: failed checksum from %s!\n", in_ntoa(saddr));
+		printk(KERN_INFO "ICMP: failed checksum from %s!\n", in_ntoa(saddr));
 		kfree_skb(skb, FREE_READ);
 		return(0);
 	}


FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this