summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorbrucec <brucec@FreeBSD.org>2010-11-09 10:59:09 +0000
committerbrucec <brucec@FreeBSD.org>2010-11-09 10:59:09 +0000
commit696c4e1f9bb4cd204d25faf22eb312c82fe3ad48 (patch)
treede27851d14573db38e387b4520440178ecc95fa9 /sys/netinet
parent95d0fe5a467ecc88abd03b0dc9f03c79ac39bc2a (diff)
downloadFreeBSD-src-696c4e1f9bb4cd204d25faf22eb312c82fe3ad48.zip
FreeBSD-src-696c4e1f9bb4cd204d25faf22eb312c82fe3ad48.tar.gz
Fix typos.
PR: bin/148894 Submitted by: olgeni
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/sctp.h14
-rw-r--r--sys/netinet/sctp_os_bsd.h4
-rw-r--r--sys/netinet/sctp_pcb.c32
-rw-r--r--sys/netinet/sctp_uio.h18
4 files changed, 34 insertions, 34 deletions
diff --git a/sys/netinet/sctp.h b/sys/netinet/sctp.h
index 1335e82..69473e2 100644
--- a/sys/netinet/sctp.h
+++ b/sys/netinet/sctp.h
@@ -108,7 +108,7 @@ struct sctp_paramhdr {
#define SCTP_MAX_BURST 0x00000019 /* rw */
/* assoc level context */
#define SCTP_CONTEXT 0x0000001a /* rw */
-/* explict EOR signalling */
+/* explicit EOR signalling */
#define SCTP_EXPLICIT_EOR 0x0000001b
#define SCTP_REUSE_PORT 0x0000001c /* rw */
#define SCTP_AUTH_DEACTIVATE_KEY 0x0000001d
@@ -131,9 +131,9 @@ struct sctp_paramhdr {
* Blocking I/O is enabled on any TCP type socket by default. For the UDP
* model if this is turned on then the socket buffer is shared for send
* resources amongst all associations. The default for the UDP model is that
- * is SS_NBIO is set. Which means all associations have a seperate send
+ * is SS_NBIO is set. Which means all associations have a separate send
* limit BUT they will NOT ever BLOCK instead you will get an error back
- * EAGAIN if you try to send to much. If you want the blocking symantics you
+ * EAGAIN if you try to send too much. If you want the blocking semantics you
* set this option at the cost of sharing one socket send buffer size amongst
* all associations. Peeled off sockets turn this option off and block. But
* since both TCP and peeled off sockets have only one assoc per socket this
@@ -141,7 +141,7 @@ struct sctp_paramhdr {
* model OR peeled off UDP model, but we do allow you to do so. You just use
* the normal syscall to toggle SS_NBIO the way you want.
*
- * Blocking I/O is controled by the SS_NBIO flag on the socket state so_state
+ * Blocking I/O is controlled by the SS_NBIO flag on the socket state so_state
* field.
*/
@@ -166,7 +166,7 @@ struct sctp_paramhdr {
/* Special hook for dynamically setting primary for all assoc's,
- * this is a write only option that requires root privledge.
+ * this is a write only option that requires root privilege.
*/
#define SCTP_SET_DYNAMIC_PRIMARY 0x00002001
@@ -181,7 +181,7 @@ struct sctp_paramhdr {
* to. The endpoint, before binding, may select
* the "default" VRF it is in by using a set socket
* option with SCTP_VRF_ID. This will also
- * get propegated to the default VRF. Once the
+ * get propagated to the default VRF. Once the
* endpoint binds an address then it CANNOT add
* additional VRF's to become a Multi-VRF endpoint.
*
@@ -308,7 +308,7 @@ struct sctp_paramhdr {
#define SCTP_CAUSE_UNSUPPORTED_HMACID 0x0105
/*
- * error cause parameters (user visisble)
+ * error cause parameters (user visible)
*/
struct sctp_error_cause {
uint16_t code;
diff --git a/sys/netinet/sctp_os_bsd.h b/sys/netinet/sctp_os_bsd.h
index 883d6dd..171c38e 100644
--- a/sys/netinet/sctp_os_bsd.h
+++ b/sys/netinet/sctp_os_bsd.h
@@ -316,7 +316,7 @@ typedef struct callout sctp_os_timer_t;
}
/* We make it so if you have up to 4 threads
- * writting based on the default size of
+ * writing based on the default size of
* the packet log 65 k, that would be
* 4 16k packets before we would hit
* a problem.
@@ -353,7 +353,7 @@ typedef struct callout sctp_os_timer_t;
/* For BSD this just accesses the M_PKTHDR length
* so it operates on an mbuf with hdr flag. Other
- * O/S's may have seperate packet header and mbuf
+ * O/S's may have separate packet header and mbuf
* chain pointers.. thus the macro.
*/
#define SCTP_HEADER_TO_CHAIN(m) (m)
diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c
index 6e32439..c5967ef 100644
--- a/sys/netinet/sctp_pcb.c
+++ b/sys/netinet/sctp_pcb.c
@@ -107,7 +107,7 @@ sctp_fill_pcbinfo(struct sctp_pcbinfo *spcb)
* ... +--ifa-> ifa -> ifa
* vrf
*
- * We keep these seperate lists since the SCTP subsystem will
+ * We keep these separate lists since the SCTP subsystem will
* point to these from its source address selection nets structure.
* When an address is deleted it does not happen right away on
* the SCTP side, it gets scheduled. What we do when a
@@ -191,7 +191,7 @@ sctp_find_ifn(void *ifn, uint32_t ifn_index)
struct sctp_ifnlist *hash_ifn_head;
/*
- * We assume the lock is held for the addresses if thats wrong
+ * We assume the lock is held for the addresses if that's wrong
* problems could occur :-)
*/
hash_ifn_head = &SCTP_BASE_INFO(vrf_ifn_hash)[(ifn_index & SCTP_BASE_INFO(vrf_ifn_hashmark))];
@@ -327,7 +327,7 @@ sctp_mark_ifa_addr_down(uint32_t vrf_id, struct sockaddr *addr,
len1 = strlen(if_name);
len2 = strlen(sctp_ifap->ifn_p->ifn_name);
if (len1 != len2) {
- SCTPDBG(SCTP_DEBUG_PCB4, "IFN of ifa names different lenght %d vs %d - ignored\n",
+ SCTPDBG(SCTP_DEBUG_PCB4, "IFN of ifa names different length %d vs %d - ignored\n",
len1, len2);
goto out;
}
@@ -380,7 +380,7 @@ sctp_mark_ifa_addr_up(uint32_t vrf_id, struct sockaddr *addr,
len1 = strlen(if_name);
len2 = strlen(sctp_ifap->ifn_p->ifn_name);
if (len1 != len2) {
- SCTPDBG(SCTP_DEBUG_PCB4, "IFN of ifa names different lenght %d vs %d - ignored\n",
+ SCTPDBG(SCTP_DEBUG_PCB4, "IFN of ifa names different length %d vs %d - ignored\n",
len1, len2);
goto out;
}
@@ -567,7 +567,7 @@ sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t ifn_index,
} else {
if (sctp_ifap->ifn_p) {
/*
- * The last IFN gets the address, removee
+ * The last IFN gets the address, remove
* the old one
*/
SCTPDBG(SCTP_DEBUG_PCB4, "Moving ifa %p from %s (0x%x) to %s (0x%x)\n",
@@ -1515,7 +1515,7 @@ sctp_endpoint_probe(struct sockaddr *nam, struct sctppcbhead *head,
int fnd;
/*
- * Endpoing probe expects that the INP_INFO is locked.
+ * Endpoint probe expects that the INP_INFO is locked.
*/
sin = NULL;
#ifdef INET6
@@ -1800,7 +1800,7 @@ sctp_pcb_findep(struct sockaddr *nam, int find_tcp_pool, int have_lock,
* endpoint is gone but there exists a connected socket for this guy
* yet. If so we can return the first one that we find. This may NOT
* be the correct one so the caller should be wary on the return
- * INP. Currently the onlyc caller that sets this flag is in bindx
+ * INP. Currently the only caller that sets this flag is in bindx
* where we are verifying that a user CAN bind the address. He
* either has bound it already, or someone else has, or its open to
* bind, so this is good enough.
@@ -2005,7 +2005,7 @@ sctp_findassoc_by_vtag(struct sockaddr *from, struct sockaddr *to, uint32_t vtag
}
if (remote_tag) {
/*
- * If we have both vtags thats all we match
+ * If we have both vtags that's all we match
* on
*/
if (stcb->asoc.peer_vtag == remote_tag) {
@@ -2183,7 +2183,7 @@ sctp_findassociation_addr(struct mbuf *m, int iphlen, int offset,
* association that is linked to an existing
* association that is under the TCP pool (i.e. no
* listener exists). The endpoint finding routine
- * will always find a listner before examining the
+ * will always find a listener before examining the
* TCP pool.
*/
if (inp->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL) {
@@ -3554,7 +3554,7 @@ sctp_inpcb_free(struct sctp_inpcb *inp, int immediate, int from)
SCTP_INP_INFO_WUNLOCK();
/*
* Now we release all locks. Since this INP cannot be found anymore
- * except possbily by the kill timer that might be running. We call
+ * except possibly by the kill timer that might be running. We call
* the drain function here. It should hit the case were it sees the
* ACTIVE flag cleared and exit out freeing us to proceed and
* destroy everything.
@@ -3716,7 +3716,7 @@ sctp_add_remote_addr(struct sctp_tcb *stcb, struct sockaddr *newaddr,
{
/*
* The following is redundant to the same lines in the
- * sctp_aloc_assoc() but is needed since other's call the add
+ * sctp_aloc_assoc() but is needed since others call the add
* address function
*/
struct sctp_nets *net, *netfirst;
@@ -4034,7 +4034,7 @@ sctp_add_remote_addr(struct sctp_tcb *stcb, struct sockaddr *newaddr,
(stcb->asoc.primary_destination)) {
/*
* first one on the list is NOT the primary sctp_cmpaddr()
- * is much more efficent if the primary is the first on the
+ * is much more efficient if the primary is the first on the
* list, make it so.
*/
TAILQ_REMOVE(&stcb->asoc.nets,
@@ -4176,7 +4176,7 @@ sctp_aloc_assoc(struct sctp_inpcb *inp, struct sockaddr *firstaddr,
if (inp->sctp_flags & SCTP_PCB_FLAGS_UNBOUND) {
/*
* If you have not performed a bind, then we need to do the
- * ephemerial bind for you.
+ * ephemeral bind for you.
*/
if ((err = sctp_inpcb_bind(inp->sctp_socket,
(struct sockaddr *)NULL,
@@ -5159,7 +5159,7 @@ sctp_free_assoc(struct sctp_inpcb *inp, struct sctp_tcb *stcb, int from_inpcbfre
SCTP_INP_RUNLOCK(inp);
/*
* This will start the kill timer (if we are the
- * lastone) since we hold an increment yet. But this
+ * last one) since we hold an increment yet. But this
* is the only safe way to do this since otherwise
* if the socket closes at the same time we are here
* we might collide in the cleanup.
@@ -6461,7 +6461,7 @@ sctp_set_primary_addr(struct sctp_tcb *stcb, struct sockaddr *sa,
if (net != stcb->asoc.primary_destination) {
/*
* first one on the list is NOT the primary
- * sctp_cmpaddr() is much more efficent if the
+ * sctp_cmpaddr() is much more efficient if the
* primary is the first on the list, make it so.
*/
TAILQ_REMOVE(&stcb->asoc.nets, stcb->asoc.primary_destination, sctp_next);
@@ -6676,7 +6676,7 @@ sctp_drain_mbufs(struct sctp_inpcb *inp, struct sctp_tcb *stcb)
}
/*
* Another issue, in un-setting the TSN's in the mapping array we
- * DID NOT adjust the higest_tsn marker. This will cause one of two
+ * DID NOT adjust the highest_tsn marker. This will cause one of two
* things to occur. It may cause us to do extra work in checking for
* our mapping array movement. More importantly it may cause us to
* SACK every datagram. This may not be a bad thing though since we
diff --git a/sys/netinet/sctp_uio.h b/sys/netinet/sctp_uio.h
index 1cd5465..c901521 100644
--- a/sys/netinet/sctp_uio.h
+++ b/sys/netinet/sctp_uio.h
@@ -80,7 +80,7 @@ struct sctp_initmsg {
/* We add 96 bytes to the size of sctp_sndrcvinfo.
* This makes the current structure 128 bytes long
* which is nicely 64 bit aligned but also has room
- * for us to add more and keep ABI compatability.
+ * for us to add more and keep ABI compatibility.
* For example, already we have the sctp_extrcvinfo
* when enabled which is 48 bytes.
*/
@@ -304,7 +304,7 @@ struct sctp_setadaptation {
uint32_t ssb_adaptation_ind;
};
-/* compatable old spelling */
+/* compatible old spelling */
struct sctp_adaption_event {
uint16_t sai_type;
uint16_t sai_flags;
@@ -396,7 +396,7 @@ union sctp_notification {
struct sctp_send_failed sn_send_failed;
struct sctp_shutdown_event sn_shutdown_event;
struct sctp_adaptation_event sn_adaptation_event;
- /* compatability same as above */
+ /* compatibility same as above */
struct sctp_adaption_event sn_adaption_event;
struct sctp_pdapi_event sn_pdapi_event;
struct sctp_authkey_event sn_auth_event;
@@ -417,7 +417,7 @@ union sctp_notification {
#define SCTP_AUTHENTICATION_EVENT 0x0008
#define SCTP_STREAM_RESET_EVENT 0x0009
#define SCTP_SENDER_DRY_EVENT 0x000a
-#define SCTP__NOTIFICATIONS_STOPPED_EVENT 0x000b /* we dont send this */
+#define SCTP__NOTIFICATIONS_STOPPED_EVENT 0x000b /* we don't send this */
/*
* socket option structs
*/
@@ -893,7 +893,7 @@ struct sctpstat {
uint32_t sctps_earlyfrstrid;
uint32_t sctps_earlyfrstrout;
uint32_t sctps_earlyfrstrtmr;
- /* otheres */
+ /* others */
uint32_t sctps_hdrops; /* packet shorter than header */
uint32_t sctps_badsum; /* checksum error */
uint32_t sctps_noport; /* no endpoint for port */
@@ -904,8 +904,8 @@ struct sctpstat {
* RTT window */
uint32_t sctps_markedretrans;
uint32_t sctps_naglesent; /* nagle allowed sending */
- uint32_t sctps_naglequeued; /* nagle does't allow sending */
- uint32_t sctps_maxburstqueued; /* max burst dosn't allow sending */
+ uint32_t sctps_naglequeued; /* nagle doesn't allow sending */
+ uint32_t sctps_maxburstqueued; /* max burst doesn't allow sending */
uint32_t sctps_ifnomemqueued; /* look ahead tells us no memory in
* interface ring buffer OR we had a
* send error and are queuing one
@@ -931,7 +931,7 @@ struct sctpstat {
uint32_t sctps_wu_sacks_sent; /* Window Update only sacks sent */
uint32_t sctps_sends_with_flags; /* number of sends with
* sinfo_flags !=0 */
- uint32_t sctps_sends_with_unord /* number of undordered sends */ ;
+ uint32_t sctps_sends_with_unord; /* number of unordered sends */
uint32_t sctps_sends_with_eof; /* number of sends with EOF flag set */
uint32_t sctps_sends_with_abort; /* number of sends with ABORT
* flag set */
@@ -943,7 +943,7 @@ struct sctpstat {
* with peek */
uint32_t sctps_cached_chk; /* Number of cached chunks used */
uint32_t sctps_cached_strmoq; /* Number of cached stream oq's used */
- uint32_t sctps_left_abandon; /* Number of unread message abandonded
+ uint32_t sctps_left_abandon; /* Number of unread messages abandoned
* by close */
uint32_t sctps_send_burst_avoid; /* Unused */
uint32_t sctps_send_cwnd_avoid; /* Send cwnd full avoidance, already
OpenPOWER on IntegriCloud