diff options
| author | andvar <andvar@NetBSD.org> | 2021-07-24 21:31:31 +0000 |
|---|---|---|
| committer | andvar <andvar@NetBSD.org> | 2021-07-24 21:31:31 +0000 |
| commit | 34d96f12a5fdba1d6c4bc8849a8a112061282bb9 (patch) | |
| tree | 95c5e86cc7cb63202b2510e8efd8af15569a3bb1 /sys/netinet | |
| parent | d4e6d16e2580353b9afef55c3be37b7a2fdf1383 (diff) | |
Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889.
Also fixed some additional typos in comments, found on review of same files or typos.
Diffstat (limited to 'sys/netinet')
| -rw-r--r-- | sys/netinet/sctp_output.c | 22 | ||||
| -rw-r--r-- | sys/netinet/sctputil.c | 8 |
2 files changed, 15 insertions, 15 deletions
diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c index 948a0dcdb42..8ee92bed8e3 100644 --- a/sys/netinet/sctp_output.c +++ b/sys/netinet/sctp_output.c @@ -1,4 +1,4 @@ -/* $NetBSD: sctp_output.c,v 1.22 2020/06/13 01:41:59 roy Exp $ */ +/* $NetBSD: sctp_output.c,v 1.23 2021/07/24 21:31:39 andvar Exp $ */ /* $KAME: sctp_output.c,v 1.48 2005/06/16 18:29:24 jinmei Exp $ */ /* @@ -30,7 +30,7 @@ * SUCH DAMAGE. */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sctp_output.c,v 1.22 2020/06/13 01:41:59 roy Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sctp_output.c,v 1.23 2021/07/24 21:31:39 andvar Exp $"); #ifdef _KERNEL_OPT #include "opt_ipsec.h" @@ -2187,7 +2187,7 @@ sctp_lowlevel_chunk_output(struct sctp_inpcb *inp, #endif /* * If source address selection fails and we find no route then - * the ip_ouput should fail as well with a NO_ROUTE_TO_HOST + * the ip_output should fail as well with a NO_ROUTE_TO_HOST * type error. We probably should catch that somewhere and * abort the association right away (assuming this is an INIT * being sent). @@ -8166,7 +8166,7 @@ static struct sctp_nets * sctp_select_hb_destination(struct sctp_tcb *stcb, struct timeval *now) { struct sctp_nets *net, *hnet; - int ms_goneby, highest_ms, state_overide=0; + int ms_goneby, highest_ms, state_override=0; SCTP_GETTIME_TIMEVAL(now); highest_ms = 0; @@ -8209,15 +8209,15 @@ sctp_select_hb_destination(struct sctp_tcb *stcb, struct timeval *now) #endif /* When the address state is unconfirmed but still considered reachable, we * HB at a higher rate. Once it goes confirmed OR reaches the "unreachable" - * state, thenw we cut it back to HB at a more normal pace. + * state, then we cut it back to HB at a more normal pace. */ if ((net->dest_state & (SCTP_ADDR_UNCONFIRMED|SCTP_ADDR_NOT_REACHABLE)) == SCTP_ADDR_UNCONFIRMED) { - state_overide = 1; + state_override = 1; } else { - state_overide = 0; + state_override = 0; } - if ((((unsigned int)ms_goneby >= net->RTO) || (state_overide)) && + if ((((unsigned int)ms_goneby >= net->RTO) || (state_override)) && (ms_goneby > highest_ms)) { highest_ms = ms_goneby; hnet = net; @@ -8231,12 +8231,12 @@ sctp_select_hb_destination(struct sctp_tcb *stcb, struct timeval *now) } if (hnet && ((hnet->dest_state & (SCTP_ADDR_UNCONFIRMED|SCTP_ADDR_NOT_REACHABLE)) == SCTP_ADDR_UNCONFIRMED)) { - state_overide = 1; + state_override = 1; } else { - state_overide = 0; + state_override = 0; } - if (highest_ms && (((unsigned int)highest_ms >= hnet->RTO) || state_overide)) { + if (highest_ms && (((unsigned int)highest_ms >= hnet->RTO) || state_override)) { /* Found the one with longest delay bounds * OR it is unconfirmed and still not marked * unreachable. diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index 1e8b475712b..86f7072124d 100644 --- a/sys/netinet/sctputil.c +++ b/sys/netinet/sctputil.c @@ -1,5 +1,5 @@ /* $KAME: sctputil.c,v 1.39 2005/06/16 20:54:06 jinmei Exp $ */ -/* $NetBSD: sctputil.c,v 1.16 2020/01/19 20:51:13 riastradh Exp $ */ +/* $NetBSD: sctputil.c,v 1.17 2021/07/24 21:31:39 andvar Exp $ */ /* * Copyright (c) 2001, 2002, 2003, 2004 Cisco Systems, Inc. @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sctputil.c,v 1.16 2020/01/19 20:51:13 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sctputil.c,v 1.17 2021/07/24 21:31:39 andvar Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -1268,7 +1268,7 @@ sctp_timer_start(int t_type, struct sctp_inpcb *inp, struct sctp_tcb *stcb, case SCTP_TIMER_TYPE_INPKILL: /* * The inp is setup to die. We re-use the - * signature_chage timer since that has + * signature_change timer since that has * stopped and we are in the GONE state. */ tmr = &inp->sctp_ep.signature_change; @@ -1456,7 +1456,7 @@ sctp_timer_stop(int t_type, struct sctp_inpcb *inp, struct sctp_tcb *stcb, case SCTP_TIMER_TYPE_INPKILL: /* * The inp is setup to die. We re-use the - * signature_chage timer since that has + * signature_change timer since that has * stopped and we are in the GONE state. */ tmr = &inp->sctp_ep.signature_change; |
