From 33237419c1f603e71f56f6cee838312520b7b3c1 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Thu, 18 Sep 2014 21:15:13 +0200 Subject: [PATCH] Parts of patch #8397 Typos corrected in comments and text outputs --- src/api/api_lib.c | 4 ++-- src/api/netbuf.c | 2 +- src/api/sockets.c | 12 ++++++------ src/core/dhcp.c | 2 +- src/core/dns.c | 4 ++-- src/core/inet_chksum.c | 8 ++++---- src/core/ipv4/autoip.c | 4 ++-- src/core/ipv4/icmp.c | 4 ++-- src/core/ipv4/igmp.c | 2 +- src/core/ipv4/ip4.c | 4 ++-- src/core/ipv4/ip4_addr.c | 6 +++--- src/core/ipv4/ip_frag.c | 2 +- src/core/ipv6/ip6_addr.c | 4 ++-- src/core/ipv6/ip6_frag.c | 4 ++-- src/core/ipv6/nd6.c | 2 +- src/core/mem.c | 4 ++-- src/core/pbuf.c | 14 +++++++------- src/core/raw.c | 2 +- src/core/snmp/asn1_dec.c | 14 +++++++------- src/core/snmp/asn1_enc.c | 12 ++++++------ src/core/snmp/msg_in.c | 10 +++++----- src/core/snmp/msg_out.c | 8 ++++---- src/core/tcp.c | 12 ++++++------ src/core/tcp_in.c | 10 +++++----- src/core/timers.c | 2 +- src/core/udp.c | 12 ++++++------ src/include/lwip/api.h | 2 +- src/include/lwip/dhcp.h | 2 +- src/include/lwip/netdb.h | 2 +- src/include/lwip/opt.h | 20 ++++++++++---------- src/include/lwip/snmp_structs.h | 2 +- src/include/lwip/sockets.h | 2 +- src/include/lwip/sys.h | 8 ++++---- src/include/lwip/tcp.h | 2 +- src/include/lwip/tcp_impl.h | 4 ++-- src/include/lwip/udp.h | 2 +- src/include/netif/slipif.h | 2 +- src/netif/etharp.c | 8 ++++---- src/netif/ethernetif.c | 2 +- src/netif/ppp/vj.c | 2 +- src/netif/slipif.c | 6 +++--- 41 files changed, 115 insertions(+), 115 deletions(-) diff --git a/src/api/api_lib.c b/src/api/api_lib.c index 96453b57..8c7226fa 100644 --- a/src/api/api_lib.c +++ b/src/api/api_lib.c @@ -644,7 +644,7 @@ netconn_send(struct netconn *conn, struct netbuf *buf) * @param apiflags combination of following flags : * - NETCONN_COPY: data will be copied into memory belonging to the stack * - NETCONN_MORE: for TCP connection, PSH flag will be set on last segment sent - * - NETCONN_DONTBLOCK: only write the data if all dat can be written at once + * - NETCONN_DONTBLOCK: only write the data if all data can be written at once * @param bytes_written pointer to a location that receives the number of written bytes * @return ERR_OK if data was sent, any other err_t on error */ @@ -708,7 +708,7 @@ netconn_write_partly(struct netconn *conn, const void *dataptr, size_t size, } /** - * Close ot shutdown a TCP netconn (doesn't delete it). + * Close or shutdown a TCP netconn (doesn't delete it). * * @param conn the TCP netconn to close or shutdown * @param how fully close or only shutdown one side? diff --git a/src/api/netbuf.c b/src/api/netbuf.c index 0ccd2bce..4a417b0a 100644 --- a/src/api/netbuf.c +++ b/src/api/netbuf.c @@ -186,7 +186,7 @@ netbuf_chain(struct netbuf *head, struct netbuf *tail) * @param buf netbuf to get the data from * @param dataptr pointer to a void pointer where to store the data pointer * @param len pointer to an u16_t where the length of the data is stored - * @return ERR_OK if the information was retreived, + * @return ERR_OK if the information was retrieved, * ERR_BUF on error. */ err_t diff --git a/src/api/sockets.c b/src/api/sockets.c index 14718170..9c4933f3 100644 --- a/src/api/sockets.c +++ b/src/api/sockets.c @@ -236,7 +236,7 @@ static const int err_to_errno_table[] = { set_errno(sk->err); \ } while (0) -/* Forward delcaration of some functions */ +/* Forward declaration of some functions */ static void event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len); static void lwip_getsockopt_internal(void *arg); static void lwip_setsockopt_internal(void *arg); @@ -483,7 +483,7 @@ lwip_bind(int s, const struct sockaddr *name, socklen_t namelen) return -1; } - /* check size, familiy and alignment of 'name' */ + /* check size, family and alignment of 'name' */ LWIP_ERROR("lwip_bind: invalid address", (IS_SOCK_ADDR_LEN_VALID(namelen) && IS_SOCK_ADDR_TYPE_VALID(name) && IS_SOCK_ADDR_ALIGNED(name)), sock_set_errno(sock, err_to_errno(ERR_ARG)); return -1;); @@ -558,7 +558,7 @@ lwip_connect(int s, const struct sockaddr *name, socklen_t namelen) ipX_addr_t remote_addr; u16_t remote_port; - /* check size, familiy and alignment of 'name' */ + /* check size, family and alignment of 'name' */ LWIP_ERROR("lwip_connect: invalid address", IS_SOCK_ADDR_LEN_VALID(namelen) && IS_SOCK_ADDR_TYPE_VALID_OR_UNSPEC(name) && IS_SOCK_ADDR_ALIGNED(name), sock_set_errno(sock, err_to_errno(ERR_ARG)); return -1;); @@ -1232,7 +1232,7 @@ lwip_select(int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset, } /* Call lwip_selscan again: there could have been events between - the last scan (whithout us on the list) and putting us on the list! */ + the last scan (without us on the list) and putting us on the list! */ nready = lwip_selscan(maxfdp1, readset, writeset, exceptset, &lreadset, &lwriteset, &lexceptset); if (!nready) { /* Still none ready, just wait to be woken */ @@ -1409,7 +1409,7 @@ again: if (do_signal) { scb->sem_signalled = 1; /* Don't call SYS_ARCH_UNPROTECT() before signaling the semaphore, as this might - lead to the select thread taking itself off the list, invalidagin the semaphore. */ + lead to the select thread taking itself off the list, invalidating the semaphore. */ sys_sem_signal(&scb->sem); } } @@ -1827,7 +1827,7 @@ lwip_getsockopt_internal(void *arg) break; case SO_ERROR: - /* only overwrite ERR_OK or tempoary errors */ + /* only overwrite ERR_OK or temporary errors */ if ((sock->err == 0) || (sock->err == EINPROGRESS)) { sock_set_errno(sock, err_to_errno(sock->conn->last_err)); } diff --git a/src/core/dhcp.c b/src/core/dhcp.c index 28c594d9..6a734d7b 100644 --- a/src/core/dhcp.c +++ b/src/core/dhcp.c @@ -1330,7 +1330,7 @@ dhcp_option_hostname(struct dhcp *dhcp, struct netif *netif) * Extract the DHCP message and the DHCP options, each into a contiguous * piece of memory. As a DHCP message is variable sized by its options, * and also allows overriding some fields for options, the easy approach - * is to first unfold the options into a conitguous piece of memory, and + * is to first unfold the options into a contiguous piece of memory, and * use that further on. * */ diff --git a/src/core/dns.c b/src/core/dns.c index b89059cc..93657f94 100644 --- a/src/core/dns.c +++ b/src/core/dns.c @@ -476,7 +476,7 @@ dns_lookup_local(const char *hostname) #if DNS_LOCAL_HOSTLIST_IS_DYNAMIC /** Remove all entries from the local host-list for a specific hostname - * and/or IP addess + * and/or IP address * * @param hostname hostname for which entries shall be removed from the local * host-list @@ -1115,7 +1115,7 @@ memerr: * * @param name the hostname that is to be queried * @param hostnamelen length of the hostname - * @param found a callback founction to be called on success, failure or timeout + * @param found a callback function to be called on success, failure or timeout * @param callback_arg argument to pass to the callback function * @return @return a err_t return code. */ diff --git a/src/core/inet_chksum.c b/src/core/inet_chksum.c index 8bc42c14..448cc5b8 100644 --- a/src/core/inet_chksum.c +++ b/src/core/inet_chksum.c @@ -162,7 +162,7 @@ lwip_standard_chksum(void *dataptr, int len) sum += t; /* Fold 32-bit sum to 16 bits - calling this twice is propably faster than if statements... */ + calling this twice is probably faster than if statements... */ sum = FOLD_U32T(sum); sum = FOLD_U32T(sum); @@ -245,7 +245,7 @@ lwip_standard_chksum(void *dataptr, int len) sum += t; /* add end bytes */ /* Fold 32-bit sum to 16 bits - calling this twice is propably faster than if statements... */ + calling this twice is probably faster than if statements... */ sum = FOLD_U32T(sum); sum = FOLD_U32T(sum); @@ -288,7 +288,7 @@ inet_cksum_pseudo_base(struct pbuf *p, u8_t proto, u16_t proto_len, u32_t acc) acc += (u32_t)htons(proto_len); /* Fold 32-bit sum to 16 bits - calling this twice is propably faster than if statements... */ + calling this twice is probably faster than if statements... */ acc = FOLD_U32T(acc); acc = FOLD_U32T(acc); LWIP_DEBUGF(INET_DEBUG, ("inet_chksum_pseudo(): pbuf chain lwip_chksum()=%"X32_F"\n", acc)); @@ -400,7 +400,7 @@ inet_cksum_pseudo_partial_base(struct pbuf *p, u8_t proto, u16_t proto_len, acc += (u32_t)htons(proto_len); /* Fold 32-bit sum to 16 bits - calling this twice is propably faster than if statements... */ + calling this twice is probably faster than if statements... */ acc = FOLD_U32T(acc); acc = FOLD_U32T(acc); LWIP_DEBUGF(INET_DEBUG, ("inet_chksum_pseudo(): pbuf chain lwip_chksum()=%"X32_F"\n", acc)); diff --git a/src/core/ipv4/autoip.c b/src/core/ipv4/autoip.c index b122da27..2e9df9ce 100644 --- a/src/core/ipv4/autoip.c +++ b/src/core/ipv4/autoip.c @@ -342,14 +342,14 @@ autoip_start_probing(struct netif *netif) ip4_addr3_16(&netif->autoip->llipaddr), ip4_addr4_16(&netif->autoip->llipaddr))); /* time to wait to first probe, this is randomly - * choosen out of 0 to PROBE_WAIT seconds. + * chosen out of 0 to PROBE_WAIT seconds. * compliant to RFC 3927 Section 2.2.1 */ autoip->ttw = (u16_t)(LWIP_AUTOIP_RAND(netif) % (PROBE_WAIT * AUTOIP_TICKS_PER_SECOND)); /* * if we tried more then MAX_CONFLICTS we must limit our rate for - * accquiring and probing address + * acquiring and probing address * compliant to RFC 3927 Section 2.2.1 */ if (autoip->tried_llipaddr > MAX_CONFLICTS) { diff --git a/src/core/ipv4/icmp.c b/src/core/ipv4/icmp.c index 86d32bdf..c872cdd1 100644 --- a/src/core/ipv4/icmp.c +++ b/src/core/ipv4/icmp.c @@ -119,7 +119,7 @@ icmp_input(struct pbuf *p, struct netif *inp) accepted = 0; } #endif /* LWIP_BROADCAST_PING */ - /* broadcast or multicast destination address not acceptd? */ + /* broadcast or multicast destination address not accepted? */ if (!accepted) { LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: Not echoing to multicast or broadcast pings\n")); ICMP_STATS_INC(icmp.err); @@ -219,7 +219,7 @@ icmp_input(struct pbuf *p, struct netif *inp) LWIP_ASSERT("Can't move over header in packet", 0); } else { err_t ret; - /* send an ICMP packet, src addr is the dest addr of the curren packet */ + /* send an ICMP packet, src addr is the dest addr of the current packet */ ret = ip_output_if(p, ip_current_dest_addr(), IP_HDRINCL, ICMP_TTL, 0, IP_PROTO_ICMP, inp); if (ret != ERR_OK) { diff --git a/src/core/ipv4/igmp.c b/src/core/ipv4/igmp.c index 1708f619..3003c6b7 100644 --- a/src/core/ipv4/igmp.c +++ b/src/core/ipv4/igmp.c @@ -561,7 +561,7 @@ igmp_joingroup(ip_addr_t *ifaddr, ip_addr_t *groupaddr) } else { /* Return an error even if some network interfaces are joined */ /** @todo undo any other netif already joined */ - LWIP_DEBUGF(IGMP_DEBUG, ("igmp_joingroup: Not enought memory to join to group\n")); + LWIP_DEBUGF(IGMP_DEBUG, ("igmp_joingroup: Not enough memory to join to group\n")); return ERR_MEM; } } diff --git a/src/core/ipv4/ip4.c b/src/core/ipv4/ip4.c index 2f1da5b8..b07483c7 100644 --- a/src/core/ipv4/ip4.c +++ b/src/core/ipv4/ip4.c @@ -264,10 +264,10 @@ ip_forward(struct pbuf *p, struct ip_hdr *iphdr, struct netif *inp) #if IP_FRAG ip_frag(p, netif, ip_current_dest_addr()); #else /* IP_FRAG */ - /* @todo: send ICMP Destination Unreacheable code 13 "Communication administratively prohibited"? */ + /* @todo: send ICMP Destination Unreachable code 13 "Communication administratively prohibited"? */ #endif /* IP_FRAG */ } else { - /* send ICMP Destination Unreacheable code 4: "Fragmentation Needed and DF Set" */ + /* send ICMP Destination Unreachable code 4: "Fragmentation Needed and DF Set" */ icmp_dest_unreach(p, ICMP_DUR_FRAG); } return; diff --git a/src/core/ipv4/ip4_addr.c b/src/core/ipv4/ip4_addr.c index 8f633ff2..3836f27d 100644 --- a/src/core/ipv4/ip4_addr.c +++ b/src/core/ipv4/ip4_addr.c @@ -123,7 +123,7 @@ ip4_addr_netmask_valid(u32_t netmask) * Ascii internet address interpretation routine. * The value returned is in network order. * - * @param cp IP address in ascii represenation (e.g. "127.0.0.1") + * @param cp IP address in ascii representation (e.g. "127.0.0.1") * @return ip address in network order */ u32_t @@ -144,7 +144,7 @@ ipaddr_addr(const char *cp) * This replaces inet_addr, the return value from which * cannot distinguish between failure and a local broadcast address. * - * @param cp IP address in ascii represenation (e.g. "127.0.0.1") + * @param cp IP address in ascii representation (e.g. "127.0.0.1") * @param addr pointer to which to save the ip address in network order * @return 1 if cp could be converted to addr, 0 on failure */ @@ -255,7 +255,7 @@ ipaddr_aton(const char *cp, ip_addr_t *addr) * * @param addr ip address in network order to convert * @return pointer to a global static (!) buffer that holds the ASCII - * represenation of addr + * representation of addr */ char * ipaddr_ntoa(const ip_addr_t *addr) diff --git a/src/core/ipv4/ip_frag.c b/src/core/ipv4/ip_frag.c index 218a298a..34509270 100644 --- a/src/core/ipv4/ip_frag.c +++ b/src/core/ipv4/ip_frag.c @@ -588,7 +588,7 @@ ip_reass(struct pbuf *p) while(r != NULL) { iprh = (struct ip_reass_helper*)r->payload; - /* hide the ip header for every succeding fragment */ + /* hide the ip header for every succeeding fragment */ pbuf_header(r, -IP_HLEN); pbuf_cat(p, r); r = iprh->next_pbuf; diff --git a/src/core/ipv6/ip6_addr.c b/src/core/ipv6/ip6_addr.c index 65d27980..66c1e0cb 100644 --- a/src/core/ipv6/ip6_addr.c +++ b/src/core/ipv6/ip6_addr.c @@ -65,7 +65,7 @@ const ip6_addr_t ip6_addr_any = { { 0ul, 0ul, 0ul, 0ul } }; * of an IPv6 address and convert to a binary address. * Returns 1 if the address is valid, 0 if not. * - * @param cp IPv6 address in ascii represenation (e.g. "FF01::1") + * @param cp IPv6 address in ascii representation (e.g. "FF01::1") * @param addr pointer to which to save the ip address in network order * @return 1 if cp could be converted to addr, 0 on failure */ @@ -159,7 +159,7 @@ ip6addr_aton(const char *cp, ip6_addr_t *addr) * * @param addr ip6 address in network order to convert * @return pointer to a global static (!) buffer that holds the ASCII - * represenation of addr + * representation of addr */ char * ip6addr_ntoa(const ip6_addr_t *addr) diff --git a/src/core/ipv6/ip6_frag.c b/src/core/ipv6/ip6_frag.c index 8a2f8204..36eb43dc 100644 --- a/src/core/ipv6/ip6_frag.c +++ b/src/core/ipv6/ip6_frag.c @@ -482,7 +482,7 @@ ip6_reass(struct pbuf *p) /* Save next helper struct (will be hidden in next step). */ iprh_tmp = (struct ip6_reass_helper*) iprh->next_pbuf->payload; - /* hide the fragment header for every succeding fragment */ + /* hide the fragment header for every succeeding fragment */ pbuf_header(iprh->next_pbuf, -IP6_FRAG_HLEN); pbuf_cat(ipr->p, iprh->next_pbuf); } @@ -501,7 +501,7 @@ ip6_reass(struct pbuf *p) /* Set payload length in ip header. */ ipr->iphdr->_plen = htons(ipr->datagram_len); - /* Get the furst pbuf. */ + /* Get the first pbuf. */ p = ipr->p; /* Restore Fragment Header in first pbuf. Mark as "single fragment" diff --git a/src/core/ipv6/nd6.c b/src/core/ipv6/nd6.c index 7c65df36..d3dc6ca8 100644 --- a/src/core/ipv6/nd6.c +++ b/src/core/ipv6/nd6.c @@ -698,7 +698,7 @@ nd6_tmr(void) default_router_list[i].invalidation_timer -= ND6_TMR_INTERVAL / 1000; } if (default_router_list[i].invalidation_timer < ND6_TMR_INTERVAL / 1000) { - /* Less than 1 second remainig. Clear this entry. */ + /* Less than 1 second remaining. Clear this entry. */ default_router_list[i].neighbor_entry->isrouter = 0; default_router_list[i].neighbor_entry = NULL; default_router_list[i].invalidation_timer = 0; diff --git a/src/core/mem.c b/src/core/mem.c index 1659a2c7..85386cd6 100644 --- a/src/core/mem.c +++ b/src/core/mem.c @@ -151,7 +151,7 @@ mem_free(void *rmem) /** * The heap is made up as a list of structs of this type. * This does not have to be aligned since for getting its size, - * we only use the macro SIZEOF_STRUCT_MEM, which automatically alignes. + * we only use the macro SIZEOF_STRUCT_MEM, which automatically aligns. */ struct mem { /** index (-> ram[next]) of the next struct */ @@ -579,7 +579,7 @@ mem_malloc(mem_size_t size) /* (a mem2 struct does no fit into the user data space of mem and mem->next will always * be used at this point: if not we have 2 unused structs in a row, plug_holes should have * take care of this). - * -> near fit or excact fit: do not split, no mem2 creation + * -> near fit or exact fit: do not split, no mem2 creation * also can't move mem->next directly behind mem, since mem->next * will always be used at this point! */ diff --git a/src/core/pbuf.c b/src/core/pbuf.c index e5206f70..d9af29b8 100644 --- a/src/core/pbuf.c +++ b/src/core/pbuf.c @@ -274,7 +274,7 @@ pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type) PBUF_POOL_IS_EMPTY(); /* free chain so far allocated */ pbuf_free(p); - /* bail out unsuccesfully */ + /* bail out unsuccessfully */ return NULL; } q->type = type; @@ -499,7 +499,7 @@ pbuf_realloc(struct pbuf *p, u16_t new_len) * @param header_size_increment Number of bytes to increment header size which * increases the size of the pbuf. New space is on the front. * (Using a negative value decreases the header size.) - * If hdr_size_inc is 0, this function does nothing and returns succesful. + * If hdr_size_inc is 0, this function does nothing and returns successful. * * PBUF_ROM and PBUF_REF type buffers cannot have their sizes increased, so * the call will fail. A check is made that the increase in header size does @@ -552,10 +552,10 @@ pbuf_header(struct pbuf *p, s16_t header_size_increment) (void *)p->payload, (void *)(p + 1))); /* restore old payload pointer */ p->payload = payload; - /* bail out unsuccesfully */ + /* bail out unsuccessfully */ return 1; } - /* pbuf types refering to external payloads? */ + /* pbuf types referring to external payloads? */ } else if (type == PBUF_REF || type == PBUF_ROM) { /* hide a header in the payload? */ if ((header_size_increment < 0) && (increment_magnitude <= p->len)) { @@ -563,7 +563,7 @@ pbuf_header(struct pbuf *p, s16_t header_size_increment) p->payload = (u8_t *)p->payload - header_size_increment; } else { /* cannot expand payload to front (yet!) - * bail out unsuccesfully */ + * bail out unsuccessfully */ return 1; } } else { @@ -962,7 +962,7 @@ pbuf_copy_partial(struct pbuf *buf, void *dataptr, u16_t len, u16_t offset) * smaller than 64K. * 'packet queues' are not supported by this function. * - * @param p the pbuf queue to be splitted + * @param p the pbuf queue to be split * @param rest pointer to store the remainder (after the first 64K) */ void pbuf_split_64k(struct pbuf *p, struct pbuf **rest) @@ -1217,7 +1217,7 @@ pbuf_put_at(struct pbuf* p, u16_t offset, u8_t data) /** Compare pbuf contents at specified offset with memory s2, both of length n * * @param p pbuf to compare - * @param offset offset into p at wich to start comparing + * @param offset offset into p at which to start comparing * @param s2 buffer to compare * @param n length of buffer to compare * @return zero if equal, nonzero otherwise diff --git a/src/core/raw.c b/src/core/raw.c index 2843f352..243dd66b 100644 --- a/src/core/raw.c +++ b/src/core/raw.c @@ -164,7 +164,7 @@ raw_input(struct pbuf *p, struct netif *inp) * bind to all local interfaces. * * @return lwIP error code. - * - ERR_OK. Successful. No error occured. + * - ERR_OK. Successful. No error occurred. * - ERR_USE. The specified IP address is already bound to by * another RAW PCB. * diff --git a/src/core/snmp/asn1_dec.c b/src/core/snmp/asn1_dec.c index 1d565820..39b70bcd 100644 --- a/src/core/snmp/asn1_dec.c +++ b/src/core/snmp/asn1_dec.c @@ -46,7 +46,7 @@ * @param p points to a pbuf holding an ASN1 coded type field * @param ofs points to the offset within the pbuf chain of the ASN1 coded type field * @param type return ASN1 type - * @return ERR_OK if successfull, ERR_ARG if we can't (or won't) decode + * @return ERR_OK if successful, ERR_ARG if we can't (or won't) decode */ err_t snmp_asn1_dec_type(struct pbuf *p, u16_t ofs, u8_t *type) @@ -78,8 +78,8 @@ snmp_asn1_dec_type(struct pbuf *p, u16_t ofs, u8_t *type) * @param p points to a pbuf holding an ASN1 coded length * @param ofs points to the offset within the pbuf chain of the ASN1 coded length * @param octets_used returns number of octets used by the length code - * @param length return host order length, upto 64k - * @return ERR_OK if successfull, ERR_ARG if we can't (or won't) decode + * @param length return host order length, up to 64k + * @return ERR_OK if successful, ERR_ARG if we can't (or won't) decode */ err_t snmp_asn1_dec_length(struct pbuf *p, u16_t ofs, u8_t *octets_used, u16_t *length) @@ -230,7 +230,7 @@ snmp_asn1_dec_length(struct pbuf *p, u16_t ofs, u8_t *octets_used, u16_t *length * @param ofs points to the offset within the pbuf chain of the ASN1 coded integer * @param len length of the coded integer field * @param value return host order integer - * @return ERR_OK if successfull, ERR_ARG if we can't (or won't) decode + * @return ERR_OK if successful, ERR_ARG if we can't (or won't) decode * * @note ASN coded integers are _always_ signed. E.g. +0xFFFF is coded * as 0x00,0xFF,0xFF. Note the leading sign octet. A positive value @@ -325,7 +325,7 @@ snmp_asn1_dec_u32t(struct pbuf *p, u16_t ofs, u16_t len, u32_t *value) * @param ofs points to the offset within the pbuf chain of the ASN1 coded integer * @param len length of the coded integer field * @param value return host order integer - * @return ERR_OK if successfull, ERR_ARG if we can't (or won't) decode + * @return ERR_OK if successful, ERR_ARG if we can't (or won't) decode * * @note ASN coded integers are _always_ signed! */ @@ -423,7 +423,7 @@ snmp_asn1_dec_s32t(struct pbuf *p, u16_t ofs, u16_t len, s32_t *value) * @param ofs points to the offset within the pbuf chain of the ASN1 coded object identifier * @param len length of the coded object identifier * @param oid return object identifier struct - * @return ERR_OK if successfull, ERR_ARG if we can't (or won't) decode + * @return ERR_OK if successful, ERR_ARG if we can't (or won't) decode */ err_t snmp_asn1_dec_oid(struct pbuf *p, u16_t ofs, u16_t len, struct snmp_obj_id *oid) @@ -590,7 +590,7 @@ snmp_asn1_dec_oid(struct pbuf *p, u16_t ofs, u16_t len, struct snmp_obj_id *oid) * @param len length of the coded raw data (zero is valid, e.g. empty string!) * @param raw_len length of the raw return value * @param raw return raw bytes - * @return ERR_OK if successfull, ERR_ARG if we can't (or won't) decode + * @return ERR_OK if successful, ERR_ARG if we can't (or won't) decode */ err_t snmp_asn1_dec_raw(struct pbuf *p, u16_t ofs, u16_t len, u16_t raw_len, u8_t *raw) diff --git a/src/core/snmp/asn1_enc.c b/src/core/snmp/asn1_enc.c index 64dfc5f6..d24a5c45 100644 --- a/src/core/snmp/asn1_enc.c +++ b/src/core/snmp/asn1_enc.c @@ -175,7 +175,7 @@ snmp_asn1_enc_oid_cnt(u8_t ident_len, s32_t *ident, u16_t *octets_needed) * @param p points to output pbuf to encode value into * @param ofs points to the offset within the pbuf chain * @param type input ASN1 type - * @return ERR_OK if successfull, ERR_ARG if we can't (or won't) encode + * @return ERR_OK if successful, ERR_ARG if we can't (or won't) encode */ err_t snmp_asn1_enc_type(struct pbuf *p, u16_t ofs, u8_t type) @@ -207,7 +207,7 @@ snmp_asn1_enc_type(struct pbuf *p, u16_t ofs, u8_t type) * @param p points to output pbuf to encode length into * @param ofs points to the offset within the pbuf chain * @param length is the host order length to be encoded - * @return ERR_OK if successfull, ERR_ARG if we can't (or won't) encode + * @return ERR_OK if successful, ERR_ARG if we can't (or won't) encode */ err_t snmp_asn1_enc_length(struct pbuf *p, u16_t ofs, u16_t length) @@ -300,7 +300,7 @@ snmp_asn1_enc_length(struct pbuf *p, u16_t ofs, u16_t length) * @param ofs points to the offset within the pbuf chain * @param octets_needed encoding length (from snmp_asn1_enc_u32t_cnt()) * @param value is the host order u32_t value to be encoded - * @return ERR_OK if successfull, ERR_ARG if we can't (or won't) encode + * @return ERR_OK if successful, ERR_ARG if we can't (or won't) encode * * @see snmp_asn1_enc_u32t_cnt() */ @@ -376,7 +376,7 @@ snmp_asn1_enc_u32t(struct pbuf *p, u16_t ofs, u16_t octets_needed, u32_t value) * @param ofs points to the offset within the pbuf chain * @param octets_needed encoding length (from snmp_asn1_enc_s32t_cnt()) * @param value is the host order s32_t value to be encoded - * @return ERR_OK if successfull, ERR_ARG if we can't (or won't) encode + * @return ERR_OK if successful, ERR_ARG if we can't (or won't) encode * * @see snmp_asn1_enc_s32t_cnt() */ @@ -432,7 +432,7 @@ snmp_asn1_enc_s32t(struct pbuf *p, u16_t ofs, u16_t octets_needed, s32_t value) * @param ofs points to the offset within the pbuf chain * @param ident_len object identifier array length * @param ident points to object identifier array - * @return ERR_OK if successfull, ERR_ARG if we can't (or won't) encode + * @return ERR_OK if successful, ERR_ARG if we can't (or won't) encode */ err_t snmp_asn1_enc_oid(struct pbuf *p, u16_t ofs, u8_t ident_len, s32_t *ident) @@ -556,7 +556,7 @@ snmp_asn1_enc_oid(struct pbuf *p, u16_t ofs, u8_t ident_len, s32_t *ident) * @param ofs points to the offset within the pbuf chain * @param raw_len raw data length * @param raw points raw data - * @return ERR_OK if successfull, ERR_ARG if we can't (or won't) encode + * @return ERR_OK if successful, ERR_ARG if we can't (or won't) encode */ err_t snmp_asn1_enc_raw(struct pbuf *p, u16_t ofs, u16_t raw_len, u8_t *raw) diff --git a/src/core/snmp/msg_in.c b/src/core/snmp/msg_in.c index db52da48..1e1df8cf 100644 --- a/src/core/snmp/msg_in.c +++ b/src/core/snmp/msg_in.c @@ -160,7 +160,7 @@ snmp_ok_response(struct snmp_msg_pstat *msg_ps) * Service an internal or external event for SNMP GET. * * @param request_id identifies requests from 0 to (SNMP_CONCURRENT_REQUESTS-1) - * @param msg_ps points to the assosicated message process state + * @param msg_ps points to the associated message process state */ static void snmp_msg_get_event(u8_t request_id, struct snmp_msg_pstat *msg_ps) @@ -209,7 +209,7 @@ snmp_msg_get_event(u8_t request_id, struct snmp_msg_pstat *msg_ps) /* move name from invb to outvb */ vb->ident = msg_ps->vb_ptr->ident; vb->ident_len = msg_ps->vb_ptr->ident_len; - /* ensure this memory is refereced once only */ + /* ensure this memory is referenced once only */ msg_ps->vb_ptr->ident = NULL; msg_ps->vb_ptr->ident_len = 0; @@ -322,7 +322,7 @@ snmp_msg_get_event(u8_t request_id, struct snmp_msg_pstat *msg_ps) /* move name from invb to outvb */ vb->ident = msg_ps->vb_ptr->ident; vb->ident_len = msg_ps->vb_ptr->ident_len; - /* ensure this memory is refereced once only */ + /* ensure this memory is referenced once only */ msg_ps->vb_ptr->ident = NULL; msg_ps->vb_ptr->ident_len = 0; @@ -391,7 +391,7 @@ snmp_msg_get_event(u8_t request_id, struct snmp_msg_pstat *msg_ps) * Service an internal or external event for SNMP GETNEXT. * * @param request_id identifies requests from 0 to (SNMP_CONCURRENT_REQUESTS-1) - * @param msg_ps points to the assosicated message process state + * @param msg_ps points to the associated message process state */ static void snmp_msg_getnext_event(u8_t request_id, struct snmp_msg_pstat *msg_ps) @@ -536,7 +536,7 @@ snmp_msg_getnext_event(u8_t request_id, struct snmp_msg_pstat *msg_ps) * Service an internal or external event for SNMP SET. * * @param request_id identifies requests from 0 to (SNMP_CONCURRENT_REQUESTS-1) - * @param msg_ps points to the assosicated message process state + * @param msg_ps points to the associated message process state */ static void snmp_msg_set_event(u8_t request_id, struct snmp_msg_pstat *msg_ps) diff --git a/src/core/snmp/msg_out.c b/src/core/snmp/msg_out.c index 4c70952b..92f588e7 100644 --- a/src/core/snmp/msg_out.c +++ b/src/core/snmp/msg_out.c @@ -209,7 +209,7 @@ snmp_send_response(struct snmp_msg_pstat *m_stat) * @return ERR_OK when success, ERR_MEM if we're out of memory * * @note the caller is responsible for filling in outvb in the trap_msg - * @note the use of the enterpise identifier field + * @note the use of the enterprise identifier field * is per RFC1215. * Use .iso.org.dod.internet.mgmt.mib-2.snmp for generic traps * and .iso.org.dod.internet.private.enterprises.yourenterprise @@ -316,7 +316,7 @@ snmp_authfail_trap(void) * * @param vb_len varbind-list length * @param rhl points to returned header lengths - * @return the required lenght for encoding the response header + * @return the required length for encoding the response header */ static u16_t snmp_resp_header_sum(struct snmp_msg_pstat *m_stat, u16_t vb_len) @@ -363,7 +363,7 @@ snmp_resp_header_sum(struct snmp_msg_pstat *m_stat, u16_t vb_len) * * @param vb_len varbind-list length * @param thl points to returned header lengths - * @return the required lenght for encoding the trap header + * @return the required length for encoding the trap header */ static u16_t snmp_trap_header_sum(struct snmp_msg_trap *m_trap, u16_t vb_len) @@ -418,7 +418,7 @@ snmp_trap_header_sum(struct snmp_msg_trap *m_trap, u16_t vb_len) * annotates lengths in varbind for second encoding pass. * * @param root points to the root of the variable binding list - * @return the required lenght for encoding the variable bindings + * @return the required length for encoding the variable bindings */ static u16_t snmp_varbind_list_sum(struct snmp_varbind_root *root) diff --git a/src/core/tcp.c b/src/core/tcp.c index 7ecfeddd..3002977c 100644 --- a/src/core/tcp.c +++ b/src/core/tcp.c @@ -425,7 +425,7 @@ tcp_abort(struct tcp_pcb *pcb) } /** - * Binds the connection to a local portnumber and IP address. If the + * Binds the connection to a local port number and IP address. If the * IP address is not given (i.e., ipaddr == NULL), the IP address of * the outgoing network interface is used instead. * @@ -1509,11 +1509,11 @@ tcp_sent(struct tcp_pcb *pcb, tcp_sent_fn sent) /** * Used to specify the function that should be called when a fatal error - * has occured on the connection. + * has occurred on the connection. * * @param pcb tcp_pcb to set the err callback * @param err callback function to call for this pcb when a fatal error - * has occured on the connection + * has occurred on the connection */ void tcp_err(struct tcp_pcb *pcb, tcp_err_fn err) @@ -1679,8 +1679,8 @@ tcp_next_iss(void) #if TCP_CALCULATE_EFF_SEND_MSS /** - * Calcluates the effective send mss that can be used for a specific IP address - * by using ip_route to determin the netif used to send to the address and + * Calculates the effective send mss that can be used for a specific IP address + * by using ip_route to determine the netif used to send to the address and * calculating the minimum of TCP_MSS and that netif's mtu (if set). */ u16_t @@ -1711,7 +1711,7 @@ tcp_eff_send_mss_impl(u16_t sendmss, ipX_addr_t *dest if (mtu != 0) { mss_s = mtu - IP_HLEN - TCP_HLEN; #if LWIP_IPV6 - /* for IPv6, substract the difference in header size */ + /* for IPv6, subtract the difference in header size */ mss_s -= (IP6_HLEN - IP_HLEN); #endif /* LWIP_IPV6 */ /* RFC 1122, chap 4.2.2.6: diff --git a/src/core/tcp_in.c b/src/core/tcp_in.c index bd5d053b..cb687701 100644 --- a/src/core/tcp_in.c +++ b/src/core/tcp_in.c @@ -757,7 +757,7 @@ tcp_process(struct tcp_pcb *pcb) pcb->nrtx = 0; } - /* Call the user specified function to call when sucessfully + /* Call the user specified function to call when successfully * connected. */ TCP_EVENT_CONNECTED(pcb, ERR_OK, err); if (err == ERR_ABRT) { @@ -1097,7 +1097,7 @@ tcp_receive(struct tcp_pcb *pcb) ntohl(pcb->unacked->tcphdr->seqno) + TCP_TCPLEN(pcb->unacked): 0)); /* Remove segment from the unacknowledged list if the incoming - ACK acknowlegdes them. */ + ACK acknowledges them. */ while (pcb->unacked != NULL && TCP_SEQ_LEQ(ntohl(pcb->unacked->tcphdr->seqno) + TCP_TCPLEN(pcb->unacked), ackno)) { @@ -1217,7 +1217,7 @@ tcp_receive(struct tcp_pcb *pcb) /* If the incoming segment contains data, we must process it further unless the pcb already received a FIN. - (RFC 793, chapeter 3.9, "SEGMENT ARRIVES" in states CLOSE-WAIT, CLOSING, + (RFC 793, chapter 3.9, "SEGMENT ARRIVES" in states CLOSE-WAIT, CLOSING, LAST-ACK and TIME-WAIT: "Ignore the segment text.") */ if ((tcplen > 0) && (pcb->state < CLOSE_WAIT)) { /* This code basically does three things: @@ -1518,7 +1518,7 @@ tcp_receive(struct tcp_pcb *pcb) } break; } else { - /* Either the lenghts are the same or the incoming + /* Either the lengths are the same or the incoming segment was smaller than the old one; in either case, we ditch the incoming segment. */ break; @@ -1628,7 +1628,7 @@ tcp_receive(struct tcp_pcb *pcb) #endif /* TCP_QUEUE_OOSEQ */ } } else { - /* The incoming segment is not withing the window. */ + /* The incoming segment is not within the window. */ tcp_send_empty_ack(pcb); } } else { diff --git a/src/core/timers.c b/src/core/timers.c index 4203efee..b327c384 100644 --- a/src/core/timers.c +++ b/src/core/timers.c @@ -513,7 +513,7 @@ sys_timeouts_mbox_fetch(sys_mbox_t *mbox, void **msg) } if (time_needed == SYS_ARCH_TIMEOUT) { - /* If time == SYS_ARCH_TIMEOUT, a timeout occured before a message + /* If time == SYS_ARCH_TIMEOUT, a timeout occurred before a message could be fetched. We should now call the timeout handler and deallocate the memory allocated for the timeout. */ tmptimeout = next_timeout; diff --git a/src/core/udp.c b/src/core/udp.c index a7b24466..2d1a9978 100644 --- a/src/core/udp.c +++ b/src/core/udp.c @@ -210,7 +210,7 @@ udp_input(struct pbuf *p, struct netif *inp) /* all packets for DHCP_CLIENT_PORT not coming from DHCP_SERVER_PORT are dropped! */ if (src == DHCP_SERVER_PORT) { if ((inp->dhcp != NULL) && (inp->dhcp->pcb != NULL)) { - /* accept the packe if + /* accept the packet if (- broadcast or directed to us) -> DHCP is link-layer-addressed, local ip is always ANY! - inp->dhcp->pcb->remote == ANY or iphdr->src (no need to check for IPv6 since the dhcp struct always uses IPv4) */ @@ -495,7 +495,7 @@ chkerr: * automatically be bound to a random port. * * @return lwIP error code. - * - ERR_OK. Successful. No error occured. + * - ERR_OK. Successful. No error occurred. * - ERR_MEM. Out of memory. * - ERR_RTE. Could not find route to destination address. * - More errors could be returned by lower protocol layers. @@ -849,7 +849,7 @@ udp_sendto_if_src_chksum(struct udp_pcb *pcb, struct pbuf *p, ip_addr_t *dst_ip, err = ipX_output_if_src(PCB_ISIPV6(pcb), q, src_ip, dst_ip, pcb->ttl, pcb->tos, ip_proto, netif); NETIF_SET_HWADDRHINT(netif, NULL); - /* TODO: must this be increased even if error occured? */ + /* TODO: must this be increased even if error occurred? */ snmp_inc_udpoutdatagrams(); /* did we chain a separate header pbuf earlier? */ @@ -877,7 +877,7 @@ udp_sendto_if_src_chksum(struct udp_pcb *pcb, struct pbuf *p, ip_addr_t *dst_ip, * ipaddr & port are expected to be in the same byte order as in the pcb. * * @return lwIP error code. - * - ERR_OK. Successful. No error occured. + * - ERR_OK. Successful. No error occurred. * - ERR_USE. The specified ipaddr and port are already bound to by * another UDP PCB. * @@ -905,7 +905,7 @@ udp_bind(struct udp_pcb *pcb, ip_addr_t *ipaddr, u16_t port) } /* By default, we don't allow to bind to a port that any other udp - PCB is alread bound to, unless *all* PCBs with that port have tha + PCB is already bound to, unless *all* PCBs with that port have tha REUSEADDR flag set. */ #if SO_REUSE else if (!ip_get_option(pcb, SOF_REUSEADDR) && @@ -1047,7 +1047,7 @@ udp_disconnect(struct udp_pcb *pcb) * * This callback will be called when receiving a datagram for the pcb. * - * @param pcb the pcb for wich to set the recv callback + * @param pcb the pcb for which to set the recv callback * @param recv function pointer of the callback function * @param recv_arg additional argument to pass to the callback function */ diff --git a/src/include/lwip/api.h b/src/include/lwip/api.h index 11cefba3..74379c84 100644 --- a/src/include/lwip/api.h +++ b/src/include/lwip/api.h @@ -172,7 +172,7 @@ struct netconn { } pcb; /** the last error this netconn had */ err_t last_err; - /** sem that is used to synchroneously execute functions in the core context */ + /** sem that is used to synchronously execute functions in the core context */ sys_sem_t op_completed; /** mbox where received packets are stored until they are fetched by the netconn application thread (can grow quite big) */ diff --git a/src/include/lwip/dhcp.h b/src/include/lwip/dhcp.h index db2f981c..bba08970 100644 --- a/src/include/lwip/dhcp.h +++ b/src/include/lwip/dhcp.h @@ -170,7 +170,7 @@ void dhcp_fine_tmr(void); /** not yet implemented #define DHCP_RELEASING 11 */ #define DHCP_BACKING_OFF 12 -/** AUTOIP cooperatation flags */ +/** AUTOIP cooperation flags */ #define DHCP_AUTOIP_COOP_STATE_OFF 0 #define DHCP_AUTOIP_COOP_STATE_ON 1 diff --git a/src/include/lwip/netdb.h b/src/include/lwip/netdb.h index 3abd295b..d7acdc98 100644 --- a/src/include/lwip/netdb.h +++ b/src/include/lwip/netdb.h @@ -96,7 +96,7 @@ struct addrinfo { #define NETDB_ELEM_SIZE (sizeof(struct addrinfo) + sizeof(struct sockaddr_in) + DNS_MAX_NAME_LENGTH + 1) #if LWIP_DNS_API_DECLARE_H_ERRNO -/* application accessable error code set by the DNS API functions */ +/* application accessible error code set by the DNS API functions */ extern int h_errno; #endif /* LWIP_DNS_API_DECLARE_H_ERRNO*/ diff --git a/src/include/lwip/opt.h b/src/include/lwip/opt.h index c3623e42..4c29ec5f 100644 --- a/src/include/lwip/opt.h +++ b/src/include/lwip/opt.h @@ -40,7 +40,7 @@ /* * Include user defined options first. Anything not defined in these files - * will be set to standard values. Override anything you dont like! + * will be set to standard values. Override anything you don't like! */ #include "lwipopts.h" #include "lwip/debug.h" @@ -194,7 +194,7 @@ * MEMP_USE_CUSTOM_POOLS==1: whether to include a user file lwippools.h * that defines additional pools beyond the "standard" ones required * by lwIP. If you set this to 1, you must have lwippools.h in your - * inlude path somewhere. + * include path somewhere. */ #ifndef MEMP_USE_CUSTOM_POOLS #define MEMP_USE_CUSTOM_POOLS 0 @@ -254,7 +254,7 @@ #endif /** - * MEMP_NUM_TCP_PCB: the number of simulatenously active TCP connections. + * MEMP_NUM_TCP_PCB: the number of simultaneously active TCP connections. * (requires the LWIP_TCP option) */ #ifndef MEMP_NUM_TCP_PCB @@ -297,7 +297,7 @@ #endif /** - * MEMP_NUM_ARP_QUEUE: the number of simulateously queued outgoing + * MEMP_NUM_ARP_QUEUE: the number of simultaneously queued outgoing * packets (pbufs) that are waiting for an ARP request (to resolve * their destination address) to finish. * (requires the ARP_QUEUEING option) @@ -308,7 +308,7 @@ /** * MEMP_NUM_IGMP_GROUP: The number of multicast groups whose network interfaces - * can be members et the same time (one per netif - allsystems group -, plus one + * can be members at the same time (one per netif - allsystems group -, plus one * per netif membership). * (requires the LWIP_IGMP option) */ @@ -317,7 +317,7 @@ #endif /** - * MEMP_NUM_SYS_TIMEOUT: the number of simulateously active timeouts. + * MEMP_NUM_SYS_TIMEOUT: the number of simultaneously active timeouts. * (requires NO_SYS==0) * The default number of timeouts is calculated here for all enabled modules. * The formula expects settings to be either '0' or '1'. @@ -823,7 +823,7 @@ #endif /** - * Only allow SNMP write actions that are 'safe' (e.g. disabeling netifs is not + * Only allow SNMP write actions that are 'safe' (e.g. disabling netifs is not * a safe action and disabled when SNMP_SAFE_REQUESTS = 1). * Unsafe requests are disabled by default! */ @@ -1175,7 +1175,7 @@ /** * PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. The default is - * designed to accomodate single full size TCP frame in one pbuf, including + * designed to accommodate single full size TCP frame in one pbuf, including * TCP_MSS, IP header, and link header. */ #ifndef PBUF_POOL_BUFSIZE @@ -1204,7 +1204,7 @@ /** * LWIP_NETIF_STATUS_CALLBACK==1: Support a callback function whenever an interface - * changes its up/down status (i.e., due to DHCP IP acquistion) + * changes its up/down status (i.e., due to DHCP IP acquisition) */ #ifndef LWIP_NETIF_STATUS_CALLBACK #define LWIP_NETIF_STATUS_CALLBACK 0 @@ -1460,7 +1460,7 @@ #define LWIP_NETCONN 1 #endif -/** LWIP_TCPIP_TIMEOUT==1: Enable tcpip_timeout/tcpip_untimeout tod create +/** LWIP_TCPIP_TIMEOUT==1: Enable tcpip_timeout/tcpip_untimeout to create * timers running in tcpip_thread from another thread. */ #ifndef LWIP_TCPIP_TIMEOUT diff --git a/src/include/lwip/snmp_structs.h b/src/include/lwip/snmp_structs.h index 61fef8ee..b69160cc 100644 --- a/src/include/lwip/snmp_structs.h +++ b/src/include/lwip/snmp_structs.h @@ -202,7 +202,7 @@ struct mib_external_node /* additional struct members */ /** points to an external (in memory) record of some sort of addressing - information, passed to and interpreted by the funtions below */ + information, passed to and interpreted by the functions below */ void* addr_inf; /** tree levels under this node */ u8_t tree_levels; diff --git a/src/include/lwip/sockets.h b/src/include/lwip/sockets.h index 7406dca8..3e1ca3a8 100644 --- a/src/include/lwip/sockets.h +++ b/src/include/lwip/sockets.h @@ -126,7 +126,7 @@ struct lwip_setgetsockopt_data { void *optval; /** size of *optval */ socklen_t *optlen; - /** if an error occures, it is temporarily stored here */ + /** if an error occurs, it is temporarily stored here */ err_t err; }; diff --git a/src/include/lwip/sys.h b/src/include/lwip/sys.h index dd47962b..05527315 100644 --- a/src/include/lwip/sys.h +++ b/src/include/lwip/sys.h @@ -152,7 +152,7 @@ void sys_sem_free(sys_sem_t *sem); /** Wait for a semaphore - forever/no timeout */ #define sys_sem_wait(sem) sys_arch_sem_wait(sem, 0) #ifndef sys_sem_valid -/** Check if a sempahore is valid/allocated: return 1 for valid, 0 for invalid */ +/** Check if a semaphore is valid/allocated: return 1 for valid, 0 for invalid */ int sys_sem_valid(sys_sem_t *sem); #endif #ifndef sys_sem_set_invalid @@ -169,7 +169,7 @@ void sys_msleep(u32_t ms); /* only has a (close to) 1 jiffy resolution. */ /** Create a new mbox of specified size * @param mbox pointer to the mbox to create - * @param size (miminum) number of messages in this mbox + * @param size (minimum) number of messages in this mbox * @return ERR_OK if successful, another err_t otherwise */ err_t sys_mbox_new(sys_mbox_t *mbox, int size); /** Post a message to an mbox - may not fail @@ -189,7 +189,7 @@ err_t sys_mbox_trypost(sys_mbox_t *mbox, void *msg); or SYS_ARCH_TIMEOUT on timeout * The returned time has to be accurate to prevent timer jitter! */ u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout); -/* Allow port to override with a macro, e.g. special timout for sys_arch_mbox_fetch() */ +/* Allow port to override with a macro, e.g. special timeout for sys_arch_mbox_fetch() */ #ifndef sys_arch_mbox_tryfetch /** Wait for a new message to arrive in the mbox * @param mbox mbox to get a message from @@ -224,7 +224,7 @@ sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, #endif /* NO_SYS */ -/* sys_init() must be called before anthing else. */ +/* sys_init() must be called before anything else. */ void sys_init(void); #ifndef sys_jiffies diff --git a/src/include/lwip/tcp.h b/src/include/lwip/tcp.h index a77097ee..9840a2f7 100644 --- a/src/include/lwip/tcp.h +++ b/src/include/lwip/tcp.h @@ -157,7 +157,7 @@ enum tcp_state { * @param pcb a new tcp_pcb that now is connected * @param err an error argument (TODO: that is current always ERR_OK?) * @return ERR_OK: accept the new connection, - * any other err_t abortsthe new connection + * any other err_t aborts the new connection */ #define DEF_ACCEPT_CALLBACK tcp_accept_fn accept; #else /* LWIP_CALLBACK_API */ diff --git a/src/include/lwip/tcp_impl.h b/src/include/lwip/tcp_impl.h index 84a47658..d6f98c9e 100644 --- a/src/include/lwip/tcp_impl.h +++ b/src/include/lwip/tcp_impl.h @@ -188,7 +188,7 @@ PACK_STRUCT_END /** Flags used on input processing, not on pcb->flags */ #define TF_RESET (u8_t)0x08U /* Connection was reset. */ -#define TF_CLOSED (u8_t)0x10U /* Connection was sucessfully closed. */ +#define TF_CLOSED (u8_t)0x10U /* Connection was successfully closed. */ #define TF_GOT_FIN (u8_t)0x20U /* Connection was closed by the remote end. */ @@ -277,7 +277,7 @@ PACK_STRUCT_END /* This structure represents a TCP segment on the unsent, unacked and ooseq queues */ struct tcp_seg { - struct tcp_seg *next; /* used when putting segements on a queue */ + struct tcp_seg *next; /* used when putting segments on a queue */ struct pbuf *p; /* buffer containing data + TCP header */ u16_t len; /* the TCP length of this segment */ #if TCP_OVERSIZE_DBGCHECK diff --git a/src/include/lwip/udp.h b/src/include/lwip/udp.h index 927c2f57..be353543 100644 --- a/src/include/lwip/udp.h +++ b/src/include/lwip/udp.h @@ -139,7 +139,7 @@ struct udp_pcb { /** user-supplied argument for the recv callback */ void *recv_arg; }; -/* udp_pcbs export for exernal reference (e.g. SNMP agent) */ +/* udp_pcbs export for external reference (e.g. SNMP agent) */ extern struct udp_pcb *udp_pcbs; /* The following functions is the application layer interface to the diff --git a/src/include/netif/slipif.h b/src/include/netif/slipif.h index d34b269b..dc40d301 100644 --- a/src/include/netif/slipif.h +++ b/src/include/netif/slipif.h @@ -47,7 +47,7 @@ /** Set this to 1 to enable functions to pass in RX bytes from ISR context. * If enabled, slipif_received_byte[s]() process incoming bytes and put assembled * packets on a queue, which is fed into lwIP from slipif_poll(). - * If disabled, slipif_poll() polls the serila line (using sio_tryread()). + * If disabled, slipif_poll() polls the serial line (using sio_tryread()). */ #ifndef SLIP_RX_FROM_ISR #define SLIP_RX_FROM_ISR 0 diff --git a/src/netif/etharp.c b/src/netif/etharp.c index 6b773a4e..7d068e39 100644 --- a/src/netif/etharp.c +++ b/src/netif/etharp.c @@ -455,7 +455,7 @@ etharp_send_ip(struct netif *netif, struct pbuf *p, struct eth_addr *src, struct * @param flags @see definition of ETHARP_FLAG_* * * @return - * - ERR_OK Succesfully updated ARP cache. + * - ERR_OK Successfully updated ARP cache. * - ERR_MEM If we could not add a new ARP entry when ETHARP_FLAG_TRY_HARD was set. * - ERR_ARG Non-unicast address given, those will not appear in ARP cache. * @@ -752,7 +752,7 @@ etharp_arp_input(struct netif *netif, struct eth_addr *ethaddr, struct pbuf *p) #if LWIP_AUTOIP /* We have to check if a host already has configured our random - * created link local address and continously check if there is + * created link local address and continuously check if there is * a host with this IP-address so we can detect collisions */ autoip_arp_reply(netif, hdr); #endif /* LWIP_AUTOIP */ @@ -784,7 +784,7 @@ etharp_arp_input(struct netif *netif, struct eth_addr *ethaddr, struct pbuf *p) case PP_HTONS(ARP_REQUEST): /* ARP request. If it asked for our address, we send out a * reply. In any case, we time-stamp any existing ARP entry, - * and possiby send out an IP packet that was queued on it. */ + * and possibly send out an IP packet that was queued on it. */ LWIP_DEBUGF (ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_arp_input: incoming ARP request\n")); /* ARP request for our address? */ @@ -1340,7 +1340,7 @@ etharp_request(struct netif *netif, ip_addr_t *ipaddr) * calling ip_input and passing ARP frames through etharp in ethernetif_input, * the ARP cache is protected from concurrent access. * - * @param p the recevied packet, p->payload pointing to the ethernet header + * @param p the received packet, p->payload pointing to the ethernet header * @param netif the network interface on which the packet was received */ err_t diff --git a/src/netif/ethernetif.c b/src/netif/ethernetif.c index ad4d2dcb..b9276b6e 100644 --- a/src/netif/ethernetif.c +++ b/src/netif/ethernetif.c @@ -116,7 +116,7 @@ low_level_init(struct netif *netif) * * @note Returning ERR_MEM here if a DMA queue of your MAC is full can lead to * strange results. You might consider waiting for space in the DMA queue - * to become availale since the stack doesn't retry to send a packet + * to become available since the stack doesn't retry to send a packet * dropped because of memory failure (except for the TCP timers). */ diff --git a/src/netif/ppp/vj.c b/src/netif/ppp/vj.c index 5c195909..34d325fe 100644 --- a/src/netif/ppp/vj.c +++ b/src/netif/ppp/vj.c @@ -1,5 +1,5 @@ /* - * Routines to compress and uncompess tcp packets (for transmission + * Routines to compress and uncompress tcp packets (for transmission * over low speed serial lines. * * Copyright (c) 1989 Regents of the University of California. diff --git a/src/netif/slipif.c b/src/netif/slipif.c index 137ba89d..6a8f4ae9 100644 --- a/src/netif/slipif.c +++ b/src/netif/slipif.c @@ -107,7 +107,7 @@ struct slipif_priv { * Uses the serial layer's sio_send() * * @param netif the lwip network interface structure for this slipif - * @param p the pbuf chaing packet to send + * @param p the pbuf chain packet to send * @return always returns ERR_OK since the serial layer does not provide return values */ static err_t @@ -161,7 +161,7 @@ slipif_output(struct netif *netif, struct pbuf *p) * Uses the serial layer's sio_send() * * @param netif the lwip network interface structure for this slipif - * @param p the pbuf chaing packet to send + * @param p the pbuf chain packet to send * @param ipaddr the ip address to send the packet to (not used for slipif) * @return always returns ERR_OK since the serial layer does not provide return values */ @@ -179,7 +179,7 @@ slipif_output_v4(struct netif *netif, struct pbuf *p, ip_addr_t *ipaddr) * Uses the serial layer's sio_send() * * @param netif the lwip network interface structure for this slipif - * @param p the pbuf chaing packet to send + * @param p the pbuf chain packet to send * @param ipaddr the ip address to send the packet to (not used for slipif) * @return always returns ERR_OK since the serial layer does not provide return values */