git: bbd018d0aaaf - stable/14 - ping(8): Fix typo in ping6.c

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Fri, 25 Oct 2024 15:58:45 UTC
The branch stable/14 has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=bbd018d0aaaf24148c5e23b23802fa7f3cec734e

commit bbd018d0aaaf24148c5e23b23802fa7f3cec734e
Author:     Hao-Yu Hou <howard.hou.fan@elsa.cs.nthu.edu.tw>
AuthorDate: 2023-12-30 09:59:27 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2024-10-25 15:57:05 +0000

    ping(8): Fix typo in ping6.c
    
    Line 703 & 863: kerel -> kernel
    Line 2110: resposne -> response
    
    Event:          Advanced UNIX Programming Course (Fall’23) at NTHU.
    Pull Request:   https://github.com/freebsd/freebsd-src/pull/967
    
    (cherry picked from commit e9866ce84f41bf8a5122713b027d1af05cbbb5b3)
---
 sbin/ping/ping6.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sbin/ping/ping6.c b/sbin/ping/ping6.c
index 10deb57ad6bc..afbaba33e4f7 100644
--- a/sbin/ping/ping6.c
+++ b/sbin/ping/ping6.c
@@ -713,7 +713,7 @@ ping6(int argc, char *argv[])
 	}
 
 	/*
-	 * let the kerel pass extension headers of incoming packets,
+	 * let the kernel pass extension headers of incoming packets,
 	 * for privileged socket options
 	 */
 	if ((options & F_VERBOSE) != 0) {
@@ -873,7 +873,7 @@ ping6(int argc, char *argv[])
     }
 #endif /*ICMP6_FILTER*/
 
-	/* let the kerel pass extension headers of incoming packets */
+	/* let the kernel pass extension headers of incoming packets */
 	if ((options & F_VERBOSE) != 0) {
 		int opton = 1;
 
@@ -2120,7 +2120,7 @@ pr_nodeaddr(struct icmp6_nodeinfo *ni, int nilen)
 
 	/*
 	 * In icmp-name-lookups 05 and later, TTL of each returned address
-	 * is contained in the resposne. We try to detect the version
+	 * is contained in the response. We try to detect the version
 	 * by the length of the data, but note that the detection algorithm
 	 * is incomplete. We assume the latest draft by default.
 	 */