Skip to content

Commit b519f51

Browse files
authored
Fix typos (#652)
1 parent 0586533 commit b519f51

16 files changed

+65
-65
lines changed

Manual.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ When one-2-one hits qlimit abort. Default: 0
489489
The SACK frequency defines the number of packets that are awaited, before a SACK is sent. The default value is 2.
490490

491491
#### usrsctp_sysctl_set_sctp_delayed_sack_time_default()
492-
As a SACK (Selective Acknowlegment) is sent after every other packet, a timer is set to send a SACK in case another packet does not arrive in due time. The default value for this timer is 200ms.
492+
As a SACK (Selective Acknowledgment) is sent after every other packet, a timer is set to send a SACK in case another packet does not arrive in due time. The default value for this timer is 200ms.
493493

494494
#### usrsctp_sysctl_set_sctp_strict_sacks()
495495
TBD
@@ -703,7 +703,7 @@ sctp_max_chunks_on_queue | Default max chunks on queue per asoc | 512
703703
sctp_min_split_point | Minimum size when splitting a chunk | 2904
704704
sctp_chunkscale | Tunable for Scaling of number of chunks and messages | 10
705705
sctp_mbuf_threshold_count | Maximum number of small mbufs in a chain | 5
706-
sctp_heartbeat_interval_default | Deafult time between two Heartbeats | 30000ms
706+
sctp_heartbeat_interval_default | Default time between two Heartbeats | 30000ms
707707
sctp_pmtu_raise_time_default | Default PMTU raise timer | 600secs
708708
sctp_shutdown_guard_time_default | Default shutdown guard timer | 180secs
709709
sctp_secret_lifetime_default | Default secret lifetime | 3600secs
@@ -713,7 +713,7 @@ sctp_cmt_on_off | Turn CMT on or off. | 0
713713
sctp_cmt_use_dac | Use delayed acknowledgment for CMT | 0
714714
sctp_fr_max_burst_default | Default max burst for SCTP endpoints when fast retransmitting | 4
715715
sctp_auto_asconf | Enable SCTP Auto-ASCONF | 1
716-
sctp_multiple_asconfs | Enable SCTP Muliple-ASCONFs | 0
716+
sctp_multiple_asconfs | Enable SCTP Multiple-ASCONFs | 0
717717
sctp_asconf_auth_nochk | Disable SCTP ASCONF AUTH requirement | 0
718718
sctp_auth_disable | Disable SCTP AUTH function | 0
719719
sctp_nat_friendly | SCTP NAT friendly operation | 1

Manual.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ \subsubsection{usrsctp\_sysctl\_set\_sctp\_sack\_freq\_default()}
633633
The default value is 2.
634634

635635
\subsubsection{usrsctp\_sysctl\_set\_sctp\_delayed\_sack\_time\_default()}
636-
As a SACK (Selective Acknowlegment) is sent after every other packet, a timer is set to send a
636+
As a SACK (Selective Acknowledgment) is sent after every other packet, a timer is set to send a
637637
SACK in case another packet does not arrive in due time. The default value for this timer is
638638
200~ms.
639639

@@ -878,7 +878,7 @@ \subsubsection{usrsctp\_sysctl\_set\_sctp\_debug\_on()}
878878
%sctp\_chunkscale&Tunable for Scaling of number of chunks and&10\tabularnewline
879879
% &messages&\tabularnewline \hline
880880
%sctp\_mbuf\_threshold\_count&Maximum number of small mbufs in a chain&5\tabularnewline \hline
881-
%sctp\_heartbeat\_interval\_default&Deafult time between two Heartbeats&30000~ms\tabularnewline \hline
881+
%sctp\_heartbeat\_interval\_default&Default time between two Heartbeats&30000~ms\tabularnewline \hline
882882
%sctp\_pmtu\_raise\_time\_default&Default PMTU raise timer&600~secs\tabularnewline \hline
883883
%sctp\_shutdown\_guard\_time\_default&Default shutdown guard timer&180~secs\tabularnewline \hline
884884
%sctp\_secret\_lifetime\_default&Default secret lifetime&3600~secs \tabularnewline \hline
@@ -890,7 +890,7 @@ \subsubsection{usrsctp\_sysctl\_set\_sctp\_debug\_on()}
890890
%sctp\_fr\_max\_burst\_default&Default max burst for SCTP endpoints when &4\tabularnewline
891891
% &fast retransmitting&\tabularnewline \hline
892892
%sctp\_auto\_asconf&Enable SCTP Auto-ASCONF&1\tabularnewline \hline
893-
%sctp\_multiple\_asconfs&Enable SCTP Muliple-ASCONFs&0 \tabularnewline \hline
893+
%sctp\_multiple\_asconfs&Enable SCTP Multiple-ASCONFs&0 \tabularnewline \hline
894894
%sctp\_asconf\_auth\_nochk&Disable SCTP ASCONF AUTH requirement&0\tabularnewline \hline
895895
%sctp\_auth\_disable&Disable SCTP AUTH function&0\tabularnewline \hline
896896
%sctp\_nat\_friendly&SCTP NAT friendly operation&1\tabularnewline \hline

programs/rtcweb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ request_more_o_streams(struct peer_connection *pc)
309309
}
310310
memset(&sas, 0, sizeof(struct sctp_add_streams));
311311
sas.sas_instrms = 0;
312-
sas.sas_outstrms = (uint16_t)o_streams_needed; /* XXX eror handling */
312+
sas.sas_outstrms = (uint16_t)o_streams_needed; /* XXX error handling */
313313
if (usrsctp_setsockopt(pc->sock, IPPROTO_SCTP, SCTP_ADD_STREAMS, &sas, (socklen_t)sizeof(struct sctp_add_streams)) < 0) {
314314
perror("setsockopt");
315315
}

