aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon Bergling <gbe@FreeBSD.org>2024-04-18 14:17:10 +0000
committerGordon Bergling <gbe@FreeBSD.org>2024-04-21 07:33:02 +0000
commitbf2582cf15f5250b3cdf1ad405b0ff8ea9b83dd7 (patch)
treea61d002f1416414d2bdd7ad9c55ea61b947ba905
parente4d8fe76c5d4833d2ba5b889b8af3e0d2907a531 (diff)
netpfil: Fix typos in source code comments
- s/addres/address/ (cherry picked from commit 8ce3ef5f35fd4dc442b1a33605ca7d3132047faf)
-rw-r--r--sys/netpfil/ipfilter/netinet/ip_fil.h4
-rw-r--r--sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c2
-rw-r--r--sys/netpfil/pf/pf.c2
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 3db2b23512ef..7343fd079564 100644
--- a/sys/netpfil/ipfilter/netinet/ip_fil.h
+++ b/sys/netpfil/ipfilter/netinet/ip_fil.h
@@ -593,8 +593,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 b0b0a02afaf4..5fc234c5aca9 100644
--- a/sys/netpfil/pf/pf.c
+++ b/sys/netpfil/pf/pf.c
@@ -6154,7 +6154,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) {