Fix typos using codespell

Conservative strategy was used, maybe other typos remain.

Rebased: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
jona 2020-02-13 22:15:16 +01:00 committed by Simon Goldschmidt
parent 69c4c8a074
commit d6a6b661d9
56 changed files with 86 additions and 86 deletions

View File

@ -361,7 +361,7 @@ namespace LwipMibCompiler
}
else
{
// not accessible or unsupported accress type
// not accessible or unsupported access type
return null;
}
@ -434,7 +434,7 @@ namespace LwipMibCompiler
{
result.AugmentedTableRow = rot.Augments;
// the indeces from another table shall be used because this table is only an extension of it
// the indices from another table shall be used because this table is only an extension of it
rot = MibTypesResolver.ResolveDeclaration(rot.Module, rot.Augments) as ObjectType;
}

View File

@ -11,7 +11,7 @@
namespace Lextm.SharpSnmpLib.Mib.Elements.Types
{
/// <summary>
/// The SEQUENCE type represents a set of specified types. This is roughtly analogous to a <code>struct</code> in C.
/// The SEQUENCE type represents a set of specified types. This is roughly analogous to a <code>struct</code> in C.
/// </summary>
public sealed class Sequence : BaseType
{

View File

@ -438,7 +438,7 @@ namespace Lextm.SharpSnmpLib.Mib
if (current == Symbol.DoubleDot)
{
// its a continous range
// its a continuous range
Symbol value2Symbol = symbols.NextNonEOLSymbol();
Int64? value2 = DecodeNumber(value2Symbol);
value2Symbol.Assert(value2.HasValue && (value2.Value >= value1.Value), "Invalid range declaration!");

View File

@ -197,11 +197,11 @@ namespace Lextm.SharpSnmpLib.Mib
Symbol s = symbols.NextSymbol();
if (s != null)
{
s.Assert(false, "Invalid Entitiy declaration");
s.Assert(false, "Invalid Entity declaration");
}
else
{
throw new MibException("Invalid Entitiy declaration");
throw new MibException("Invalid Entity declaration");
}
}

View File

@ -10,7 +10,7 @@ namespace Lextm.SharpSnmpLib.Mib
}
/// <summary>
/// Returns the values of the map as continous range. At best as one range.
/// Returns the values of the map as continuous range. At best as one range.
/// </summary>
/// <returns></returns>
public ValueRanges GetContinousRanges()

View File

@ -97,7 +97,7 @@ udpl [local UDP port] [IP address] [remote port]: opens a UDP-Lite \"connection\
static char help_msg2[] = "udpn [local UDP port] [IP address] [remote port]: opens a UDP \"connection\" without checksums."NEWLINE"\
udpb [local port] [remote port]: opens a UDP broadcast \"connection\"."NEWLINE"\
usnd [connection #] [message]: sends a message on a UDP connection."NEWLINE"\
recv [connection #]: recieves data on a TCP or UDP connection."NEWLINE"\
recv [connection #]: receives data on a TCP or UDP connection."NEWLINE"\
clos [connection #]: closes a TCP or UDP connection."NEWLINE"\
stat: prints out lwIP statistics."NEWLINE"\
idxtoname [index]: outputs interface name from index."NEWLINE"\

View File

@ -236,7 +236,7 @@ tcpecho_raw_recv(void *arg, struct tcp_pcb *tpcb, struct pbuf *p, err_t err)
}
ret_err = ERR_OK;
} else {
/* unkown es->state, trash data */
/* unknown es->state, trash data */
tcp_recved(tpcb, p->tot_len);
pbuf_free(p);
ret_err = ERR_OK;

View File

@ -137,7 +137,7 @@ httpd_post_receive_data(void *connection, struct pbuf *p)
}
}
/* not returning ERR_OK aborts the connection, so return ERR_OK unless the
conenction is unknown */
connection is unknown */
ret = ERR_OK;
} else {
ret = ERR_VAL;

View File

@ -1,5 +1,5 @@
This port contains infrastructure and examples for running lwIP on Unix-like
operating systems (Linux, OpenBSD, cygwin). Much of this is targetted towards
operating systems (Linux, OpenBSD, cygwin). Much of this is targeted towards
testing lwIP applications.
* port/sys_arch.c, port/perf.c, port/include/arch/: Generic platform porting,

View File

@ -357,7 +357,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.
*
*/

View File

@ -15,7 +15,7 @@ typedef struct fifo_t {
sys_sem_t sem; /* semaphore protecting simultaneous data manipulation */
sys_sem_t getSem; /* sepaphore used to signal new data if getWaiting is set */
u8_t getWaiting; /* flag used to indicate that fifoget is waiting for data. fifoput is suposed to clear */
u8_t getWaiting; /* flag used to indicate that fifoget is waiting for data. fifoput is supposed to clear */
/* this flag prior to signaling the getSem semaphore */
} fifo_t;

View File

@ -29,7 +29,7 @@ typedef enum sioBaudrates {
s16_t sio_poll(sio_status_t * siostat);
/**
* Parse incoming characters until a string str is recieved, blocking call
* Parse incoming characters until a string str is received, blocking call
* @param str zero terminated string to expect
* @param siostat siostatus struct, contains sio instance data, given by sio_open
*/

View File

@ -172,7 +172,7 @@ struct pcapipf_pending_packet {
};
#endif /* PCAPIF_RECEIVE_PROMISCUOUS */
/* Packet Adapter informations */
/* Packet Adapter information */
struct pcapif_private {
void *input_fn_arg;
pcap_t *adapter;

View File

@ -472,7 +472,7 @@ err_tcp(void *arg, err_t err)
}
/* pass error message to acceptmbox to wake up pending accept */
if (NETCONN_MBOX_VALID(conn, &conn->acceptmbox)) {
/* use trypost to preven deadlock */
/* use trypost to prevent deadlock */
sys_mbox_trypost(&conn->acceptmbox, mbox_msg);
}
@ -495,7 +495,7 @@ err_tcp(void *arg, err_t err)
conn->current_msg->err = err;
}
op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg);
LWIP_ASSERT("inavlid op_completed_sem", sys_sem_valid(op_completed_sem));
LWIP_ASSERT("invalid op_completed_sem", sys_sem_valid(op_completed_sem));
conn->current_msg = NULL;
/* wake up the waiting task */
sys_sem_signal(op_completed_sem);
@ -979,7 +979,7 @@ lwip_netconn_do_close_internal(struct netconn *conn WRITE_DELAYED_PARAM)
/* Try to close the connection */
if (shut_close) {
#if LWIP_SO_LINGER
/* check linger possibilites before calling tcp_close */
/* check linger possibilities before calling tcp_close */
err = ERR_OK;
/* linger enabled/required at all? (i.e. is there untransmitted data left?) */
if ((conn->linger >= 0) && (conn->pcb.tcp->unsent || conn->pcb.tcp->unacked)) {

View File

@ -77,7 +77,7 @@ lwip_if_indextoname(unsigned int ifindex, char *ifname)
/**
* @ingroup if_api
* Returs the interface index corresponding to name ifname.
* Returns the interface index corresponding to name ifname.
* @param ifname Interface name
* @return The corresponding index if ifname is the name of an interface;
* otherwise, zero.

View File

@ -6,7 +6,7 @@
* @ingroup netconn
* Network buffer descriptor for @ref netconn. Based on @ref pbuf internally
* to avoid copying data around.<br>
* Buffers must not be shared accross multiple threads, all functions except
* Buffers must not be shared across multiple threads, all functions except
* netbuf_new() and netbuf_delete() are not thread-safe.
*/

View File

@ -1189,7 +1189,7 @@ altcp_mbedtls_sndbuf(struct altcp_pcb *conn)
size_t max_len = 0xFFFF;
size_t ret;
#if defined(MBEDTLS_SSL_MAX_FRAGMENT_LENGTH)
/* @todo: adjust ssl_added to real value related to negociated cipher */
/* @todo: adjust ssl_added to real value related to negotiated cipher */
size_t max_frag_len = mbedtls_ssl_get_max_frag_len(&state->ssl_context);
max_len = LWIP_MIN(max_frag_len, max_len);
#endif

View File

@ -133,7 +133,7 @@ altcp_proxyconnect_send_request(struct altcp_pcb *conn)
/* overflow */
return ERR_MEM;
}
/* Allocate a bufer for the request string */
/* Allocate a buffer for the request string */
buffer = (char *)mem_malloc(alloc_len);
if (buffer == NULL) {
return ERR_MEM;

View File

@ -338,7 +338,7 @@ httpc_tcp_recv(void *arg, struct altcp_pcb *pcb, struct pbuf *p, err_t r)
if ((p != NULL) && (req->parse_state == HTTPC_PARSE_RX_DATA)) {
req->rx_content_len += p->tot_len;
if (req->recv_fn != NULL) {
/* directly return here: the connection migth already be aborted from the callback! */
/* directly return here: the connection might already be aborted from the callback! */
return req->recv_fn(req->callback_arg, pcb, p, r);
} else {
altcp_recved(pcb, p->tot_len);
@ -718,7 +718,7 @@ typedef struct _httpc_filestate
static void httpc_fs_result(void *arg, httpc_result_t httpc_result, u32_t rx_content_len,
u32_t srv_res, err_t err);
/** Initalize http client state for download to file system */
/** Initialize http client state for download to file system */
static err_t
httpc_fs_init(httpc_filestate_t **filestate_out, const char* local_file_name,
const httpc_connection_t *settings, void* callback_arg)

View File

@ -21,7 +21,7 @@
/** Makefsdata can generate *all* files deflate-compressed (where file size shrinks).
* Since nearly all browsers support this, this is a good way to reduce ROM size.
* To compress the files, "miniz.c" must be downloaded seperately.
* To compress the files, "miniz.c" must be downloaded separately.
*/
#ifndef MAKEFS_SUPPORT_DEFLATE
#define MAKEFS_SUPPORT_DEFLATE 0
@ -259,7 +259,7 @@ int main(int argc, char *argv[])
printf("Excluding files with extensions %s" NEWLINE, exclude_list);
} else if (strstr(argv[i], "-xc:") == argv[i]) {
ncompress_list = &argv[i][4];
printf("Skipping compresion for files with extensions %s" NEWLINE, ncompress_list);
printf("Skipping compression for files with extensions %s" NEWLINE, ncompress_list);
} else if ((strstr(argv[i], "-?")) || (strstr(argv[i], "-h"))) {
print_usage();
exit(0);
@ -639,7 +639,7 @@ static u8_t *get_file_data(const char *filename, int *file_size, int can_be_comp
printf(" - uncompressed: (would be %d bytes larger using deflate)" NEWLINE, (int)(out_bytes - fsize));
}
} else {
printf(" - uncompressed: (file is larger than deflate bufer)" NEWLINE);
printf(" - uncompressed: (file is larger than deflate buffer)" NEWLINE);
}
} else {
printf(" - cannot be compressed" NEWLINE);

View File

@ -7,7 +7,7 @@
* @defgroup iperf Iperf server
* @ingroup apps
*
* This is a simple performance measuring client/server to check your bandwith using
* This is a simple performance measuring client/server to check your bandwidth using
* iPerf2 on a PC as server/client.
* It is currently a minimal implementation providing a TCP client/server only.
*

View File

@ -894,7 +894,7 @@ mdns_handle_probe_tiebreaking(struct netif *netif, struct mdns_packet *pkt)
myprobe_questions_left = myprobe_inpkt.questions_left;
/* Reset match flag */
match = 0;
/* Search for a matching probe in the incomming packet */
/* Search for a matching probe in the incoming packet */
while (pkt->questions_left) {
/* Read probe questions one by one */
res = mdns_read_question(pkt, &pkt_q);
@ -1062,7 +1062,7 @@ cleanup:
}
/**
* Check the incomming packet and parse all questions
* Check the incoming packet and parse all questions
*
* @param netif network interface of incoming packet
* @param pkt incoming packet
@ -1111,7 +1111,7 @@ mdns_parse_pkt_questions(struct netif *netif, struct mdns_packet *pkt,
}
/**
* Check the incomming packet and parse all (known) answers
* Check the incoming packet and parse all (known) answers
*
* @param netif network interface of incoming packet
* @param pkt incoming packet
@ -1283,7 +1283,7 @@ mdns_parse_pkt_known_answers(struct netif *netif, struct mdns_packet *pkt,
}
/**
* Check the incomming packet and parse all authoritative answers to see if the
* Check the incoming packet and parse all authoritative answers to see if the
* query is a probe query.
*
* @param netif network interface of incoming packet
@ -1731,7 +1731,7 @@ mdns_handle_tc_question(void *arg)
* Save time when a probe conflict occurs:
* - Check if we exceeded the maximum of 15 conflicts in 10seconds.
*
* @param netif network interface on which the conflict occured.
* @param netif network interface on which the conflict occurred.
*/
static void
mdns_conflict_save_time(struct netif *netif)
@ -1741,7 +1741,7 @@ mdns_conflict_save_time(struct netif *netif)
u32_t diff;
u8_t index2;
/* Increase the number of conflicts occured */
/* Increase the number of conflicts occurred */
mdns->num_conflicts++;
mdns->conflict_time[mdns->index] = sys_now();
/* Print timestamp list */
@ -1770,8 +1770,8 @@ mdns_conflict_save_time(struct netif *netif)
* - Check if we exceeded the maximum of 15 conflicts in 10seconds.
* - Let the user know there is a conflict.
*
* @param netif network interface on which the conflict occured.
* @param slot service index +1 on which the conflict occured (0 indicate hostname conflict).
* @param netif network interface on which the conflict occurred.
* @param slot service index +1 on which the conflict occurred (0 indicate hostname conflict).
*/
static void
mdns_probe_conflict(struct netif *netif, s8_t slot)
@ -2319,7 +2319,7 @@ mdns_probe_and_announce(void* arg)
case MDNS_STATE_ANNOUNCE_WAIT:
case MDNS_STATE_ANNOUNCING:
if (mdns->sent_num == 0) {
/* probing was succesful, announce all records */
/* probing was successful, announce all records */
mdns->state = MDNS_STATE_ANNOUNCING;
/* Reset rate limit max probe conflict timeout flag */
mdns->rate_limit_activated = 0;

View File

@ -1169,7 +1169,7 @@ mqtt_publish(mqtt_client_t *client, const char *topic, const void *payload, u16_
* @param client MQTT client
* @param topic topic to subscribe to
* @param qos Quality of service, 0 1 or 2 (only used for subscribe)
* @param cb Callback to call when subscribe/unsubscribe reponse is received
* @param cb Callback to call when subscribe/unsubscribe response is received
* @param arg User supplied argument to publish callback
* @param sub 1 for subscribe, 0 for unsubscribe
* @return ERR_OK if successful, @see err_t enum for other results

View File

@ -577,7 +577,7 @@ leave:
* @param body email body (must be NULL-terminated)
* @param callback_fn callback function
* @param callback_arg user argument to callback_fn
* @returns - ERR_OK if structures were allocated and no error occured starting the connection
* @returns - ERR_OK if structures were allocated and no error occurred starting the connection
* (this does not mean the email has been successfully sent!)
* - another err_t on error.
*/

View File

@ -114,7 +114,7 @@
* tables is not possible.
*
* Note lwIP has a very limited notion of IP routing. It currently
* doen't have a route table and doesn't have a notion of the U,G,H flags.
* doesn't have a route table and doesn't have a notion of the U,G,H flags.
* Instead lwIP uses the interface list with only one default interface
* acting as a single gateway interface (G) for the default route.
*
@ -937,7 +937,7 @@ snmp_get_next_node_instance_from_oid(const u32_t *oid, u8_t oid_len, snmp_valida
/*
there is no further (suitable) node inside this MIB, search for the next MIB with following priority
1. search for inner MIB's (whose root is located inside tree of current MIB)
2. search for surrouding MIB's (where the current MIB is the inner MIB) and continue there if any
2. search for surrounding MIB's (where the current MIB is the inner MIB) and continue there if any
3. take the next closest MIB (not being related to the current MIB)
*/
const struct snmp_mib *next_mib;
@ -1056,7 +1056,7 @@ snmp_mib_tree_resolve_next(const struct snmp_mib *mib, const u32_t *oid, u8_t oi
if (oid_offset >= oid_len) {
/* passed oid references a tree node -> return first useable sub node of it */
/* passed oid references a tree node -> return first usable sub node of it */
subnode_oid = 0;
} else {
subnode_oid = *(oid + oid_offset) + 1;
@ -1126,7 +1126,7 @@ snmp_next_oid_init(struct snmp_next_oid_state *state,
}
/** checks if the passed incomplete OID may be a possible candidate for snmp_next_oid_check();
this methid is intended if the complete OID is not yet known but it is very expensive to build it up,
this method is intended if the complete OID is not yet known but it is very expensive to build it up,
so it is possible to test the starting part before building up the complete oid and pass it to snmp_next_oid_check()*/
u8_t
snmp_next_oid_precheck(struct snmp_next_oid_state *state, const u32_t *oid, u8_t oid_len)
@ -1282,9 +1282,9 @@ snmp_decode_truthvalue(const s32_t *asn1_value, u8_t *bool_value)
* get/test/set methods.
*
* @param buf points to a buffer where the resulting ASN1 octet string is stored to
* @param buf_len max length of the bufffer
* @param buf_len max length of the buffer
* @param bit_value Bit value to encode with Bit0 == LSB
* @param bit_count Number of possible bits for the bit value (according to rfc we have to send all bits independant from their truth value)
* @param bit_count Number of possible bits for the bit value (according to rfc we have to send all bits independent from their truth value)
* @return number of bytes used from buffer to store the resulting OctetString
*/
u8_t

View File

@ -1779,7 +1779,7 @@ snmp_complete_outbound_frame(struct snmp_request *request)
if (request->error_status == SNMP_ERR_TOOBIG) {
request->error_index = 0; /* defined by RFC 1157 */
} else if (request->error_index == 0) {
/* set index to varbind where error occured (if not already set before, e.g. during GetBulk processing) */
/* set index to varbind where error occurred (if not already set before, e.g. during GetBulk processing) */
request->error_index = request->inbound_varbind_enumerator.varbind_count;
}
} else {

View File

@ -230,7 +230,7 @@ send_data(const ip_addr_t *addr, u16_t port)
ret = tftp_state.ctx->read(tftp_state.handle, &payload[2], TFTP_MAX_PAYLOAD_SIZE);
if (ret < 0) {
send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "Error occured while reading the file.");
send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "Error occurred while reading the file.");
close_handle();
return;
}

View File

@ -74,7 +74,7 @@ u16_t lwip_standard_chksum(const void *dataptr, int len);
* @return host order (!) lwip checksum (non-inverted Internet sum)
*
* @note accumulator size limits summable length to 64k
* @note host endianess is irrelevant (p3 RFC1071)
* @note host endianness is irrelevant (p3 RFC1071)
*/
u16_t
lwip_standard_chksum(const void *dataptr, int len)

View File

@ -127,7 +127,7 @@ PACK_STRUCT_END
#endif
/* There must be sufficient timeouts, taking into account requirements of the subsystems. */
#if LWIP_TIMERS && (MEMP_NUM_SYS_TIMEOUT < LWIP_NUM_SYS_TIMEOUT_INTERNAL)
#error "MEMP_NUM_SYS_TIMEOUT is too low to accomodate all required timeouts"
#error "MEMP_NUM_SYS_TIMEOUT is too low to accommodate all required timeouts"
#endif
#if (IP_REASSEMBLY && (MEMP_NUM_REASSDATA > IP_REASS_MAX_PBUFS))
#error "MEMP_NUM_REASSDATA > IP_REASS_MAX_PBUFS doesn't make sense since each struct ip_reassdata must hold 2 pbufs at least!"

View File

@ -430,7 +430,7 @@ acd_handle_arp_conflict(struct netif *netif, struct acd *acd)
the netif but the LL address is still open in the background. */
if (acd->state == ACD_STATE_PASSIVE_ONGOING) {
/* Imediatly back off on a conflict. */
/* Immediately back off on a conflict. */
LWIP_DEBUGF(ACD_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE,
("acd_handle_arp_conflict(): conflict when we are in passive mode -> back off\n"));
acd_stop(acd);

View File

@ -7,7 +7,7 @@
* requests from other machines for our physical address.
*
* This implementation complies with RFC 826 (Ethernet ARP). It supports
* Gratuitious ARP from RFC3220 (IP Mobility Support for IPv4) section 4.6
* Gratuitous ARP from RFC3220 (IP Mobility Support for IPv4) section 4.6
* if an interface calls etharp_gratuitous(our_netif) upon address change.
*/

View File

@ -579,7 +579,7 @@ dhcp6_handle_config_reply(struct netif *netif, struct pbuf *p_msg_in)
}
#endif /* LWIP_IPV6_DHCP6_STATELESS */
/** This function is called from nd6 module when an RA messsage is received
/** This function is called from nd6 module when an RA message is received
* It triggers DHCPv6 requests (if enabled).
*/
void
@ -645,7 +645,7 @@ dhcp6_parse_reply(struct pbuf *p, struct dhcp6 *dhcp6)
/* overflow */
return ERR_BUF;
}
/* copy option + length, might be split accross pbufs */
/* copy option + length, might be split across pbufs */
op_len = (u8_t *)pbuf_get_contiguous(p, op_len_buf, 4, 4, offset);
if (op_len == NULL) {
/* failed to get option and length */

View File

@ -1176,7 +1176,7 @@ nd6_tmr(void)
/** Send a neighbor solicitation message for a specific neighbor cache entry
*
* @param entry the neightbor cache entry for wich to send the message
* @param entry the neightbor cache entry for which to send the message
* @param flags one of ND6_SEND_FLAG_*
*/
static void

View File

@ -502,7 +502,7 @@ tcp_close(struct tcp_pcb *pcb)
* @ingroup tcp_raw
* Causes all or part of a full-duplex connection of this PCB to be shut down.
* This doesn't deallocate the PCB unless shutting down both sides!
* Shutting down both sides is the same as calling tcp_close, so if it succeds
* Shutting down both sides is the same as calling tcp_close, so if it succeeds
* (i.e. returns ER_OK), the PCB must not be referenced any more!
*
* @param pcb PCB to shutdown
@ -1908,7 +1908,7 @@ tcp_alloc(u8_t prio)
pcb->tmr = tcp_ticks;
pcb->last_timer = tcp_timer_ctr;
/* RFC 5681 recommends setting ssthresh abritrarily high and gives an example
/* RFC 5681 recommends setting ssthresh arbitrarily high and gives an example
of using the largest advertised receive window. We've seen complications with
receiving TCPs that use window scaling and/or window auto-tuning where the
initial advertised window is very small and then grows rapidly once the

View File

@ -592,7 +592,7 @@ dropped:
}
/** Called from tcp_input to check for TF_CLOSED flag. This results in closing
* and deallocating a pcb at the correct place to ensure noone references it
* and deallocating a pcb at the correct place to ensure no one references it
* any more.
* @returns 1 if the pcb has been closed and deallocated, 0 otherwise
*/

View File

@ -106,7 +106,7 @@
#endif /* TCP_CHECKSUM_ON_COPY*/
/** Define this to 1 for an extra check that the output checksum is valid
* (usefule when the checksum is generated by the application, not the stack) */
* (useful when the checksum is generated by the application, not the stack) */
#ifndef TCP_CHECKSUM_ON_COPY_SANITY_CHECK
#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK 0
#endif

View File

@ -94,7 +94,7 @@
*
* To save memory, the maximum tag length is limited (@see LWIP_HTTPD_MAX_TAG_NAME_LEN).
* To save memory, the maximum insertion string length is limited (@see
* LWIP_HTTPD_MAX_TAG_INSERT_LEN). If this is not enought, @ref LWIP_HTTPD_SSI_MULTIPART
* LWIP_HTTPD_MAX_TAG_INSERT_LEN). If this is not enough, @ref LWIP_HTTPD_SSI_MULTIPART
* can be used.
*/
#if !defined LWIP_HTTPD_SSI || defined __DOXYGEN__

View File

@ -143,7 +143,7 @@ struct mdns_outmsg {
/** If legacy query. (tx_id needed, and write
* question again in reply before answer) */
u8_t legacy_query;
/** If the query is a probe msg we need to respond immediatly. Independent of
/** If the query is a probe msg we need to respond immediately. Independent of
* the QU or QM flag. */
u8_t probe_query_recv;
/* Question bitmask for host information */

View File

@ -42,7 +42,7 @@
/** NetBIOS name of lwip device
* This must be uppercase until NETBIOS_STRCMP() is defined to a string
* comparision function that is case insensitive.
* comparison function that is case insensitive.
* If you want to use the netif's hostname, use this (with LWIP_NETIF_HOSTNAME):
* (ip_current_netif() != NULL ? ip_current_netif()->hostname != NULL ? ip_current_netif()->hostname : "" : "")
*

View File

@ -50,7 +50,7 @@ extern "C" {
#include "lwip/err.h"
#include "lwip/apps/snmp_core.h"
/** SNMP variable binding descriptor (publically needed for traps) */
/** SNMP variable binding descriptor (publicly needed for traps) */
struct snmp_varbind
{
/** pointer to next varbind, NULL for last in list */

View File

@ -60,7 +60,7 @@ extern struct snmp_threadsync_instance snmp_mib2_lwip_locks;
#define SNMP_SYSSERVICES ((1 << 6) | (1 << 3) | ((IP_FORWARD) << 2))
#endif
void snmp_mib2_set_sysdescr(const u8_t* str, const u16_t* len); /* read-only be defintion */
void snmp_mib2_set_sysdescr(const u8_t* str, const u16_t* len); /* read-only be definition */
void snmp_mib2_set_syscontact(u8_t *ocstr, u16_t *ocstrlen, u16_t bufsize);
void snmp_mib2_set_syscontact_readonly(const u8_t *ocstr, const u16_t *ocstrlen);
void snmp_mib2_set_sysname(u8_t *ocstr, u16_t *ocstrlen, u16_t bufsize);

View File

@ -72,7 +72,7 @@ struct threadsync_data
struct snmp_node_instance proxy_instance;
};
/** Thread sync instance. Needed EXCATLY once for every thread to be synced into. */
/** Thread sync instance. Needed EXACTLY once for every thread to be synced into. */
struct snmp_threadsync_instance
{
sys_sem_t sem;

View File

@ -74,7 +74,7 @@
/** Platform specific diagnostic output.<br>
* Note the default implementation pulls in printf, which may
* in turn pull in a lot of standard libary code. In resource-constrained
* in turn pull in a lot of standard library code. In resource-constrained
* systems, this should be defined to something less resource-consuming.
*/
#ifndef LWIP_PLATFORM_DIAG
@ -85,7 +85,7 @@
/** Platform specific assertion handling.<br>
* Note the default implementation pulls in printf, fflush and abort, which may
* in turn pull in a lot of standard libary code. In resource-constrained
* in turn pull in a lot of standard library code. In resource-constrained
* systems, this should be defined to something less resource-consuming.
*/
#ifndef LWIP_PLATFORM_ASSERT

View File

@ -2834,7 +2834,7 @@
* the first 'opt1len' bytes and the rest starts at 'opt2'. opt2len can
* be simply calculated: 'opt2len = optlen - opt1len;'
* - p: input packet, p->payload points to application data (that's why tcp hdr
* and options are passed in seperately)
* and options are passed in separately)
* Return value:
* - ERR_OK: continue input of this packet as normal
* - != ERR_OK: drop this packet for input (don't continue input processing)

View File

@ -73,7 +73,7 @@ typedef enum {
* that stay active even if the netif has a routable address selected.
* In such a case, we cannot defend our address */
ACD_STATE_PASSIVE_ONGOING,
/* To many conflicts occured, we need to wait before restarting the selection
/* To many conflicts occurred, we need to wait before restarting the selection
* process */
ACD_STATE_RATE_LIMIT
} acd_state_enum_t;

View File

@ -94,7 +94,7 @@ extern "C" {
void magic_init(void);
/*
* Randomize our random seed value. To be called for truely random events
* Randomize our random seed value. To be called for truly random events
* such as user operations and network traffic.
*/
void magic_randomize(void);

View File

@ -265,7 +265,7 @@ extern int maxoctets_timeout; /* Timeout for check of octets limit */
#define PPP_OCTETS_DIRECTION_IN 1
#define PPP_OCTETS_DIRECTION_OUT 2
#define PPP_OCTETS_DIRECTION_MAXOVERAL 3
/* same as previos, but little different on RADIUS side */
/* same as previous, but little different on RADIUS side */
#define PPP_OCTETS_DIRECTION_MAXSESSION 4
#endif

View File

@ -33,7 +33,7 @@
*
* Implemented LANManager type password response to MS-CHAP challenges.
* Now pppd provides both NT style and LANMan style blocks, and the
* prefered is set by option "ms-lanman". Default is to use NT.
* preferred is set by option "ms-lanman". Default is to use NT.
* The hash text (StdText) was taken from Win95 RASAPI32.DLL.
*
* You should also use DOMAIN\\USERNAME as described in README.MSCHAP80

View File

@ -1537,7 +1537,7 @@ static int ipcp_reqci(fsm *f, u_char *inp, int *len, int reject_if_disagree) {
next = inp;
while (l) {
orc = CONFACK; /* Assume success */
cip = p = next; /* Remember begining of CI */
cip = p = next; /* Remember beginning of CI */
if (l < 2 || /* Not enough data for CI header or */
p[1] < 2 || /* CI length too small or */
p[1] > l) { /* CI length too big? */
@ -1589,7 +1589,7 @@ static int ipcp_reqci(fsm *f, u_char *inp, int *len, int reject_if_disagree) {
* If he doesn't know our address, or if we both have our address
* but disagree about it, then NAK it with our idea.
*/
GETLONG(tl, p); /* Parse desination address (ours) */
GETLONG(tl, p); /* Parse destination address (ours) */
ciaddr2 = lwip_htonl(tl);
if (ciaddr2 != wo->ouraddr) {
if (ciaddr2 == 0 || !wo->accept_local) {

View File

@ -913,7 +913,7 @@ static int ipv6cp_reqci(fsm *f, u_char *inp, int *len, int reject_if_disagree) {
next = inp;
while (l) {
orc = CONFACK; /* Assume success */
cip = p = next; /* Remember begining of CI */
cip = p = next; /* Remember beginning of CI */
if (l < 2 || /* Not enough data for CI header or */
p[1] < 2 || /* CI length too small or */
p[1] > l) { /* CI length too big? */

View File

@ -1855,7 +1855,7 @@ static int lcp_reqci(fsm *f, u_char *inp, int *lenp, int reject_if_disagree) {
rejp = inp;
while (l) {
orc = CONFACK; /* Assume success */
cip = p = next; /* Remember begining of CI */
cip = p = next; /* Remember beginning of CI */
if (l < 2 || /* Not enough data for CI header or */
p[1] < 2 || /* CI length too small or */
p[1] > l) { /* CI length too big? */

View File

@ -196,7 +196,7 @@ u32_t magic(void) {
/*** LOCAL DATA STRUCTURES ***/
/*****************************/
#ifndef LWIP_RAND
static int magic_randomized; /* Set when truely randomized. */
static int magic_randomized; /* Set when truly randomized. */
#endif /* LWIP_RAND */
static u32_t magic_randomseed; /* Seed used for random number generation. */
@ -231,7 +231,7 @@ void magic_init(void) {
* magic_init - Initialize the magic number generator.
*
* Randomize our random seed value. Here we use the fact that
* this function is called at *truely random* times by the polling
* this function is called at *truly random* times by the polling
* and network functions. Here we only get 16 bits of new random
* value but we use the previous value to randomize the other 16
* bits.
@ -254,9 +254,9 @@ void magic_randomize(void) {
* Return a new random number.
*
* Here we use the Borland rand() function to supply a pseudo random
* number which we make truely random by combining it with our own
* seed which is randomized by truely random events.
* Thus the numbers will be truely random unless there have been no
* number which we make truly random by combining it with our own
* seed which is randomized by truly random events.
* Thus the numbers will be truly random unless there have been no
* operator or network events in which case it will be pseudo random
* seeded by the real time clock.
*/

View File

@ -132,7 +132,7 @@ static void pppoe_clear_softc(struct pppoe_softc *, const char *);
/* internal timeout handling */
static void pppoe_timeout(void *);
/* sending actual protocol controll packets */
/* sending actual protocol control packets */
static err_t pppoe_send_padi(struct pppoe_softc *);
static err_t pppoe_send_padr(struct pppoe_softc *);
#ifdef PPPOE_SERVER

View File

@ -254,7 +254,7 @@ static void test_sockets_msgapi_update_iovs(struct msghdr *msg, size_t bytes)
/* note: this modifies the underyling iov_base and iov_len for a partial
read for an individual vector. This updates the msg->msg_iov pointer
to skip fully consumed vecotrs */
to skip fully consumed vectors */
/* process fully consumed vectors */
for (i = 0; i < msg->msg_iovlen; i++) {

View File

@ -297,7 +297,7 @@ static err_t lwip_tx_func(struct netif *netif, struct pbuf *p)
check_pkt(p, 278, magic_cookie, sizeof(magic_cookie));
/* Check dchp message type, can be at different positions */
/* Check dhcp message type, can be at different positions */
if (txpacket == 1) {
u8_t dhcp_discover_opt[] = { 0x35, 0x01, 0x01 };
check_pkt_fuzzy(p, 282, dhcp_discover_opt, sizeof(dhcp_discover_opt));
@ -390,7 +390,7 @@ static err_t lwip_tx_func(struct netif *netif, struct pbuf *p)
check_pkt(p, 278, magic_cookie, sizeof(magic_cookie));
/* Check dchp message type, can be at different positions */
/* Check dhcp message type, can be at different positions */
if (txpacket == 1) {
u8_t dhcp_discover_opt[] = { 0x35, 0x01, 0x01 };
check_pkt_fuzzy(p, 282, dhcp_discover_opt, sizeof(dhcp_discover_opt));
@ -449,7 +449,7 @@ static err_t lwip_tx_func(struct netif *netif, struct pbuf *p)
check_pkt(p, 278, magic_cookie, sizeof(magic_cookie));
/* Check dchp message type, can be at different positions */
/* Check dhcp message type, can be at different positions */
check_pkt_fuzzy(p, 282, dhcp_request_opt, sizeof(dhcp_request_opt));
break;
}

View File

@ -1607,7 +1607,7 @@ START_TEST(test_tcp_persist_split)
#if TCP_OVERSIZE_DBGCHECK
/* Split segment already transmitted, should be at 0 */
EXPECT(pcb->unacked->oversize_left == 0);
/* Remainder segement should match pcb value (which is 0) */
/* Remainder segment should match pcb value (which is 0) */
EXPECT(pcb->unsent->oversize_left == pcb->unsent_oversize);
#endif /* TCP_OVERSIZE_DBGCHECK */
#endif /* TCP_OVERSIZE */