usrsctplib/netinet/sctp_asconf.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ sctp_path_check_and_react(struct sctp_tcb *stcb, struct sctp_ifa *newifa)
11321132
return;
11331133
}
11341134

1135-
/* Multiple local addresses exsist in the association. */
1135+
/* Multiple local addresses exist in the association. */
11361136
TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) {
11371137
/* clear any cached route and source address */
11381138
#if defined(__FreeBSD__) && !defined(__Userspace__)
@@ -1986,7 +1986,7 @@ sctp_addr_mgmt_assoc(struct sctp_inpcb *inp, struct sctp_tcb *stcb,
19861986

19871987
sin6 = &ifa->address.sin6;
19881988
if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) {
1989-
/* we skip unspecifed addresses */
1989+
/* we skip unspecified addresses */
19901990
return;
19911991
}
19921992
if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) {
@@ -2017,7 +2017,7 @@ sctp_addr_mgmt_assoc(struct sctp_inpcb *inp, struct sctp_tcb *stcb,
20172017

20182018
sin = &ifa->address.sin;
20192019
if (sin->sin_addr.s_addr == 0) {
2020-
/* we skip unspecifed addresses */
2020+
/* we skip unspecified addresses */
20212021
return;
20222022
}
20232023
if (stcb->asoc.scope.ipv4_local_scope == 0 &&
@@ -2172,7 +2172,7 @@ sctp_asconf_iterator_stcb(struct sctp_inpcb *inp, struct sctp_tcb *stcb,
21722172
}
21732173
sin6 = &ifa->address.sin6;
21742174
if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) {
2175-
/* we skip unspecifed addresses */
2175+
/* we skip unspecified addresses */
21762176
continue;
21772177
}
21782178
#if defined(__FreeBSD__) && !defined(__Userspace__)
@@ -2206,7 +2206,7 @@ sctp_asconf_iterator_stcb(struct sctp_inpcb *inp, struct sctp_tcb *stcb,
22062206

22072207
sin = &ifa->address.sin;
22082208
if (sin->sin_addr.s_addr == 0) {
2209-
/* we skip unspecifed addresses */
2209+
/* we skip unspecified addresses */
22102210
continue;
22112211
}
22122212
#if defined(__FreeBSD__) && !defined(__Userspace__)
@@ -2494,7 +2494,7 @@ sctp_find_valid_localaddr(struct sctp_tcb *stcb, int addr_locked)
24942494

24952495
sin = &sctp_ifa->address.sin;
24962496
if (sin->sin_addr.s_addr == 0) {
2497-
/* skip unspecifed addresses */
2497+
/* skip unspecified addresses */
24982498
continue;
24992499
}
25002500
#if defined(__FreeBSD__) && !defined(__Userspace__)
@@ -2528,7 +2528,7 @@ sctp_find_valid_localaddr(struct sctp_tcb *stcb, int addr_locked)
25282528

25292529
sin6 = &sctp_ifa->address.sin6;
25302530
if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) {
2531-
/* we skip unspecifed addresses */
2531+
/* we skip unspecified addresses */
25322532
continue;
25332533
}
25342534
#if defined(__FreeBSD__) && !defined(__Userspace__)

usrsctplib/netinet/sctp_bsd_addr.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ sctp_init_ifns_for_vrf(int vrfid)
448448
#if defined(INET6)
449449
if ((ifa->ifa_addr->sa_family == AF_INET6) &&
450450
IN6_IS_ADDR_UNSPECIFIED(&((struct sockaddr_in6 *)ifa->ifa_addr)->sin6_addr)) {
451-
/* skip unspecifed addresses */
451+
/* skip unspecified addresses */
452452
continue;
453453
}
454454
#endif
@@ -521,7 +521,7 @@ sctp_init_ifns_for_vrf(int vrfid)
521521
}
522522
if (ifa->ifa_addr->sa_family == AF_INET6) {
523523
if (IN6_IS_ADDR_UNSPECIFIED(&((struct sockaddr_in6 *)ifa->ifa_addr)->sin6_addr)) {
524-
/* skip unspecifed addresses */
524+
/* skip unspecified addresses */
525525
continue;
526526
}
527527
} else {
@@ -594,7 +594,7 @@ sctp_init_ifns_for_vrf(int vrfid)
594594
#ifdef INET6
595595
case AF_INET6:
596596
if (IN6_IS_ADDR_UNSPECIFIED(&((struct sockaddr_in6 *)ifa->ifa_addr)->sin6_addr)) {
597-
/* skip unspecifed addresses */
597+
/* skip unspecified addresses */
598598
continue;
599599
}
600600
break;
@@ -699,7 +699,7 @@ sctp_addr_change(struct ifaddr *ifa, int cmd)
699699
case AF_INET6:
700700
ifa_flags = ((struct in6_ifaddr *)ifa)->ia6_flags;
701701
if (IN6_IS_ADDR_UNSPECIFIED(&((struct sockaddr_in6 *)ifa->ifa_addr)->sin6_addr)) {
702-
/* skip unspecifed addresses */
702+
/* skip unspecified addresses */
703703
return;
704704
}
705705
break;

usrsctplib/netinet/sctp_cc_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@ sctp_cwnd_prepare_rtcc_net_for_sack(struct sctp_tcb *stcb SCTP_UNUSED,
14121412
struct sctp_nets *net)
14131413
{
14141414
if (net->cc_mod.rtcc.tls_needs_set > 0) {
1415-
/* We had a bw measurment going on */
1415+
/* We had a bw measurement going on */
14161416
struct timeval ltls;
14171417
SCTP_GETPTIME_TIMEVAL(&ltls);
14181418
timevalsub(&ltls, &net->cc_mod.rtcc.tls);

usrsctplib/netinet/sctp_indata.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ sctp_queue_data_to_stream(struct sctp_tcb *stcb,
514514
* with TSN 1? If the peer is doing some sort of funky TSN/SSN
515515
* assignment this could happen... and I don't see how this would be
516516
* a violation. So for now I am undecided an will leave the sort by
517-
* SSN alone. Maybe a hybred approach is the answer
517+
* SSN alone. Maybe a hybrid approach is the answer
518518
*
519519
*/
520520
struct sctp_queued_to_read *at;
@@ -993,7 +993,7 @@ sctp_inject_old_unordered_data(struct sctp_tcb *stcb,
993993
* we started the pd-api on the higher TSN (since
994994
* the equals part is a TSN failure it must be that).
995995
*
996-
* We are completly hosed in that case since I have
996+
* We are completely hosed in that case since I have
997997
* no way to recover. This really will only happen
998998
* if we can get more TSN's higher before the pd-api-point.
999999
*/
@@ -3401,7 +3401,7 @@ sctp_strike_gap_ack_chunks(struct sctp_tcb *stcb, struct sctp_association *asoc,
34013401
*/
34023402
if (tp1->whoTo && tp1->whoTo->saw_newack == 0) {
34033403
/*
3404-
* No new acks were receieved for data sent to this
3404+
* No new acks were received for data sent to this
34053405
* dest. Therefore, according to the SFR algo for
34063406
* CMT, no data sent to this dest can be marked for
34073407
* FR using this SACK.
@@ -3412,7 +3412,7 @@ sctp_strike_gap_ack_chunks(struct sctp_tcb *stcb, struct sctp_association *asoc,
34123412
tp1->whoTo->this_sack_highest_newack) &&
34133413
!(accum_moved && asoc->fast_retran_loss_recovery)) {
34143414
/*
3415-
* CMT: New acks were receieved for data sent to
3415+
* CMT: New acks were received for data sent to
34163416
* this dest. But no new acks were seen for data
34173417
* sent after tp1. Therefore, according to the SFR
34183418
* algo for CMT, tp1 cannot be marked for FR using
@@ -4470,7 +4470,7 @@ sctp_handle_sack(struct mbuf *m, int offset_seg, int offset_dup,
44704470
* old sack, if so discard. 2) If there is nothing left in the send
44714471
* queue (cum-ack is equal to last acked) then you have a duplicate
44724472
* too, update any rwnd change and verify no timers are running.
4473-
* then return. 3) Process any new consequtive data i.e. cum-ack
4473+
* then return. 3) Process any new consecutive data i.e. cum-ack
44744474
* moved process these first and note that it moved. 4) Process any
44754475
* sack blocks. 5) Drop any acked from the queue. 6) Check for any
44764476
* revoked blocks and mark. 7) Update the cwnd. 8) Nothing left,
@@ -4607,7 +4607,7 @@ sctp_handle_sack(struct mbuf *m, int offset_seg, int offset_dup,
46074607
* We init netAckSz and netAckSz2 to 0. These are used to track 2
46084608
* things. The total byte count acked is tracked in netAckSz AND
46094609
* netAck2 is used to track the total bytes acked that are un-
4610-
* amibguious and were never retransmitted. We track these on a per
4610+
* ambiguous and were never retransmitted. We track these on a per
46114611
* destination address basis.
46124612
*/
46134613
TAILQ_FOREACH(net, &asoc->nets, sctp_next) {

usrsctplib/netinet/sctp_input.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,7 +1766,7 @@ sctp_process_cookie_existing(struct mbuf *m, int iphlen, int offset,
17661766
* generator returned the same vtag when we
17671767
* first sent our INIT-ACK and when we later sent
17681768
* our INIT. The side with the seq numbers that are
1769-
* different will be the one that normnally would
1769+
* different will be the one that normally would
17701770
* have hit case C. This in effect "extends" our vtags
17711771
* in this collision case to be 64 bits. The same collision
17721772
* could occur aka you get both vtag and seq number the
@@ -2233,7 +2233,7 @@ sctp_process_cookie_new(struct mbuf *m, int iphlen, int offset,
22332233

22342234
/*
22352235
* now that we know the INIT/INIT-ACK are in place, create a new TCB
2236-
* and popluate
2236+
* and populate
22372237
*/
22382238

22392239
/*
@@ -4556,7 +4556,7 @@ sctp_handle_stream_reset(struct sctp_tcb *stcb, struct mbuf *m, int offset,
45564556
* Handle a router or endpoints report of a packet loss, there are two ways
45574557
* to handle this, either we get the whole packet and must disect it
45584558
* ourselves (possibly with truncation and or corruption) or it is a summary
4559-
* from a middle box that did the disectting for us.
4559+
* from a middle box that did the disecting for us.
45604560
*/
45614561
static void
45624562
sctp_handle_packet_dropped(struct sctp_pktdrop_chunk *cp,

usrsctplib/netinet/sctp_output.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,7 +1939,7 @@ sctp_is_address_in_scope(struct sctp_ifa *ifa,
19391939
/* ok to use deprecated addresses? */
19401940
sin6 = &ifa->address.sin6;
19411941
if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) {
1942-
/* skip unspecifed addresses */
1942+
/* skip unspecified addresses */
19431943
return (0);
19441944
}
19451945
if ( /* (local_scope == 0) && */
@@ -3399,7 +3399,7 @@ sctp_source_address_selection(struct sctp_inpcb *inp,
33993399
* have the best source.
34003400
* - If not we must rotate amongst the addresses.
34013401
*
3402-
* Cavets and issues
3402+
* Caveats and issues
34033403
*
34043404
* Do we need to pay attention to scope. We can have a private address
34053405
* or a global address we are sourcing or sending to. So if we draw
@@ -7555,7 +7555,7 @@ sctp_clean_up_datalist(struct sctp_tcb *stcb,
75557555
if (i > 0) {
75567556
/*
75577557
* Any chunk NOT 0 you zap the time chunk 0 gets
7558-
* zapped or set based on if a RTO measurment is
7558+
* zapped or set based on if a RTO measurement is
75597559
* needed.
75607560
*/
75617561
data_list[i]->do_rtt = 0;
@@ -7711,7 +7711,7 @@ sctp_can_we_split_this(struct sctp_tcb *stcb, uint32_t length,
77117711
}
77127712
if ((length <= space_left) ||
77137713
((length - space_left) < SCTP_BASE_SYSCTL(sctp_min_residual))) {
7714-
/* Sub-optimial residual don't split in non-eeor mode. */
7714+
/* Sub-optimal residual don't split in non-eeor mode. */
77157715
return (0);
77167716
}
77177717
/* If we reach here length is larger
@@ -7941,7 +7941,7 @@ sctp_move_to_outqueue(struct sctp_tcb *stcb,
79417941
* than the sp->length.
79427942
*/
79437943
#ifdef INVARIANTS
7944-
panic("Huh, freing tail? - TSNH");
7944+
panic("Huh, freeing tail? - TSNH");
79457945
#else
79467946
SCTP_PRINTF("Huh, freeing tail? - TSNH\n");
79477947
sp->tail_mbuf = sp->data = NULL;
@@ -8331,10 +8331,10 @@ sctp_med_chunk_output(struct sctp_inpcb *inp,
83318331
* - Service the stream queue that is next, moving any
83328332
* message (note I must get a complete message i.e. FIRST/MIDDLE and
83338333
* LAST to the out queue in one pass) and assigning TSN's. This
8334-
* only applys though if the peer does not support NDATA. For NDATA
8334+
* only applies though if the peer does not support NDATA. For NDATA
83358335
* chunks its ok to not send the entire message ;-)
83368336
* - Check to see if the cwnd/rwnd allows any output, if so we go ahead and
8337-
* fomulate and send the low level chunks. Making sure to combine
8337+
* formulate and send the low level chunks. Making sure to combine
83388338
* any control in the control chunk queue also.
83398339
*/
83408340
struct sctp_nets *net, *start_at, *sack_goes_to = NULL, *old_start_at = NULL;
@@ -8534,7 +8534,7 @@ sctp_med_chunk_output(struct sctp_inpcb *inp,
85348534
/* how much can we send? */
85358535
/* SCTPDBG("Examine for sending net:%x\n", (uint32_t)net); */
85368536
if (old_start_at && (old_start_at == net)) {
8537-
/* through list ocmpletely. */
8537+
/* through list completely. */
85388538
break;
85398539
}
85408540
tsns_sent = 0xa;
@@ -9238,7 +9238,7 @@ sctp_med_chunk_output(struct sctp_inpcb *inp,
92389238
SCTP_LTRACE_ERR_RET(inp, stcb, NULL, SCTP_FROM_SCTP_OUTPUT, ENOMEM);
92399239
return (ENOMEM);
92409240
}
9241-
/* upate our MTU size */
9241+
/* update our MTU size */
92429242
/* Do clear IP_DF ? */
92439243
if (chk->flags & CHUNK_FLAGS_FRAGMENT_OK) {
92449244
no_fragmentflg = 0;
@@ -10238,7 +10238,7 @@ sctp_chunk_retransmission(struct sctp_inpcb *inp,
1023810238
if (chk->flags & CHUNK_FLAGS_FRAGMENT_OK) {
1023910239
no_fragmentflg = 0;
1024010240
}
10241-
/* upate our MTU size */
10241+
/* update our MTU size */
1024210242
if (mtu > (chk->send_size + dmtu))
1024310243
mtu -= (chk->send_size + dmtu);
1024410244
else
@@ -10295,7 +10295,7 @@ sctp_chunk_retransmission(struct sctp_inpcb *inp,
1029510295
if (fwd->flags & CHUNK_FLAGS_FRAGMENT_OK) {
1029610296
no_fragmentflg = 0;
1029710297
}
10298-
/* upate our MTU size */
10298+
/* update our MTU size */
1029910299
if (mtu > (fwd->send_size + dmtu))
1030010300
mtu -= (fwd->send_size + dmtu);
1030110301
else
@@ -10510,7 +10510,7 @@ sctp_chunk_output(struct sctp_inpcb *inp,
1051010510
* FIRST/MIDDLE and LAST to the out queue in one pass) and assigning
1051110511
* TSN's
1051210512
* - Check to see if the cwnd/rwnd allows any output, if so we
10513-
* go ahead and fomulate and send the low level chunks. Making sure
10513+
* go ahead and formulate and send the low level chunks. Making sure
1051410514
* to combine any control in the control chunk queue also.
1051510515
*/
1051610516
struct sctp_association *asoc;
@@ -10571,7 +10571,7 @@ sctp_chunk_output(struct sctp_inpcb *inp,
1057110571
*/
1057210572
if (from_where == SCTP_OUTPUT_FROM_COOKIE_ACK) {
1057310573
/*-
10574-
* Special hook for handling cookiess discarded
10574+
* Special hook for handling cookies discarded
1057510575
* by peer that carried data. Send cookie-ack only
1057610576
* and then the next call with get the retran's.
1057710577
*/

usrsctplib/netinet/sctp_ss_functions.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ __FBSDID("$FreeBSD$");
4040

4141
/*
4242
* Default simple round-robin algorithm.
43-
* Just interates the streams in the order they appear.
43+
* Just iterates the streams in the order they appear.
4444
*/
4545

4646
static void
@@ -304,7 +304,7 @@ sctp_ss_default_is_user_msgs_incomplete(struct sctp_tcb *stcb SCTP_UNUSED, struc
304304

305305
/*
306306
* Real round-robin algorithm.
307-
* Always interates the streams in ascending order.
307+
* Always iterates the streams in ascending order.
308308
*/
309309
static void
310310
sctp_ss_rr_add(struct sctp_tcb *stcb, struct sctp_association *asoc,
@@ -336,7 +336,7 @@ sctp_ss_rr_add(struct sctp_tcb *stcb, struct sctp_association *asoc,
336336

337337
/*
338338
* Real round-robin per packet algorithm.
339-
* Always interates the streams in ascending order and
339+
* Always iterates the streams in ascending order and
340340
* only fills messages of the same stream in a packet.
341341
*/
342342
static struct sctp_stream_out *

0 commit comments

Comments
 (0)