diff --git a/configure.ac b/configure.ac index 23a318ee5..4fcac7ad5 100644 --- a/configure.ac +++ b/configure.ac @@ -90,7 +90,7 @@ LIBUNBOUND_AGE=5 # Current and Age. Set Revision to 0, since this is the first # implementation of the new API. # -# Otherwise, we're changing the binary API and breaking bakward +# Otherwise, we're changing the binary API and breaking backward # compatibility with old binaries. Increment Current. Set Age to 0, # since we're backward compatible with no previous APIs. Set Revision # to 0 too. diff --git a/contrib/aaaa-filter-iterator.patch b/contrib/aaaa-filter-iterator.patch index 0647f4979..b3960deaa 100644 --- a/contrib/aaaa-filter-iterator.patch +++ b/contrib/aaaa-filter-iterator.patch @@ -244,7 +244,7 @@ Index: trunk/iterator/iterator.c +/* ASN: End of added code */ + /* - * Return priming query results to interestes super querystates. + * Return priming query results to interested super querystates. * @@ -2941,6 +3050,9 @@ else if(super->qinfo.qtype == LDNS_RR_TYPE_DS && ((struct iter_qstate*) @@ -311,7 +311,7 @@ Index: trunk/iterator/iterator.h + /** * Each time a delegation point changes for a given query or a * query times out and/or wakes up, this state is (re)visited. - * This state is reponsible for iterating through a list of + * This state is responsible for iterating through a list of @@ -346,6 +357,13 @@ */ int refetch_glue; diff --git a/contrib/parseunbound.pl b/contrib/parseunbound.pl index 6a6a76d6f..1d294b132 100644 --- a/contrib/parseunbound.pl +++ b/contrib/parseunbound.pl @@ -91,7 +91,7 @@ while ( scalar keys %startstats < $numthreads || scalar keys %donestats < $numth $allstats{$inthread}->{outstandingexc} = $4; } elsif ( $line =~ m/info: average recursion processing time ([0-9\.]+) sec/ ) { - $allstats{$inthread}->{recursionavg} = int($1 * 1000); # change sec to milisec. + $allstats{$inthread}->{recursionavg} = int($1 * 1000); # change sec to millisec. } elsif ( $line =~ m/info: histogram of recursion processing times/ ) { next; @@ -103,7 +103,7 @@ while ( scalar keys %startstats < $numthreads || scalar keys %donestats < $numth } elsif ( $line =~ m/info: lower\(secs\) upper\(secs\) recursions/ ) { # since after this line we're unsure if we get these numbers - # at all, we sould consider this marker as the end of the + # at all, we should consider this marker as the end of the # block. Chances that we're parsing a file halfway written # at this stage are small. Bold statement. $donestats{$inthread} = 1; diff --git a/daemon/remote.c b/daemon/remote.c index 243d94c49..3918407af 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -1771,7 +1771,7 @@ negative_del_rrset(struct lruhash_entry* e, void* arg) struct ub_packed_rrset_key* k = (struct ub_packed_rrset_key*)e->key; struct packed_rrset_data* d = (struct packed_rrset_data*)e->data; /* delete the parentside negative cache rrsets, - * these are namerserver rrsets that failed lookup, rdata empty */ + * these are nameserver rrsets that failed lookup, rdata empty */ if((k->rk.flags & PACKED_RRSET_PARENT_SIDE) && d->count == 1 && d->rrsig_count == 0 && d->rr_len[0] == 0) { d->ttl = inf->expired; diff --git a/daemon/unbound.c b/daemon/unbound.c index 070a824d6..432aa912e 100644 --- a/daemon/unbound.c +++ b/daemon/unbound.c @@ -400,7 +400,7 @@ detach(void) #endif /* HAVE_DAEMON */ } -/** daemonize, drop user priviliges and chroot if needed */ +/** daemonize, drop user privileges and chroot if needed */ static void perform_setup(struct daemon* daemon, struct config_file* cfg, int debug_mode, const char** cfgfile, int need_pidfile) diff --git a/dnscrypt/dnscrypt.c b/dnscrypt/dnscrypt.c index db054df9d..92338dc7e 100644 --- a/dnscrypt/dnscrypt.c +++ b/dnscrypt/dnscrypt.c @@ -547,7 +547,7 @@ dnsc_find_cert(struct dnsc_env* dnscenv, struct sldns_buffer* buffer) * In order to be able to serve certs over TXT, we can reuse the local-zone and * local-data config option. The zone and qname are infered from the * provider_name and the content of the TXT record from the certificate content. - * returns the number of certtificate TXT record that were loaded. + * returns the number of certificate TXT record that were loaded. * < 0 in case of error. */ static int diff --git a/doc/Changelog b/doc/Changelog index c8321588d..535fc29e7 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,6 @@ 15 September 2017: Wouter - Fix unbound-host to report error for DNSSEC state of failed lookups. + - Spelling fixes, from Phil Porada. 13 September 2017: Wouter - tag 1.6.6rc2 diff --git a/doc/example.conf.in b/doc/example.conf.in index 3cca078f2..ef584b3f2 100644 --- a/doc/example.conf.in +++ b/doc/example.conf.in @@ -512,7 +512,7 @@ server: # that set CD but cannot validate themselves. # ignore-cd-flag: no - # Serve expired reponses from cache, with TTL 0 in the response, + # Serve expired responses from cache, with TTL 0 in the response, # and then attempt to fetch the data afresh. # serve-expired: no diff --git a/doc/requirements.txt b/doc/requirements.txt index a66962d4a..b643cec17 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -81,7 +81,7 @@ o Too many Features. 5. Choices ---------- -o rfc2181 decourages duplicates RRs in RRsets. unbound does not create +o rfc2181 discourages duplicates RRs in RRsets. unbound does not create duplicates, but when presented with duplicates on the wire from the authoritative servers, does not perform duplicate removal. It does do some rrsig duplicate removal, in the msgparser, for dnssec qtype diff --git a/doc/unbound.conf.5.in b/doc/unbound.conf.5.in index 8994a158e..2bdcc5cb9 100644 --- a/doc/unbound.conf.5.in +++ b/doc/unbound.conf.5.in @@ -1531,7 +1531,7 @@ specialized cache. If the authority indicated no support, the response is stored in the regular cache. .LP Additionally, when a client includes the option in its queries, Unbound will -forward the option to the authority if prensent in the whitelist, or +forward the option to the authority if present in the whitelist, or \fBclient\-subnet\-always\-forward\fR is set to yes. In this case the lookup in the regular cache is skipped. .LP diff --git a/edns-subnet/addrtree.h b/edns-subnet/addrtree.h index 857e677f9..71d9d2ec6 100644 --- a/edns-subnet/addrtree.h +++ b/edns-subnet/addrtree.h @@ -108,7 +108,7 @@ struct addrnode { struct addredge { /** address of connected node */ addrkey_t *str; - /** lenght in bits of str */ + /** length in bits of str */ addrlen_t len; /** child node this edge is connected to */ struct addrnode *node; diff --git a/edns-subnet/subnetmod.c b/edns-subnet/subnetmod.c index 9e76cefdf..c906e4e53 100644 --- a/edns-subnet/subnetmod.c +++ b/edns-subnet/subnetmod.c @@ -532,7 +532,7 @@ parse_subnet_option(struct edns_option* ecs_option, struct ecs_data* ecs) ecs->subnet_addr_fam = sldns_read_uint16(ecs_option->opt_data); ecs->subnet_source_mask = ecs_option->opt_data[2]; ecs->subnet_scope_mask = ecs_option->opt_data[3]; - /* remaing bytes indicate address */ + /* remaining bytes indicate address */ /* validate input*/ /* option length matches calculated length? */ @@ -602,7 +602,7 @@ ecs_query_response(struct module_qstate* qstate, struct dns_msg* response, if(sq->subnet_sent && FLAGS_GET_RCODE(response->rep->flags) == LDNS_RCODE_REFUSED) { - /* REFUSED reponse to ECS query, remove ECS option. */ + /* REFUSED response to ECS query, remove ECS option. */ edns_opt_list_remove(&qstate->edns_opts_back_out, qstate->env->cfg->client_subnet_opcode); sq->subnet_sent = 0; @@ -628,7 +628,7 @@ ecs_edns_back_parsed(struct module_qstate* qstate, int id, sq->ecs_server_in.subnet_validdata) /* Only skip global cache store if we sent an ECS option * and received one back. Answers from non-whitelisted - * servers will end up in global cache. Ansers for + * servers will end up in global cache. Answers for * queries with 0 source will not (unless nameserver * does not support ECS). */ qstate->no_cache_store = 1; diff --git a/edns-subnet/subnetmod.h b/edns-subnet/subnetmod.h index 29bf64b4f..c7f56327f 100644 --- a/edns-subnet/subnetmod.h +++ b/edns-subnet/subnetmod.h @@ -119,7 +119,7 @@ int ecs_whitelist_check(struct query_info* qinfo, uint16_t flags, socklen_t addrlen, uint8_t* zone, size_t zonelen, struct regional* region, int id, void* cbargs); -/** Check whether reponse from server contains ECS record, if so, skip cache +/** Check whether response from server contains ECS record, if so, skip cache * store. Called just after parsing EDNS data from server. */ int ecs_edns_back_parsed(struct module_qstate* qstate, int id, void* cbargs); diff --git a/iterator/iter_utils.h b/iterator/iter_utils.h index 50c5fc093..d0629a83e 100644 --- a/iterator/iter_utils.h +++ b/iterator/iter_utils.h @@ -252,7 +252,7 @@ void caps_strip_reply(struct reply_info* rep); int caps_failed_rcode(struct reply_info* rep); /** - * Store parent-side rrset in seperate rrset cache entries for later + * Store parent-side rrset in separate rrset cache entries for later * last-resort * lookups in case the child-side versions of this information * fails. * @param env: environment with cache, time, ... diff --git a/iterator/iterator.c b/iterator/iterator.c index 01ac883e8..6c49709ad 100644 --- a/iterator/iterator.c +++ b/iterator/iterator.c @@ -36,7 +36,7 @@ /** * \file * - * This file contains a module that performs recusive iterative DNS query + * This file contains a module that performs recursive iterative DNS query * processing. */ @@ -833,7 +833,7 @@ prime_stub(struct module_qstate* qstate, struct iter_qstate* iq, int id, /** * Generate A and AAAA checks for glue that is in-zone for the referral - * we just got to obtain authoritative information on the adresses. + * we just got to obtain authoritative information on the addresses. * * @param qstate: the qtstate that triggered the need to prime. * @param iq: iterator query state. @@ -1353,7 +1353,7 @@ processInitRequest(struct module_qstate* qstate, struct iter_qstate* iq, * the same init processing as ones that do not. Request events that reach * this state must have a valid currentDelegationPoint set. * - * This part is primarly handling stub zone priming. Events that reach this + * This part is primarily handling stub zone priming. Events that reach this * state must have a current delegation point. * * @param qstate: query state. @@ -2396,7 +2396,7 @@ processQueryResponse(struct module_qstate* qstate, struct iter_qstate* iq, if(FLAGS_GET_RCODE(iq->response->rep->flags) == LDNS_RCODE_NXDOMAIN) { /* Stop resolving when NXDOMAIN is DNSSEC - * signed. Based on assumption that namservers + * signed. Based on assumption that nameservers * serving signed zones do not return NXDOMAIN * for empty-non-terminals. */ if(iq->dnssec_expected) @@ -2753,7 +2753,7 @@ processPrimeResponse(struct module_qstate* qstate, int id) /** * Do final processing on responses to target queries. Events reach this * state after the iterative resolution algorithm terminates. This state is - * responsible for reactiving the original event, and housekeeping related + * responsible for reactivating the original event, and housekeeping related * to received target responses (caching, updating the current delegation * point, etc). * Callback from walk_supers for every super state that is interested in @@ -3096,7 +3096,7 @@ processFinished(struct module_qstate* qstate, struct iter_qstate* iq, } /* - * Return priming query results to interestes super querystates. + * Return priming query results to interested super querystates. * * Sets the delegation point and delegation message (not nonRD queries). * This is a callback from walk_supers. diff --git a/iterator/iterator.h b/iterator/iterator.h index 75aafee47..841a36436 100644 --- a/iterator/iterator.h +++ b/iterator/iterator.h @@ -36,7 +36,7 @@ /** * \file * - * This file contains a module that performs recusive iterative DNS query + * This file contains a module that performs recursive iterative DNS query * processing. */ @@ -62,7 +62,7 @@ struct rbtree_type; /** max number of queries-sent-out. Make sure large NS set does not loop */ #define MAX_SENT_COUNT 32 /** max number of queries for which to perform dnsseclameness detection, - * (rrsigs misssing detection) after that, just pick up that response */ + * (rrsigs missing detection) after that, just pick up that response */ #define DNSSEC_LAME_DETECT_COUNT 4 /** * max number of QNAME minimisation iterations. Limits number of queries for @@ -142,11 +142,11 @@ struct iter_env { enum minimisation_state { /** * (Re)start minimisation. Outgoing QNAME should be set to dp->name. - * State entered on new query or after following refferal or CNAME. + * State entered on new query or after following referral or CNAME. */ INIT_MINIMISE_STATE = 0, /** - * QNAME minimisataion ongoing. Increase QNAME on every iteration. + * QNAME minimisation ongoing. Increase QNAME on every iteration. */ MINIMISE_STATE, /** @@ -184,7 +184,7 @@ enum iter_state { /** * Each time a delegation point changes for a given query or a * query times out and/or wakes up, this state is (re)visited. - * This state is reponsible for iterating through a list of + * This state is responsible for iterating through a list of * nameserver targets. */ QUERYTARGETS_STATE, @@ -378,7 +378,7 @@ struct iter_qstate { struct query_info qinfo_out; /** - * Count number of QNAME minisation iterations. Used to limit number of + * Count number of QNAME minimisation iterations. Used to limit number of * outgoing queries when QNAME minimisation is enabled. */ int minimise_count; @@ -430,7 +430,7 @@ void iter_operate(struct module_qstate* qstate, enum module_ev event, int id, struct outbound_entry* outbound); /** - * Return priming query results to interestes super querystates. + * Return priming query results to interested super querystates. * * Sets the delegation point and delegation message (not nonRD queries). * This is a callback from walk_supers. diff --git a/libunbound/context.h b/libunbound/context.h index 1761c4d87..684d11eff 100644 --- a/libunbound/context.h +++ b/libunbound/context.h @@ -90,7 +90,7 @@ struct ub_ctx { int dothread; /** next thread number for new threads */ int thr_next_num; - /** if logfile is overriden */ + /** if logfile is overridden */ int logfile_override; /** what logfile to use instead */ FILE* log_out; diff --git a/libunbound/libunbound.c b/libunbound/libunbound.c index eaa31c71c..9b4dcab15 100644 --- a/libunbound/libunbound.c +++ b/libunbound/libunbound.c @@ -37,7 +37,7 @@ * \file * * This file contains functions to resolve DNS queries and - * validate the answers. Synchonously and asynchronously. + * validate the answers. Synchronously and asynchronously. * */ diff --git a/libunbound/python/doc/examples/example7.rst b/libunbound/python/doc/examples/example7.rst index 2f48c8f0f..5fde18e05 100644 --- a/libunbound/python/doc/examples/example7.rst +++ b/libunbound/python/doc/examples/example7.rst @@ -23,7 +23,7 @@ IDN converted attributes The :class:`unbound.ub_data` class contains attributes suffix which converts the dname to UTF string. These attributes have the ``_idn`` suffix. -Apart from this aproach, two conversion functions exist +Apart from this approach, two conversion functions exist (:func:`unbound.idn2dname` and :func:`unbound.dname2idn`). Source code diff --git a/libunbound/unbound.h b/libunbound/unbound.h index ac747a7cc..a5599e48f 100644 --- a/libunbound/unbound.h +++ b/libunbound/unbound.h @@ -37,7 +37,7 @@ * \file * * This file contains functions to resolve DNS queries and - * validate the answers. Synchonously and asynchronously. + * validate the answers. Synchronously and asynchronously. * * Several ways to use this interface from an application wishing * to perform (validated) DNS lookups. @@ -177,7 +177,7 @@ struct ub_result { * False, if validation failed or domain queried has no security info. * * It is possible to get a result with no data (havedata is false), - * and secure is true. This means that the non-existance of the data + * and secure is true. This means that the non-existence of the data * was cryptographically proven (with signatures). */ int secure; @@ -746,7 +746,7 @@ struct ub_server_stats { /** * Statistics to send over the control pipe when asked - * This struct is made to be memcpied, sent in binary. + * This struct is made to be memcopied, sent in binary. * shm mapped with (number+1) at num_threads+1, with first as total */ struct ub_stats_info { diff --git a/pythonmod/doc/examples/example2.rst b/pythonmod/doc/examples/example2.rst index 4ba9239a0..663d1eb77 100644 --- a/pythonmod/doc/examples/example2.rst +++ b/pythonmod/doc/examples/example2.rst @@ -46,4 +46,4 @@ Dig produces the following output:: ;; MSG SIZE rcvd: 54 As we handle (override) in the python module only queries ending with -``localdomain.``, unboud can still resolve host names. +``localdomain.``, unbound can still resolve host names. diff --git a/pythonmod/doc/examples/example3.rst b/pythonmod/doc/examples/example3.rst index 6213dc188..bc0e05f2e 100644 --- a/pythonmod/doc/examples/example3.rst +++ b/pythonmod/doc/examples/example3.rst @@ -10,7 +10,7 @@ As soon as the iterator module returns the response, we : 3. rewrite the data in cache 4. return modified packet -Note that the steps 1 and 3 are neccessary only in case, the python module is the first module in the processing chain. +Note that the steps 1 and 3 are necessary only in case, the python module is the first module in the processing chain. In other cases, the validator module guarantees updating data which are produced by iterator module. Complete source code diff --git a/pythonmod/doc/examples/example5.rst b/pythonmod/doc/examples/example5.rst index 058fc331e..938d8941b 100644 --- a/pythonmod/doc/examples/example5.rst +++ b/pythonmod/doc/examples/example5.rst @@ -3,7 +3,7 @@ EDNS options This example shows how to interact with EDNS options. -When quering unbound with the EDNS option ``65001`` and data ``0xc001`` we +When querying unbound with the EDNS option ``65001`` and data ``0xc001`` we expect an answer with the same EDNS option code and data ``0xdeadbeef``. @@ -146,7 +146,7 @@ and use a valid script path:: python-script: "./examples/edns.py" -Quering with EDNS option ``65001:0xc001``: +Querying with EDNS option ``65001:0xc001``: :: diff --git a/pythonmod/doc/examples/example6.rst b/pythonmod/doc/examples/example6.rst index 07117cd55..eb3254022 100644 --- a/pythonmod/doc/examples/example6.rst +++ b/pythonmod/doc/examples/example6.rst @@ -84,7 +84,7 @@ The callback function's prototype is the following: :param rep: reply_info struct; :param rcode: return code for the query; :param edns: edns_data sent from the client side. The list with the EDNS - options is accesible through edns.opt_list. It SHOULD NOT be + options is accessible through edns.opt_list. It SHOULD NOT be altered; :param opt_list_out: the list with the EDNS options that will be sent as a reply. It can be populated with EDNS options; @@ -120,7 +120,7 @@ The callback function's prototype is the following: :param rep: reply_info struct; :param rcode: return code for the query; :param edns: edns_data sent from the client side. The list with the - EDNS options is accesible through edns.opt_list. It + EDNS options is accessible through edns.opt_list. It SHOULD NOT be altered; :param opt_list_out: the list with the EDNS options that will be sent as a reply. It can be populated with EDNS options; diff --git a/pythonmod/doc/modules/functions.rst b/pythonmod/doc/modules/functions.rst index 627d44922..49ea7bfa4 100644 --- a/pythonmod/doc/modules/functions.rst +++ b/pythonmod/doc/modules/functions.rst @@ -24,7 +24,7 @@ Cache :param qstate: :class:`module_qstate` :param qinfo: :class:`query_info` :param msgrep: :class:`reply_info` - :param is_referal: integer + :param is_referral: integer :rtype: boolean .. function:: invalidateQueryInCache(qstate, qinfo) diff --git a/pythonmod/doc/modules/struct.rst b/pythonmod/doc/modules/struct.rst index 3af5d8a48..c74298b8b 100644 --- a/pythonmod/doc/modules/struct.rst +++ b/pythonmod/doc/modules/struct.rst @@ -108,7 +108,7 @@ query_info .. attribute:: qname_len - Lenght of question name (number of bytes). + Length of question name (number of bytes). .. attribute:: qname_list[] diff --git a/pythonmod/doc/usecase.rst b/pythonmod/doc/usecase.rst index 2975740bb..5845061b0 100644 --- a/pythonmod/doc/usecase.rst +++ b/pythonmod/doc/usecase.rst @@ -25,7 +25,7 @@ Controled by secured queries secured with private key. Dynamic translation service --------------------------- -DNS request can be translated to virtualy any answer, that's easy to implement in client side +DNS request can be translated to virtually any answer, that's easy to implement in client side because of many DNS libraries available. Examples : diff --git a/pythonmod/examples/edns.py b/pythonmod/examples/edns.py index 3fae1c652..37ce9e279 100644 --- a/pythonmod/examples/edns.py +++ b/pythonmod/examples/edns.py @@ -77,7 +77,7 @@ def init_standard(id, env): The function's signature is the same as the C counterpart and allows for extra functionality during init. ..note:: This function is preferred by unbound over the old init function. - ..note:: The previously accesible configuration options can now be found in + ..note:: The previously accessible configuration options can now be found in env.cgf. """ log_info("python: inited script {}".format(env.cfg.python_script)) @@ -94,7 +94,7 @@ def init(id, cfg): """Previous version init function. ..note:: This function is still supported for backwards compatibility when the init_standard function is missing. When init_standard is - present this function SHOULD be ommited to avoid confusion to the + present this function SHOULD be omitted to avoid confusion to the reader. """ return True diff --git a/pythonmod/examples/inplace_callbacks.py b/pythonmod/examples/inplace_callbacks.py index 751dee510..02ee56e36 100644 --- a/pythonmod/examples/inplace_callbacks.py +++ b/pythonmod/examples/inplace_callbacks.py @@ -99,7 +99,7 @@ def inplace_cache_callback(qinfo, qstate, rep, rcode, edns, opt_list_out, :param rep: reply_info struct; :param rcode: return code for the query; :param edns: edns_data sent from the client side. The list with the EDNS - options is accesible through edns.opt_list. It SHOULD NOT be + options is accessible through edns.opt_list. It SHOULD NOT be altered; :param opt_list_out: the list with the EDNS options that will be sent as a reply. It can be populated with EDNS options; @@ -107,7 +107,7 @@ def inplace_cache_callback(qinfo, qstate, rep, rcode, edns, opt_list_out, want to append a new option to opt_list_out. :return: True on success, False on failure. - For demostration purposes we want to see if EDNS option 65002 is present + For demonstration purposes we want to see if EDNS option 65002 is present and reply with a new value. """ log_info("python: called back while answering from cache.") @@ -142,7 +142,7 @@ def inplace_local_callback(qinfo, qstate, rep, rcode, edns, opt_list_out, :param rep: reply_info struct; :param rcode: return code for the query; :param edns: edns_data sent from the client side. The list with the - EDNS options is accesible through edns.opt_list. It + EDNS options is accessible through edns.opt_list. It SHOULD NOT be altered; :param opt_list_out: the list with the EDNS options that will be sent as a reply. It can be populated with EDNS options; @@ -173,7 +173,7 @@ def inplace_servfail_callback(qinfo, qstate, rep, rcode, edns, opt_list_out, want to append a new option to opt_list_out. :return: True on success, False on failure. - For demostration purposes we want to reply with an empty EDNS code '65003'. + For demonstration purposes we want to reply with an empty EDNS code '65003'. """ log_info("python: called back while servfail.") b = bytearray.fromhex("") @@ -186,7 +186,7 @@ def init_standard(id, env): The function's signature is the same as the C counterpart and allows for extra functionality during init. ..note:: This function is preferred by unbound over the old init function. - ..note:: The previously accesible configuration options can now be found in + ..note:: The previously accessible configuration options can now be found in env.cgf. """ log_info("python: inited script {}".format(env.cfg.python_script)) @@ -218,7 +218,7 @@ def init(id, cfg): """Previous version init function. ..note:: This function is still supported for backwards compatibility when the init_standard function is missing. When init_standard is - present this function SHOULD be ommited to avoid confusion to the + present this function SHOULD be omitted to avoid confusion to the reader. """ return True diff --git a/pythonmod/interface.i b/pythonmod/interface.i index 09d726f2c..748dec52d 100644 --- a/pythonmod/interface.i +++ b/pythonmod/interface.i @@ -1277,7 +1277,7 @@ struct delegpt* find_delegation(struct module_qstate* qstate, char *nm, size_t n Functions * ************************************************************************************ */ /****************************** - * Various debuging functions * + * Various debugging functions * ******************************/ void verbose(enum verbosity_value level, const char* format, ...); void log_info(const char* format, ...); diff --git a/services/mesh.c b/services/mesh.c index f04ae16dd..2f92880fe 100644 --- a/services/mesh.c +++ b/services/mesh.c @@ -1290,7 +1290,7 @@ int mesh_state_add_reply(struct mesh_state* s, struct edns_data* edns, /** * Continue processing the mesh state at another module. - * Handles module to modules tranfer of control. + * Handles module to modules transfer of control. * Handles module finished. * @param mesh: the mesh area. * @param mstate: currently active mesh state. diff --git a/services/outside_network.c b/services/outside_network.c index fe2b55b1a..ec9e11a0e 100644 --- a/services/outside_network.c +++ b/services/outside_network.c @@ -364,9 +364,9 @@ use_free_buffer(struct outside_network* outnet) } } -/** decomission a tcp buffer, closes commpoint and frees waiting_tcp entry */ +/** decommission a tcp buffer, closes commpoint and frees waiting_tcp entry */ static void -decomission_pending_tcp(struct outside_network* outnet, +decommission_pending_tcp(struct outside_network* outnet, struct pending_tcp* pend) { if(pend->c->ssl) { @@ -406,7 +406,7 @@ outnet_tcp_cb(struct comm_point* c, void* arg, int error, } fptr_ok(fptr_whitelist_pending_tcp(pend->query->cb)); (void)(*pend->query->cb)(c, pend->query->cb_arg, error, reply_info); - decomission_pending_tcp(outnet, pend); + decommission_pending_tcp(outnet, pend); return 0; } @@ -1416,7 +1416,7 @@ serviced_delete(struct serviced_query* sq) struct waiting_tcp* p = (struct waiting_tcp*) sq->pending; if(p->pkt == NULL) { - decomission_pending_tcp(sq->outnet, + decommission_pending_tcp(sq->outnet, (struct pending_tcp*)p->next_waiting); } else { waiting_list_remove(sq->outnet, p); diff --git a/services/view.h b/services/view.h index e0b346419..177781004 100644 --- a/services/view.h +++ b/services/view.h @@ -67,7 +67,7 @@ struct view { /** rbtree node, key is name */ rbnode_type node; /** view name. - * Has to be right after rbnode_t due to pointer arithmatic in + * Has to be right after rbnode_t due to pointer arithmetic in * view_create's lock protect */ char* name; /** view specific local authority zones */ diff --git a/sldns/parse.c b/sldns/parse.c index e30a753a4..b62c40597 100644 --- a/sldns/parse.c +++ b/sldns/parse.c @@ -33,14 +33,14 @@ ssize_t sldns_fget_token_l(FILE *f, char *token, const char *delim, size_t limit, int *line_nr) { int c, prev_c; - int p; /* 0 -> no parenthese seen, >0 nr of ( seen */ + int p; /* 0 -> no parentheses seen, >0 nr of ( seen */ int com, quoted; char *t; size_t i; const char *d; const char *del; - /* standard delimeters */ + /* standard delimiters */ if (!delim) { /* from isspace(3) */ del = LDNS_PARSE_NORMAL; @@ -244,7 +244,7 @@ sldns_bget_token_par(sldns_buffer *b, char *token, const char *delim, size_t limit, int* par, const char* skipw) { int c, lc; - int p; /* 0 -> no parenthese seen, >0 nr of ( seen */ + int p; /* 0 -> no parentheses seen, >0 nr of ( seen */ int com, quoted; char *t; size_t i; diff --git a/sldns/parse.h b/sldns/parse.h index 7b7456dd2..44236bfd4 100644 --- a/sldns/parse.h +++ b/sldns/parse.h @@ -103,9 +103,9 @@ ssize_t sldns_bget_token(struct sldns_buffer *b, char *token, const char *delim, * after the keyword + k_del until we hit d_del * \param[in] f file pointer to read from * \param[in] keyword keyword to look for - * \param[in] k_del keyword delimeter + * \param[in] k_del keyword delimiter * \param[out] data the data found - * \param[in] d_del the data delimeter + * \param[in] d_del the data delimiter * \param[in] data_limit maximum size the the data buffer * \return the number of character read */ @@ -116,9 +116,9 @@ ssize_t sldns_fget_keyword_data(FILE *f, const char *keyword, const char *k_del, * after the keyword + k_del until we hit d_del * \param[in] f file pointer to read from * \param[in] keyword keyword to look for - * \param[in] k_del keyword delimeter + * \param[in] k_del keyword delimiter * \param[out] data the data found - * \param[in] d_del the data delimeter + * \param[in] d_del the data delimiter * \param[in] data_limit maximum size the the data buffer * \param[in] line_nr pointer to an integer containing the current line number (for debugging purposes) @@ -131,9 +131,9 @@ ssize_t sldns_fget_keyword_data_l(FILE *f, const char *keyword, const char *k_de * after the keyword + k_del until we hit d_del * \param[in] b buffer pointer to read from * \param[in] keyword keyword to look for - * \param[in] k_del keyword delimeter + * \param[in] k_del keyword delimiter * \param[out] data the data found - * \param[in] d_del the data delimeter + * \param[in] d_del the data delimiter * \param[in] data_limit maximum size the the data buffer * \return the number of character read */ diff --git a/sldns/parseutil.c b/sldns/parseutil.c index 769987c64..82dbc0fe1 100644 --- a/sldns/parseutil.c +++ b/sldns/parseutil.c @@ -165,20 +165,20 @@ sldns_gmtime64_r(int64_t clock, struct tm *result) #endif /* SIZEOF_TIME_T <= 4 */ static int64_t -sldns_serial_arithmitics_time(int32_t time, time_t now) +sldns_serial_arithmetics_time(int32_t time, time_t now) { int32_t offset = time - (int32_t) now; return (int64_t) now + offset; } struct tm * -sldns_serial_arithmitics_gmtime_r(int32_t time, time_t now, struct tm *result) +sldns_serial_arithmetics_gmtime_r(int32_t time, time_t now, struct tm *result) { #if SIZEOF_TIME_T <= 4 - int64_t secs_since_epoch = sldns_serial_arithmitics_time(time, now); + int64_t secs_since_epoch = sldns_serial_arithmetics_time(time, now); return sldns_gmtime64_r(secs_since_epoch, result); #else - time_t secs_since_epoch = sldns_serial_arithmitics_time(time, now); + time_t secs_since_epoch = sldns_serial_arithmetics_time(time, now); return gmtime_r(&secs_since_epoch, result); #endif } diff --git a/sldns/parseutil.h b/sldns/parseutil.h index c5238bc10..10a2630a9 100644 --- a/sldns/parseutil.h +++ b/sldns/parseutil.h @@ -62,13 +62,13 @@ time_t sldns_mktime_from_utc(const struct tm *tm); * fields of RRSIG records. * * \param[in] time number of seconds since epoch (midnight, January 1st, 1970) - * to be intepreted as a serial arithmetics number relative to now. + * to be interpreted as a serial arithmetics number relative to now. * \param[in] now number of seconds since epoch (midnight, January 1st, 1970) * to which the time value is compared to determine the final value. * \param[out] result the struct with the broken-out time information * \return result on success or NULL on error */ -struct tm * sldns_serial_arithmitics_gmtime_r(int32_t time, time_t now, struct tm *result); +struct tm * sldns_serial_arithmetics_gmtime_r(int32_t time, time_t now, struct tm *result); /** * converts a ttl value (like 5d2h) to a long. diff --git a/sldns/rrdef.h b/sldns/rrdef.h index 09d81d9b1..0446687bd 100644 --- a/sldns/rrdef.h +++ b/sldns/rrdef.h @@ -331,13 +331,13 @@ enum sldns_enum_rdf_type LDNS_RDF_TYPE_NSEC3_NEXT_OWNER, /** 4 shorts represented as 4 * 16 bit hex numbers - * seperated by colons. For NID and L64. + * separated by colons. For NID and L64. */ LDNS_RDF_TYPE_ILNP64, - /** 6 * 8 bit hex numbers seperated by dashes. For EUI48. */ + /** 6 * 8 bit hex numbers separated by dashes. For EUI48. */ LDNS_RDF_TYPE_EUI48, - /** 8 * 8 bit hex numbers seperated by dashes. For EUI64. */ + /** 8 * 8 bit hex numbers separated by dashes. For EUI64. */ LDNS_RDF_TYPE_EUI64, /** A non-zero sequence of US-ASCII letters and numbers in lower case. diff --git a/sldns/sbuffer.h b/sldns/sbuffer.h index d1aadf8a1..2c30b3736 100644 --- a/sldns/sbuffer.h +++ b/sldns/sbuffer.h @@ -497,7 +497,7 @@ sldns_buffer_set_at(sldns_buffer *buffer, size_t at, int c, size_t count) * writes count bytes of data to the current position of the buffer * \param[in] buffer the buffer * \param[in] data the data to write - * \param[in] count the lenght of the data to write + * \param[in] count the length of the data to write */ INLINE void sldns_buffer_write(sldns_buffer *buffer, const void *data, size_t count) diff --git a/sldns/str2wire.c b/sldns/str2wire.c index f84d7d6b8..6759944e4 100644 --- a/sldns/str2wire.c +++ b/sldns/str2wire.c @@ -1541,7 +1541,7 @@ int sldns_str2wire_loc_buf(const char* str, uint8_t* rd, size_t* len) s = strtod(my_str, &my_str); } - /* skip blanks before norterness */ + /* skip blanks before northerness */ while (isblank((unsigned char) *my_str)) { my_str++; } diff --git a/sldns/wire2str.c b/sldns/wire2str.c index 52b1ed0c2..861b7648a 100644 --- a/sldns/wire2str.c +++ b/sldns/wire2str.c @@ -1335,7 +1335,7 @@ int sldns_wire2str_time_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) if(*dl < 4) return -1; t = sldns_read_uint32(*d); date_buf[15]=0; - if(sldns_serial_arithmitics_gmtime_r(t, time(NULL), &tm) && + if(sldns_serial_arithmetics_gmtime_r(t, time(NULL), &tm) && strftime(date_buf, 15, "%Y%m%d%H%M%S", &tm)) { (*d) += 4; (*dl) -= 4; diff --git a/smallapp/unbound-anchor.c b/smallapp/unbound-anchor.c index c060ad394..b30091088 100644 --- a/smallapp/unbound-anchor.c +++ b/smallapp/unbound-anchor.c @@ -669,7 +669,7 @@ wipe_ip_usage(struct ip_list* p) } } -/** cound unused IPs */ +/** count unused IPs */ static int count_unused(struct ip_list* p) { diff --git a/smallapp/unbound-control.c b/smallapp/unbound-control.c index 4b3efc134..dcb9230e8 100644 --- a/smallapp/unbound-control.c +++ b/smallapp/unbound-control.c @@ -721,7 +721,7 @@ int main(int argc, char* argv[]) WSADATA wsa_data; #endif #ifdef USE_THREAD_DEBUG - /* stop the file output from unbound-control, overwites the servers */ + /* stop the file output from unbound-control, overwrites the servers */ extern int check_locking_order; check_locking_order = 0; #endif /* USE_THREAD_DEBUG */ diff --git a/testcode/checklocks.h b/testcode/checklocks.h index 182a93858..61cc6fb0c 100644 --- a/testcode/checklocks.h +++ b/testcode/checklocks.h @@ -182,7 +182,7 @@ struct checked_lock { * @param area: ptr to mem. * @param size: length of area. * You can call it multiple times with the same lock to give several areas. - * Call it when you are done initialising the area, since it will be copied + * Call it when you are done initializing the area, since it will be copied * at this time and protected right away against unauthorised changes until * the next lock() call is done. */ diff --git a/testcode/unitecs.c b/testcode/unitecs.c index 3584b0f98..097ae9ebb 100644 --- a/testcode/unitecs.c +++ b/testcode/unitecs.c @@ -86,7 +86,7 @@ */ /* what should we check? - * X - is it balanced? (a node with 1 child shoudl not have + * X - is it balanced? (a node with 1 child should not have * a node with 1 child MUST have elem * child must be sub of parent * edge must be longer than parent edge diff --git a/util/config_file.c b/util/config_file.c index 796c1a61f..32d3978aa 100644 --- a/util/config_file.c +++ b/util/config_file.c @@ -69,9 +69,9 @@ #include #endif -/** from cfg username, after daemonise setup performed */ +/** from cfg username, after daemonize setup performed */ uid_t cfg_uid = (uid_t)-1; -/** from cfg username, after daemonise setup performed */ +/** from cfg username, after daemonize setup performed */ gid_t cfg_gid = (gid_t)-1; /** for debug allow small timeout values for fast rollovers */ int autr_permit_small_holddown = 0; diff --git a/util/config_file.h b/util/config_file.h index fdc48111e..a3398f762 100644 --- a/util/config_file.h +++ b/util/config_file.h @@ -494,9 +494,9 @@ struct config_file { #endif }; -/** from cfg username, after daemonise setup performed */ +/** from cfg username, after daemonize setup performed */ extern uid_t cfg_uid; -/** from cfg username, after daemonise setup performed */ +/** from cfg username, after daemonize setup performed */ extern gid_t cfg_gid; /** debug and enable small timeouts */ extern int autr_permit_small_holddown; diff --git a/util/configparser.c b/util/configparser.c index c5f187c1c..0e7e9eec8 100644 --- a/util/configparser.c +++ b/util/configparser.c @@ -2552,7 +2552,7 @@ yyreduce: { #ifdef CLIENT_SUBNET OUTYY(("P(client_subnet_opcode:%s)\n", (yyvsp[0].str))); - OUTYY(("P(Depricated option, ignoring)\n")); + OUTYY(("P(Deprecated option, ignoring)\n")); #else OUTYY(("P(Compiled without edns subnet option, ignoring)\n")); #endif diff --git a/util/configparser.y b/util/configparser.y index 7b41b1d76..40a3dd3f9 100644 --- a/util/configparser.y +++ b/util/configparser.y @@ -411,7 +411,7 @@ server_client_subnet_opcode: VAR_CLIENT_SUBNET_OPCODE STRING_ARG { #ifdef CLIENT_SUBNET OUTYY(("P(client_subnet_opcode:%s)\n", $2)); - OUTYY(("P(Depricated option, ignoring)\n")); + OUTYY(("P(Deprecated option, ignoring)\n")); #else OUTYY(("P(Compiled without edns subnet option, ignoring)\n")); #endif diff --git a/util/data/msgreply.h b/util/data/msgreply.h index acbdd3deb..b66f344e1 100644 --- a/util/data/msgreply.h +++ b/util/data/msgreply.h @@ -634,7 +634,7 @@ int inplace_cb_edns_back_parsed_call(struct module_env* env, struct module_qstate* qstate); /** - * Call the registered functions in the inplace_cb_query_reponse linked list. + * Call the registered functions in the inplace_cb_query_response linked list. * This function is going to get called after receiving a reply from a * nameserver. * @param env: module environment. diff --git a/util/module.h b/util/module.h index 6e75539d9..b51123894 100644 --- a/util/module.h +++ b/util/module.h @@ -416,7 +416,7 @@ struct module_env { /** * Kill newly attached sub. If attach_sub returns newq for * initialisation, but that fails, then this routine will cleanup and - * delete the fresly created sub. + * delete the freshly created sub. * @param newq: the new subquery that is no longer needed. * It is removed. */ diff --git a/util/netevent.c b/util/netevent.c index 771cb6bc7..5965a2d9a 100644 --- a/util/netevent.c +++ b/util/netevent.c @@ -1400,7 +1400,7 @@ comm_point_tcp_handle_write(int fd, struct comm_point* c) if (r == -1) { #if defined(EINPROGRESS) && defined(EWOULDBLOCK) /* Handshake is underway, maybe because no TFO cookie available. - Come back to write the messsage*/ + Come back to write the message*/ if(errno == EINPROGRESS || errno == EWOULDBLOCK) return 1; #endif diff --git a/util/storage/slabhash.h b/util/storage/slabhash.h index d00983fc1..2ecf6fe71 100644 --- a/util/storage/slabhash.h +++ b/util/storage/slabhash.h @@ -107,7 +107,7 @@ void slabhash_clear(struct slabhash* table); * But entry->data is set to NULL before deletion, and put into * the existing entry. The data is then freed. * @param data: the data. - * @param cb_override: if not NULL overrides the cb_arg for deletfunc. + * @param cb_override: if not NULL overrides the cb_arg for deletefunc. */ void slabhash_insert(struct slabhash* table, hashvalue_type hash, struct lruhash_entry* entry, void* data, void* cb_override); diff --git a/util/ub_event.h b/util/ub_event.h index 9739e6d83..b00a9bf6c 100644 --- a/util/ub_event.h +++ b/util/ub_event.h @@ -67,7 +67,7 @@ const char* ub_event_get_version(void); /** Return the name, system and method for the pluggable event base */ void ub_get_event_sys(struct ub_event_base*, const char** n, const char** s, const char** m); -/** Return a default event base. In the deamon thess will be the only event +/** Return a default event base. In the daemon this will be the only event * bases used. */ struct ub_event_base* ub_default_event_base(int, time_t*, struct timeval*); diff --git a/validator/autotrust.c b/validator/autotrust.c index 5bf815b5e..97c3e3cc3 100644 --- a/validator/autotrust.c +++ b/validator/autotrust.c @@ -2154,7 +2154,7 @@ int autr_process_prime(struct module_env* env, struct val_env* ve, verbose(VERB_ALGO, "autotrust: no dnskey rrset"); /* no update of query_failed, because then we would have * to write to disk. But we cannot because we maybe are - * still 'initialising' with DS records, that we cannot write + * still 'initializing' with DS records, that we cannot write * in the full format (which only contains KSKs). */ return 1; /* trust point exists */ } diff --git a/validator/val_nsec3.c b/validator/val_nsec3.c index 4d978372a..e31834a44 100644 --- a/validator/val_nsec3.c +++ b/validator/val_nsec3.c @@ -1037,7 +1037,7 @@ nsec3_do_prove_nameerror(struct module_env* env, struct nsec3_filter* flt, "nsec3 is an insecure delegation"); return sec; } - log_nametypeclass(VERB_ALGO, "nsec3 namerror: proven ce=", ce.ce,0,0); + log_nametypeclass(VERB_ALGO, "nsec3 nameerror: proven ce=", ce.ce,0,0); /* At this point, we know that qname does not exist. Now we need * to prove that the wildcard does not exist. */ diff --git a/validator/val_secalgo.c b/validator/val_secalgo.c index e9ec5a5b5..7f5c5181f 100644 --- a/validator/val_secalgo.c +++ b/validator/val_secalgo.c @@ -322,7 +322,7 @@ static int setup_ecdsa_sig(unsigned char** sig, unsigned int* len) { /* convert from two BIGNUMs in the rdata buffer, to ASN notation. - * ASN preable: 30440220 0220 + * ASN preamble: 30440220 0220 * the '20' is the length of that field (=bnsize). i * the '44' is the total remaining length. * if negative, start with leading zero. diff --git a/validator/val_sigcrypt.c b/validator/val_sigcrypt.c index 25278a8f3..099e658a3 100644 --- a/validator/val_sigcrypt.c +++ b/validator/val_sigcrypt.c @@ -906,7 +906,7 @@ canonical_sort(struct ub_packed_rrset_key* rrset, struct packed_rrset_data* d, } /** - * Inser canonical owner name into buffer. + * Insert canonical owner name into buffer. * @param buf: buffer to insert into at current position. * @param k: rrset with its owner name. * @param sig: signature with signer name and label count. diff --git a/validator/val_utils.h b/validator/val_utils.h index 649adc2d6..a837bb891 100644 --- a/validator/val_utils.h +++ b/validator/val_utils.h @@ -70,7 +70,7 @@ enum val_classification { /** A NXDOMAIN response. */ VAL_CLASS_NAMEERROR, /** A CNAME/DNAME chain, and the offset is at the end of it, - * but there is no answer here, it can be NAMERROR or NODATA. */ + * but there is no answer here, it can be NAMEERROR or NODATA. */ VAL_CLASS_CNAMENOANSWER, /** A referral, from cache with a nonRD query. */ VAL_CLASS_REFERRAL, diff --git a/validator/validator.c b/validator/validator.c index 5f4a1eb4e..111cbe140 100644 --- a/validator/validator.c +++ b/validator/validator.c @@ -1289,7 +1289,7 @@ validate_cname_noanswer_response(struct module_env* env, struct val_env* ve, uint8_t* ce = NULL; /* for wildcard nodata responses. This is the proven closest encloser. */ uint8_t* wc = NULL; /* for wildcard nodata responses. wildcard nsec */ - int nxdomain_valid_nsec = 0; /* if true, namerror has been proven */ + int nxdomain_valid_nsec = 0; /* if true, nameerror has been proven */ int nxdomain_valid_wnsec = 0; int nsec3s_seen = 0; /* nsec3s seen */ struct ub_packed_rrset_key* s;