[PATCH] icmp.c (4&6) cleanups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

This small patch to 2 5.64 corrects some typos in comments and message text
in ipv[46]/icmp.c and uses a #defined value in place of a constant in one place.

Please apply.

Thanks,
--
~Randy


patch_name:	net_icmp1.patch
patch_version:	2003-03-05.22:38:00
author:		Randy.Dunlap <rddunlap@osdl.org>
description:	ipv[46]/icmp.c cleanups
product:	Linux
product_versions: linux-2564
changelog:	_
URL:		_
requires:	_
conflicts:	_
maintainer:	davem@redhat.com, kuznet@ms2.inr.ac.ru
diffstat:	=
 net/ipv4/icmp.c |    2 +-
 net/ipv6/icmp.c |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)


diff -Naur ./net/ipv4/icmp.c%ICMP ./net/ipv4/icmp.c
--- ./net/ipv4/icmp.c%ICMP	Tue Mar  4 19:29:51 2003
+++ ./net/ipv4/icmp.c	Wed Mar  5 22:25:19 2003
@@ -116,7 +116,7 @@
 DEFINE_SNMP_STAT(struct icmp_mib, icmp_statistics);
 
 /* An array of errno for error messages from dest unreach. */
-/* RFC 1122: 3.2.2.1 States that NET_UNREACH, HOS_UNREACH and SR_FAIELD MUST be considered 'transient errs'. */
+/* RFC 1122: 3.2.2.1 States that NET_UNREACH, HOST_UNREACH and SR_FAILED MUST be considered 'transient errs'. */
 
 struct icmp_err icmp_err_convert[] = {
 	{
diff -Naur ./net/ipv6/icmp.c%ICMP ./net/ipv6/icmp.c
--- ./net/ipv6/icmp.c%ICMP	Tue Mar  4 19:29:04 2003
+++ ./net/ipv6/icmp.c	Wed Mar  5 22:30:57 2003
@@ -353,7 +353,7 @@
 	ip6_build_xmit(sk, icmpv6_getfrag, &msg, &fl, len, NULL, -1,
 		       MSG_DONTWAIT);
 	if (type >= ICMPV6_DEST_UNREACH && type <= ICMPV6_PARAMPROB)
-		ICMP6_STATS_PTR_BH(Icmp6OutDestUnreachs) [type-1]++;
+		ICMP6_STATS_PTR_BH(Icmp6OutDestUnreachs) [type-ICMPV6_DEST_UNREACH]++;
 	ICMP6_INC_STATS_BH(Icmp6OutMsgs);
 out:
 	icmpv6_xmit_unlock();
@@ -524,7 +524,7 @@
 		break;
 
 	case ICMPV6_ECHO_REPLY:
-		/* we coulnd't care less */
+		/* we couldn't care less */
 		break;
 
 	case ICMPV6_PKT_TOOBIG:
@@ -577,7 +577,7 @@
 
 	default:
 		if (net_ratelimit())
-			printk(KERN_DEBUG "icmpv6: msg of unkown type\n");
+			printk(KERN_DEBUG "icmpv6: msg of unknown type\n");
 
 		/* informational */
 		if (type & ICMPV6_INFOMSG_MASK)

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux