git: 8ce3ef5f35fd - main - netpfil: Fix typos in source code comments

From: Gordon Bergling <gbe_at_FreeBSD.org>
Date: Thu, 18 Apr 2024 14:17:26 UTC
The branch main has been updated by gbe:

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

commit 8ce3ef5f35fd4dc442b1a33605ca7d3132047faf
Author:     Gordon Bergling <gbe@FreeBSD.org>
AuthorDate: 2024-04-18 14:17:10 +0000
Commit:     Gordon Bergling <gbe@FreeBSD.org>
CommitDate: 2024-04-18 14:17:10 +0000

    netpfil: Fix typos in source code comments
    
    - s/addres/address/
    
    MFC after:      3 days
---
 sys/netpfil/ipfilter/netinet/ip_fil.h     | 4 ++--
 sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c | 2 +-
 sys/netpfil/pf/pf.c                       | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys/netpfil/ipfilter/netinet/ip_fil.h b/sys/netpfil/ipfilter/netinet/ip_fil.h
index 909cdd8870e1..aa3d1de422db 100644
--- a/sys/netpfil/ipfilter/netinet/ip_fil.h
+++ b/sys/netpfil/ipfilter/netinet/ip_fil.h
@@ -591,8 +591,8 @@ typedef	struct	fripf	{
 	u_short		fri_icmp;
 
 	frtuc_t		fri_tuc;
-	fr_atypes_t	fri_satype;	/* addres type */
-	fr_atypes_t	fri_datype;	/* addres type */
+	fr_atypes_t	fri_satype;	/* address type */
+	fr_atypes_t	fri_datype;	/* address type */
 	int		fri_sifpidx;	/* doing dynamic addressing */
 	int		fri_difpidx;	/* index into fr_ifps[] to use when */
 } fripf_t;
diff --git a/sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c b/sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
index 8f1ee3d8d05f..3bc74247251a 100644
--- a/sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
+++ b/sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
@@ -1834,7 +1834,7 @@ ipf_p_ftp_epsv(ipf_ftp_softc_t *softf, fr_info_t *fin, ip_t *ip, nat_t *nat,
 		s++;
 
 	/*
-	 * As per RFC 2428, there are no addres components in the EPSV
+	 * As per RFC 2428, there are no address components in the EPSV
 	 * response.  So we'll go straight to getting the port.
 	 */
 	while (*s && ISDIGIT(*s)) {
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c
index 4cec0936539e..cbf5ebfc0e56 100644
--- a/sys/netpfil/pf/pf.c
+++ b/sys/netpfil/pf/pf.c
@@ -6196,7 +6196,7 @@ again:
 				break;
 			}
 
-			/* Only add the addres if we've actually allowed the state. */
+			/* Only add the address if we've actually allowed the state. */
 			pf_sctp_multihome_add_addr(pd, &j->src, v_tag);
 
 			if (! do_extra) {