summaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-04-26 20:25:37 +0200
committerChristian Grothoff <christian@grothoff.org>2021-04-26 20:25:37 +0200
commitaa78134a557079ce570345e751e4c36c4b2ba79a (patch)
treef7bf25950513285184e2426109235337d0aef8be /src/transport
parent1f2674fe293be7c1a852fbe4a7241fbcb149078f (diff)
-fix many more typos
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/gnunet-communicator-tcp.c2
-rw-r--r--src/transport/gnunet-communicator-udp.c12
-rw-r--r--src/transport/gnunet-helper-transport-bluetooth.c2
-rw-r--r--src/transport/gnunet-helper-transport-wlan.c4
-rw-r--r--src/transport/gnunet-service-tng.c56
-rw-r--r--src/transport/gnunet-service-transport.c10
-rw-r--r--src/transport/gnunet-service-transport_validation.c6
-rw-r--r--src/transport/gnunet-transport-profiler.c2
-rw-r--r--src/transport/gnunet-transport.c2
-rw-r--r--src/transport/plugin_transport_http_client.c8
-rw-r--r--src/transport/plugin_transport_http_common.c16
-rw-r--r--src/transport/plugin_transport_http_server.c4
-rw-r--r--src/transport/plugin_transport_tcp.c4
-rw-r--r--src/transport/plugin_transport_template.c2
-rw-r--r--src/transport/plugin_transport_udp.c4
-rw-r--r--src/transport/plugin_transport_unix.c2
-rw-r--r--src/transport/plugin_transport_wlan.c4
-rw-r--r--src/transport/tcp_connection_legacy.c4
-rw-r--r--src/transport/tcp_server_legacy.c2
-rw-r--r--src/transport/tcp_server_mst_legacy.c2
-rw-r--r--src/transport/test_communicator_basic.c2
-rw-r--r--src/transport/test_transport_address_switch.c2
-rw-r--r--src/transport/test_transport_api_reliability.c2
-rw-r--r--src/transport/transport-testing-communicator.c2
-rw-r--r--src/transport/transport-testing.c2
-rw-r--r--src/transport/transport-testing2.c2
-rw-r--r--src/transport/transport_api2_application.c4
-rw-r--r--src/transport/transport_api2_communication.c6
-rw-r--r--src/transport/transport_api_core.c2
29 files changed, 87 insertions, 85 deletions
diff --git a/src/transport/gnunet-communicator-tcp.c b/src/transport/gnunet-communicator-tcp.c
index 9dd2797df..a871d980f 100644
--- a/src/transport/gnunet-communicator-tcp.c
+++ b/src/transport/gnunet-communicator-tcp.c
@@ -1954,7 +1954,7 @@ queue_read (void *cls)
wrong key for everything after the rekey; in that case, we have
to re-do the decryption at 'total' instead of at 'max'.
However, we have to take into account that the plaintext buffer may have
- already contained data and not jumpt too far ahead in the ciphertext.
+ already contained data and not jumped too far ahead in the ciphertext.
If there is no rekey and the last message is incomplete (max > total),
it is safe to keep the decryption so we shift by 'max' */
if (GNUNET_YES == queue->rekeyed)
diff --git a/src/transport/gnunet-communicator-udp.c b/src/transport/gnunet-communicator-udp.c
index d75f4ae00..fa9bb5d0a 100644
--- a/src/transport/gnunet-communicator-udp.c
+++ b/src/transport/gnunet-communicator-udp.c
@@ -626,7 +626,7 @@ struct ReceiverAddress
int rekeying;
/**
- * Numer of kce we retain for sending the rekeying shared secret.
+ * Number of kce we retain for sending the rekeying shared secret.
*/
int number_rekeying_kce;
@@ -1130,7 +1130,7 @@ sender_destroy (struct SenderAddress *sender)
*
* @param msec master secret for calculation
* @param serial number for the @a smac calculation
- * @param key[out] where to write the decrption key
+ * @param key[out] where to write the decryption key
* @param iv[out] where to write the IV
*/
static void
@@ -1235,7 +1235,7 @@ check_timeouts (void *cls)
/**
- * Calcualte cmac from master in @a ss.
+ * Calculate cmac from master in @a ss.
*
* @param ss[in,out] data structure to complete
*/
@@ -1811,7 +1811,7 @@ kce_generate_rekey_cb (void *cls)
* recently).
*
* @param ss shared secret to generate ACKs for
- * @param intial The SharedSecret came with initial KX.
+ * @param initial The SharedSecret came with initial KX.
*/
static void
consider_ss_ack (struct SharedSecret *ss, int initial)
@@ -1866,7 +1866,7 @@ consider_ss_ack (struct SharedSecret *ss, int initial)
ack.acks_available = ss->sender->acks_available;
ack.cmac = ss_tell->cmac;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Notifying transport of UDPAck %s with intial %u and master %s\n",
+ "Notifying transport of UDPAck %s with initial %u and master %s\n",
GNUNET_i2s_full (&ss_tell->sender->target),
initial,
GNUNET_h2s (&(ss_tell->master)));
@@ -2486,7 +2486,7 @@ udp_address_to_sockaddr (const char *bindto, socklen_t *sock_len)
colon = strrchr (cp, ':');
if (NULL != colon)
{
- /* interpet value after colon as port */
+ /* interpret value after colon as port */
*colon = '\0';
colon++;
if (1 == sscanf (colon, "%u%1s", &port, dummy))
diff --git a/src/transport/gnunet-helper-transport-bluetooth.c b/src/transport/gnunet-helper-transport-bluetooth.c
index ef3a6292b..019f3914f 100644
--- a/src/transport/gnunet-helper-transport-bluetooth.c
+++ b/src/transport/gnunet-helper-transport-bluetooth.c
@@ -416,7 +416,7 @@ do_align:
else
{
/* need to copy to private buffer to align;
- * yes, we go a bit more spagetti than usual here */
+ * yes, we go a bit more spaghetti than usual here */
goto do_align;
}
}
diff --git a/src/transport/gnunet-helper-transport-wlan.c b/src/transport/gnunet-helper-transport-wlan.c
index d90565c9c..72dd8b594 100644
--- a/src/transport/gnunet-helper-transport-wlan.c
+++ b/src/transport/gnunet-helper-transport-wlan.c
@@ -983,7 +983,7 @@ do_align:
else
{
/* need to copy to private buffer to align;
- * yes, we go a bit more spagetti than usual here */
+ * yes, we go a bit more spaghetti than usual here */
goto do_align;
}
}
@@ -1093,7 +1093,7 @@ ieee80211_radiotap_iterator_init (struct
iterator->arg += sizeof(uint32_t);
/*
* no need to check again for blowing past stated radiotap
- * header length, becuase ieee80211_radiotap_iterator_next
+ * header length, because ieee80211_radiotap_iterator_next
* checks it before it is dereferenced
*/}
/* we are all initialized happily */
diff --git a/src/transport/gnunet-service-tng.c b/src/transport/gnunet-service-tng.c
index cbf795eea..613477220 100644
--- a/src/transport/gnunet-service-tng.c
+++ b/src/transport/gnunet-service-tng.c
@@ -47,7 +47,7 @@
* - When we passively learned DV (with unconfirmed freshness), we
* right now add the path to our list but with a zero path_valid_until
* time and only use it for unconfirmed routes. However, we could consider
- * triggering an explicit validation mechansim ourselves, specifically routing
+ * triggering an explicit validation mechanism ourselves, specifically routing
* a challenge-response message over the path [ROUTING]
* = if available, try to confirm unconfirmed DV paths when trying to establish
* virtual link for a `struct IncomingRequest`. (i.e. if DVH is
@@ -83,7 +83,7 @@
/**
* Maximum number of messages we acknowledge together in one
- * cummulative ACK. Larger values may save a bit of bandwidth.
+ * cumulative ACK. Larger values may save a bit of bandwidth.
*/
#define MAX_CUMMULATIVE_ACKS 64
@@ -453,7 +453,7 @@ struct TransportReliabilityBoxMessage
struct TransportCummulativeAckPayloadP
{
/**
- * How long was the ACK delayed for generating cummulative ACKs?
+ * How long was the ACK delayed for generating cumulative ACKs?
* Used to calculate the correct network RTT by taking the receipt
* time of the ack minus the transmission time of the sender minus
* this value.
@@ -514,7 +514,7 @@ struct TransportFragmentBoxMessage
/**
* Unique ID of this fragment (and fragment transmission!). Will
- * change even if a fragement is retransmitted to make each
+ * change even if a fragment is retransmitted to make each
* transmission attempt unique! If a client receives a duplicate
* fragment (same @e frag_off for same @a msg_uuid, it must send
* #GNUNET_MESSAGE_TYPE_TRANSPORT_RELIABILITY_ACK immediately.
@@ -1944,7 +1944,7 @@ struct Neighbour
struct GNUNET_TIME_Absolute last_dv_learn_monotime;
/**
- * Do we have the lastest value for @e last_dv_learn_monotime from
+ * Do we have the latest value for @e last_dv_learn_monotime from
* PEERSTORE yet, or are we still waiting for a reply of PEERSTORE?
*/
int dv_monotime_available;
@@ -2238,7 +2238,7 @@ struct AcknowledgementCummulator
struct TransportCummulativeAckPayload ack_uuids[MAX_CUMMULATIVE_ACKS];
/**
- * Task scheduled either to transmit the cummulative ACK message,
+ * Task scheduled either to transmit the cumulative ACK message,
* or to clean up this data structure after extended periods of
* inactivity (if @e num_acks is zero).
*/
@@ -2657,7 +2657,7 @@ static struct GNUNET_CONTAINER_MultiPeerMap *backtalkers;
/**
* Map from PIDs to `struct AcknowledgementCummulator`s.
- * Here we track the cummulative ACKs for transmission.
+ * Here we track the cumulative ACKs for transmission.
*/
static struct GNUNET_CONTAINER_MultiPeerMap *ack_cummulators;
@@ -2735,7 +2735,7 @@ static struct PendingAcknowledgement *pa_head;
static struct PendingAcknowledgement *pa_tail;
/**
- * List of incomming connections where we are trying
+ * List of incoming connections where we are trying
* to get a connection back established. Length
* kept in #ir_total.
*/
@@ -3888,10 +3888,10 @@ client_send_response (struct PendingMessage *pm)
if (NULL != tc)
{
struct GNUNET_MQ_Envelope *env;
- struct SendOkMessage *som;
+ struct SendOkMessage *so_msg;
- env = GNUNET_MQ_msg (som, GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK);
- som->peer = vl->target;
+ env = GNUNET_MQ_msg (so_msg, GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK);
+ so_msg->peer = vl->target;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Confirming transmission of <%llu> to %s\n",
pm->logging_uuid,
@@ -4713,7 +4713,7 @@ route_control_message_without_fc (const struct GNUNET_PeerIdentity *target,
}
if ((NULL != n) && (NULL != dv))
options &= ~RMO_REDUNDANT; /* We will do one DV and one direct, that's
- enough for redunancy, so clear the flag. */
+ enough for redundancy, so clear the flag. */
rtt1 = GNUNET_TIME_UNIT_FOREVER_REL;
rtt2 = GNUNET_TIME_UNIT_FOREVER_REL;
if (NULL != n)
@@ -4862,7 +4862,7 @@ check_vl_transmission (struct VirtualLink *vl)
vl->outbound_fc_window_size)
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Stalled transmision on VL %s due to flow control: %llu < %llu\n",
+ "Stalled transmission on VL %s due to flow control: %llu < %llu\n",
GNUNET_i2s (&vl->target),
(unsigned long long) vl->outbound_fc_window_size,
(unsigned long long) (pm->bytes_msg
@@ -5286,7 +5286,7 @@ handle_raw_message (void *cls, const struct GNUNET_MessageHeader *mh)
it. Thus logging as error for now. */
GNUNET_break_op (0);
GNUNET_STATISTICS_update (GST_stats,
- "# CORE messages droped (virtual link still down)",
+ "# CORE messages dropped (virtual link still down)",
1,
GNUNET_NO);
@@ -5296,7 +5296,7 @@ handle_raw_message (void *cls, const struct GNUNET_MessageHeader *mh)
if (vl->incoming_fc_window_size_ram > UINT_MAX - size)
{
GNUNET_STATISTICS_update (GST_stats,
- "# CORE messages droped (FC arithmetic overflow)",
+ "# CORE messages dropped (FC arithmetic overflow)",
1,
GNUNET_NO);
@@ -5306,7 +5306,7 @@ handle_raw_message (void *cls, const struct GNUNET_MessageHeader *mh)
if (vl->incoming_fc_window_size_ram + size > vl->available_fc_window_size)
{
GNUNET_STATISTICS_update (GST_stats,
- "# CORE messages droped (FC window overflow)",
+ "# CORE messages dropped (FC window overflow)",
1,
GNUNET_NO);
finish_cmc_handling (cmc);
@@ -5397,7 +5397,7 @@ check_fragment_box (void *cls, const struct TransportFragmentBoxMessage *fb)
/**
- * Clean up an idle cummulative acknowledgement data structure.
+ * Clean up an idle cumulative acknowledgement data structure.
*
* @param cls a `struct AcknowledgementCummulator *`
*/
@@ -5416,7 +5416,7 @@ destroy_ack_cummulator (void *cls)
/**
- * Do the transmission of a cummulative acknowledgement now.
+ * Do the transmission of a cumulative acknowledgement now.
*
* @param cls a `struct AcknowledgementCummulator *`
*/
@@ -5674,7 +5674,7 @@ handle_fragment_box (void *cls, const struct TransportFragmentBoxMessage *fb)
}
}
- /* Compute cummulative ACK */
+ /* Compute cumulative ACK */
cdelay = GNUNET_TIME_absolute_get_duration (rc->last_frag);
cdelay = GNUNET_TIME_relative_multiply (cdelay, rc->msg_missing / fsize);
if (0 == rc->msg_missing)
@@ -5911,7 +5911,7 @@ completed_pending_message (struct PendingMessage *pm)
* The @a pa was acknowledged, process the acknowledgement.
*
* @param pa the pending acknowledgement that was satisfied
- * @param ack_delay artificial delay from cummulative acks created by the
+ * @param ack_delay artificial delay from cumulative acks created by the
* other peer
*/
static void
@@ -7353,7 +7353,7 @@ handle_dv_box (void *cls, const struct TransportDVBoxMessage *dvb)
path = tmp;
}
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Received DVBox with remainig path %s\n",
+ "Received DVBox with remaining path %s\n",
path);
GNUNET_free (path);
}
@@ -7418,7 +7418,7 @@ handle_dv_box (void *cls, const struct TransportDVBoxMessage *dvb)
dv_hmac (&key, &hmac, hdr, hdr_len);
if (0 != GNUNET_memcmp (&hmac, &dvb->hmac))
{
- /* HMAC missmatch, disard! */
+ /* HMAC mismatch, discard! */
GNUNET_break_op (0);
finish_cmc_handling (cmc);
return;
@@ -7493,7 +7493,7 @@ handle_dv_box (void *cls, const struct TransportDVBoxMessage *dvb)
&ppay.sender_sig,
&ppay.sender.public_key))
{
- /* Signature invalid, disard! */
+ /* Signature invalid, discard! */
GNUNET_break_op (0);
finish_cmc_handling (cmc);
return;
@@ -8210,7 +8210,7 @@ handle_flow_control (void *cls, const struct TransportFlowControlMessage *fc)
% FC_NO_CHANGE_REPLY_PROBABILITY))
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Consider re-sending our FC message, as clearly the ther peer's idea of the window is not up-to-date (%llu vs %llu)\n",
+ "Consider re-sending our FC message, as clearly the other peer's idea of the window is not up-to-date (%llu vs %llu)\n",
(unsigned long long) wnd,
(unsigned long long) vl->incoming_fc_window_size);
consider_sending_fc (vl);
@@ -8563,7 +8563,7 @@ reliability_box_message (struct Queue *queue,
/**
* Change the value of the `next_attempt` field of @a pm
* to @a next_attempt and re-order @a pm in the transmission
- * list as required by the new timestmap.
+ * list as required by the new timestamp.
*
* @param pm a pending message to update
* @param next_attempt timestamp to use
@@ -8755,7 +8755,7 @@ select_best_pending_from_link (struct PendingMessageScoreContext *sc,
10; /* increase weight, favors 'sc->best', which is low latency */
if (0 != queue->mtu)
{
- /* Grant bonus if we are bellow MTU, larger bonus the closer we will
+ /* Grant bonus if we are below MTU, larger bonus the closer we will
be to the MTU */
if (queue->mtu > sc->real_overhead + sc->best->bytes_msg)
sc_score -= queue->mtu - (sc->real_overhead + sc->best->bytes_msg);
@@ -9645,7 +9645,9 @@ handle_add_queue_message (void *cls,
if (NULL != queue)
{
neighbour = queue->neighbour;
- } else {
+ }
+ else
+ {
neighbour = lookup_neighbour (&aqm->receiver);
if (NULL == neighbour)
{
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index a819d82a5..24cc6464a 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -357,7 +357,7 @@ static struct TransportClient *sync_client;
/**
* Peer identity that is all zeros, used as a way to indicate
- * "all peers". Used for comparissons.
+ * "all peers". Used for comparisons.
*/
static struct GNUNET_PeerIdentity all_zeros;
@@ -830,7 +830,7 @@ handle_client_send (void *cls, const struct OutboundMessage *obm)
/**
* Take the given address and append it to the set of results sent back to
- * the client. This function may be called serveral times for a single
+ * the client. This function may be called several times for a single
* conversion. The last invocation will be with a @a address of
* NULL and a @a res of #GNUNET_OK. Thus, to indicate conversion
* errors, the callback might be called first with @a address NULL and
@@ -877,7 +877,7 @@ transmit_address_to_client (void *cls, const char *buf, int res)
}
}
GNUNET_assert (GNUNET_OK == res);
- /* succesful conversion, append*/
+ /* successful conversion, append*/
slen = strlen (buf) + 1;
env =
GNUNET_MQ_msg_extra (atsm,
@@ -1545,7 +1545,7 @@ kill_session (const char *plugin_name, struct GNUNET_ATS_Session *session)
/**
* Black list check result for try_connect call
- * If connection to the peer is allowed request adddress and ???
+ * If connection to the peer is allowed request address and ???
*
* @param cls the message
* @param peer the peer
@@ -1782,7 +1782,7 @@ plugin_env_address_change_notification (
*
* @param cls closure
* @param address which address was the session for
- * @param session which session is being destoyed
+ * @param session which session is being destroyed
*/
static void
plugin_env_session_end (void *cls,
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c
index e5d670889..86161bd85 100644
--- a/src/transport/gnunet-service-transport_validation.c
+++ b/src/transport/gnunet-service-transport_validation.c
@@ -68,7 +68,7 @@ enum GNUNET_TRANSPORT_ValidationState
/**
* Timeout for validation entry
*
- * A timeout occured during the validation process
+ * A timeout occurred during the validation process
*/
GNUNET_TRANSPORT_VS_TIMEOUT,
@@ -1361,7 +1361,7 @@ GST_validation_handle_address (const struct GNUNET_HELLO_Address *address)
papi = GST_plugins_find (address->transport_name);
if (NULL == papi)
{
- /* This plugin is currently unvailable ... ignore */
+ /* This plugin is currently unavailable ... ignore */
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"No plugin available for %s\n",
address->transport_name);
@@ -1807,7 +1807,7 @@ GST_validation_set_address_use (const struct GNUNET_HELLO_Address *address,
ve->in_use = in_use;
if (GNUNET_YES == in_use)
{
- /* from now on, higher frequeny, so reschedule now */
+ /* from now on, higher frequency, so reschedule now */
if (NULL != ve->revalidation_task)
GNUNET_SCHEDULER_cancel (ve->revalidation_task);
ve->revalidation_task = GNUNET_SCHEDULER_add_now (&revalidate_address,
diff --git a/src/transport/gnunet-transport-profiler.c b/src/transport/gnunet-transport-profiler.c
index 81678fa20..6e5204e28 100644
--- a/src/transport/gnunet-transport-profiler.c
+++ b/src/transport/gnunet-transport-profiler.c
@@ -204,7 +204,7 @@ shutdown_task (void *cls)
if (benchmark_send)
{
- /* First iteration to calculcate avg and stddev */
+ /* First iteration to calculate avg and stddev */
iterations = 0;
avg_duration = 0;
avg_rate = 0.0;
diff --git a/src/transport/gnunet-transport.c b/src/transport/gnunet-transport.c
index 0d71e1ff9..b5ad43770 100644
--- a/src/transport/gnunet-transport.c
+++ b/src/transport/gnunet-transport.c
@@ -78,7 +78,7 @@ struct ValidationResolutionContext
struct GNUNET_TIME_Absolute next_validation;
/**
- * Tranport conversion handle
+ * Transport conversion handle
*/
struct GNUNET_TRANSPORT_AddressToStringContext *asc;
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c
index 219fae57b..18bfcc054 100644
--- a/src/transport/plugin_transport_http_client.c
+++ b/src/transport/plugin_transport_http_client.c
@@ -639,7 +639,7 @@ client_schedule (struct HTTP_Client_Plugin *plugin,
#if VERBOSE_CURL
/**
- * Loggging function
+ * Logging function
*
* @param curl the curl easy handle
* @param type message type
@@ -1306,7 +1306,7 @@ client_run (void *cls)
int msgs_left;
plugin->client_perform_task = NULL;
- /* While data are available or timeouts occured */
+ /* While data are available or timeouts occurred */
do
{
running = 0;
@@ -1390,7 +1390,7 @@ client_run (void *cls)
break;
case H_TMP_RECONNECT_REQUIRED:
- /* Transport called send while disconnect in progess, reconnect */
+ /* Transport called send while disconnect in progress, reconnect */
if (GNUNET_SYSERR == client_connect_put (s))
{
/* Reconnect failed, disconnect session */
@@ -2478,7 +2478,7 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls)
if (NULL == env->receive)
{
/* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully
- initialze the plugin or the API */
+ initialize the plugin or the API */
api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions);
api->cls = NULL;
api->address_to_string = &http_client_plugin_address_to_string;
diff --git a/src/transport/plugin_transport_http_common.c b/src/transport/plugin_transport_http_common.c
index 0e3778837..75bf8b74a 100644
--- a/src/transport/plugin_transport_http_common.c
+++ b/src/transport/plugin_transport_http_common.c
@@ -210,7 +210,7 @@ struct PrettyPrinterContext
struct GNUNET_SCHEDULER_Task *timeout_task;
/**
- * Splitted Address
+ * Split Address
*/
struct SplittedHTTPAddress *saddr;
@@ -222,7 +222,7 @@ struct PrettyPrinterContext
/**
* Was conversion successful
*/
- int sucess;
+ int success;
/**
* Address options
@@ -247,7 +247,7 @@ static struct PrettyPrinterContext *dll_ppc_tail;
* to override the address again.
*
* @param plugin the name of the plugin
- * @param saddr the splitted http address
+ * @param saddr the split http address
* @param options address options
* @param dnsresult dns name to include in address
* @return string representing the same address or NULL on error
@@ -287,12 +287,12 @@ http_common_dns_reverse_lookup_cb (void *cls, const char *hostname)
http_common_plugin_dnsresult_to_address (ppc->plugin, ppc->saddr,
ppc->options,
hostname), GNUNET_OK);
- ppc->sucess = GNUNET_YES;
+ ppc->success = GNUNET_YES;
}
else
{
ppc->asc (ppc->asc_cls, NULL,
- (GNUNET_NO == ppc->sucess) ? GNUNET_SYSERR : GNUNET_OK);
+ (GNUNET_NO == ppc->success) ? GNUNET_SYSERR : GNUNET_OK);
GNUNET_CONTAINER_DLL_remove (dll_ppc_head, dll_ppc_tail, ppc);
http_clean_splitted (ppc->saddr);
@@ -355,13 +355,13 @@ http_common_dns_ip_lookup_cb (void *cls,
GNUNET_a2s (addr,
addrlen)),
GNUNET_OK);
- ppc->sucess = GNUNET_YES;
+ ppc->success = GNUNET_YES;
ppc->asc (ppc->asc_cls, GNUNET_a2s (addr, addrlen), GNUNET_OK);
}
else
{
ppc->asc (ppc->asc_cls, NULL,
- (GNUNET_NO == ppc->sucess) ? GNUNET_SYSERR : GNUNET_OK);
+ (GNUNET_NO == ppc->success) ? GNUNET_SYSERR : GNUNET_OK);
GNUNET_CONTAINER_DLL_remove (dll_ppc_head, dll_ppc_tail, ppc);
GNUNET_free (ppc->plugin);
@@ -383,7 +383,7 @@ http_common_dns_ip_lookup (const char *name,
struct PrettyPrinterContext *ppc;
ppc = GNUNET_new (struct PrettyPrinterContext);
- ppc->sucess = GNUNET_NO;
+ ppc->success = GNUNET_NO;
ppc->saddr = saddr;
ppc->asc = asc;
ppc->asc_cls = asc_cls;
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c
index 6e95ca00c..78b030e9a 100644
--- a/src/transport/plugin_transport_http_server.c
+++ b/src/transport/plugin_transport_http_server.c
@@ -2569,7 +2569,7 @@ server_remove_address (void *cls,
* the previous (now invalid) one
* @param ac address class the address belongs to
* @param addr either the previous or the new public IP address
- * @param addrlen actual lenght of the address
+ * @param addrlen actual length of the address
*/
static void
server_nat_port_map_callback (void *cls,
@@ -3512,7 +3512,7 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls)
if (NULL == env->receive)
{
/* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully
- initialze the plugin or the API */
+ initialize the plugin or the API */
api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions);
api->cls = NULL;
api->address_to_string = &http_server_plugin_address_to_string;
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c
index 8378a64dd..ac4cc672f 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -164,7 +164,7 @@ typedef int (*GNUNET_CONNECTION_AccessCheck) (
*
* @param cls closure
* @param buf pointer to received data
- * @param available number of bytes availabe in "buf",
+ * @param available number of bytes available in "buf",
* possibly 0 (on errors)
* @param addr address of the sender
* @param addrlen size of addr
@@ -3674,7 +3674,7 @@ libgnunet_plugin_transport_tcp_init (void *cls)
if (NULL == env->receive)
{
/* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully
- initialze the plugin or the API */
+ initialize the plugin or the API */
api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions);
api->cls = NULL;
api->address_pretty_printer = &tcp_plugin_address_pretty_printer;
diff --git a/src/transport/plugin_transport_template.c b/src/transport/plugin_transport_template.c
index 239f32f4a..c39c72178 100644
--- a/src/transport/plugin_transport_template.c
+++ b/src/transport/plugin_transport_template.c
@@ -516,7 +516,7 @@ libgnunet_plugin_transport_template_init (void *cls)
if (NULL == env->receive)
{
/* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully
- initialze the plugin or the API */
+ initialize the plugin or the API */
api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions);
api->cls = NULL;
api->address_to_string = &template_plugin_address_to_string;
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index 49e84dfe7..2db31caa3 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -2390,7 +2390,7 @@ read_process_ack (struct Plugin *plugin,
/**
- * Message tokenizer has broken up an incomming message. Pass it on
+ * Message tokenizer has broken up an incoming message. Pass it on
* to the service.
*
* @param cls the `struct GNUNET_ATS_Session *`
@@ -3605,7 +3605,7 @@ libgnunet_plugin_transport_udp_init (void *cls)
if (NULL == env->receive)
{
/* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully
- initialze the plugin or the API */
+ initialize the plugin or the API */
api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions);
api->cls = NULL;
api->address_pretty_printer = &udp_plugin_address_pretty_printer;
diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c
index 2324914c9..269949a99 100644
--- a/src/transport/plugin_transport_unix.c
+++ b/src/transport/plugin_transport_unix.c
@@ -1729,7 +1729,7 @@ libgnunet_plugin_transport_unix_init (void *cls)
if (NULL == env->receive)
{
/* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully
- initialze the plugin or the API */
+ initialize the plugin or the API */
api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions);
api->cls = NULL;
api->address_pretty_printer = &unix_plugin_address_pretty_printer;
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c
index 1b2b6d0d2..138fb5080 100644
--- a/src/transport/plugin_transport_wlan.c
+++ b/src/transport/plugin_transport_wlan.c
@@ -470,7 +470,7 @@ struct Plugin
struct GNUNET_TRANSPORT_PluginEnvironment *env;
/**
- * Handle to helper process for priviledged operations.
+ * Handle to helper process for privileged operations.
*/
struct GNUNET_HELPER_Handle *suid_helper;
@@ -2262,7 +2262,7 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls)
if (NULL == env->receive)
{
/* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully
- initialze the plugin or the API */
+ initialize the plugin or the API */
api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions);
api->cls = NULL;
api->address_pretty_printer = &wlan_plugin_address_pretty_printer;
diff --git a/src/transport/tcp_connection_legacy.c b/src/transport/tcp_connection_legacy.c
index 924362ef2..551e79055 100644
--- a/src/transport/tcp_connection_legacy.c
+++ b/src/transport/tcp_connection_legacy.c
@@ -120,7 +120,7 @@ struct AddressProbe
struct GNUNET_CONNECTION_Handle *connection;
/**
- * Lenth of addr.
+ * Length of addr.
*/
socklen_t addrlen;
@@ -538,7 +538,7 @@ signal_transmit_error (struct GNUNET_CONNECTION_Handle *connection, int ecode)
GNUNET_CONNECTION_TransmitReadyNotify notify;
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Transmission encounterd error (%s), connection closed (%p)\n",
+ "Transmission encountered error (%s), connection closed (%p)\n",
strerror (ecode),
connection);
if (NULL != connection->sock)
diff --git a/src/transport/tcp_server_legacy.c b/src/transport/tcp_server_legacy.c
index 59b4fc20a..f4d48d4f6 100644
--- a/src/transport/tcp_server_legacy.c
+++ b/src/transport/tcp_server_legacy.c
@@ -836,7 +836,7 @@ GNUNET_SERVER_destroy (struct GNUNET_SERVER_Handle *server)
* incoming messages; the last entry must
* have "NULL" for the "callback"; multiple
* entries for the same type are allowed,
- * they will be called in order of occurence.
+ * they will be called in order of occurrence.
* These handlers can be removed later;
* the handlers array must exist until removed
* (or server is destroyed).
diff --git a/src/transport/tcp_server_mst_legacy.c b/src/transport/tcp_server_mst_legacy.c
index cef41c5b0..bed6874c9 100644
--- a/src/transport/tcp_server_mst_legacy.c
+++ b/src/transport/tcp_server_mst_legacy.c
@@ -262,7 +262,7 @@ do_align:
else
{
/* need to copy to private buffer to align;
- * yes, we go a bit more spagetti than usual here */
+ * yes, we go a bit more spaghetti than usual here */
goto do_align;
}
}
diff --git a/src/transport/test_communicator_basic.c b/src/transport/test_communicator_basic.c
index 98b49012a..202bc0a5b 100644
--- a/src/transport/test_communicator_basic.c
+++ b/src/transport/test_communicator_basic.c
@@ -998,7 +998,7 @@ static void
do_shutdown (void *cls)
{
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "shuting down test.\n");
+ "shutting down test.\n");
for (unsigned int i = 0; i < NUM_PEERS; i++)
{
diff --git a/src/transport/test_transport_address_switch.c b/src/transport/test_transport_address_switch.c
index b49cb187b..ce5117bd1 100644
--- a/src/transport/test_transport_address_switch.c
+++ b/src/transport/test_transport_address_switch.c
@@ -77,7 +77,7 @@ struct PeerStats
static struct PeerStats stats[2];
-/* Amount of data transfered since last switch attempt */
+/* Amount of data transferred since last switch attempt */
static unsigned long long bytes_sent_after_switch;
static unsigned long long bytes_recv_after_switch;
diff --git a/src/transport/test_transport_api_reliability.c b/src/transport/test_transport_api_reliability.c
index deb943956..508fed4f5 100644
--- a/src/transport/test_transport_api_reliability.c
+++ b/src/transport/test_transport_api_reliability.c
@@ -174,7 +174,7 @@ custom_shutdown (void *cls)
unsigned long long rate;
int ok;
- /* Calculcate statistics */
+ /* Calculate statistics */
delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value_us;
if (0 == delta)
delta = 1;
diff --git a/src/transport/transport-testing-communicator.c b/src/transport/transport-testing-communicator.c
index 040f16d5d..ce4af01f2 100644
--- a/src/transport/transport-testing-communicator.c
+++ b/src/transport/transport-testing-communicator.c
@@ -431,7 +431,7 @@ handle_queue_create_ok (void *cls,
/**
- * @brief Communicator informs that it wont try establishing requested queue.
+ * @brief Communicator informs that it won't try establishing requested queue.
*
* It will not do so probably because the address is bougus (see comment to
* #GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_CREATE_FAIL)
diff --git a/src/transport/transport-testing.c b/src/transport/transport-testing.c
index 2da193b31..a7ee563d7 100644
--- a/src/transport/transport-testing.c
+++ b/src/transport/transport-testing.c
@@ -824,7 +824,7 @@ GNUNET_TRANSPORT_TESTING_connect_peers (struct
/**
* Cancel the request to connect two peers
- * Tou MUST cancel the request if you stop the peers before the peers connected succesfully
+ * Tou MUST cancel the request if you stop the peers before the peers connected successfully
*
* @param tth transport testing handle
* @param cc a connect request handle
diff --git a/src/transport/transport-testing2.c b/src/transport/transport-testing2.c
index eaa8a5f15..96d305fd8 100644
--- a/src/transport/transport-testing2.c
+++ b/src/transport/transport-testing2.c
@@ -859,7 +859,7 @@ GNUNET_TRANSPORT_TESTING_connect_peers (struct
/**
* Cancel the request to connect two peers
- * Tou MUST cancel the request if you stop the peers before the peers connected succesfully
+ * Tou MUST cancel the request if you stop the peers before the peers connected successfully
*
* @param tth transport testing handle
* @param cc a connect request handle
diff --git a/src/transport/transport_api2_application.c b/src/transport/transport_api2_application.c
index 4862863dd..00f5f62eb 100644
--- a/src/transport/transport_api2_application.c
+++ b/src/transport/transport_api2_application.c
@@ -282,7 +282,7 @@ GNUNET_TRANSPORT_application_done (
* @param peer identity of the peer we need an address for
* @param pk what kind of application will the application require (can be
* #GNUNET_MQ_PRIO_BACKGROUND, we will still try to connect)
- * @param bw desired bandwith, can be zero (we will still try to connect)
+ * @param bw desired bandwidth, can be zero (we will still try to connect)
* @return suggest handle, NULL if a request is already pending
*/
struct GNUNET_TRANSPORT_ApplicationSuggestHandle *
@@ -359,7 +359,7 @@ GNUNET_TRANSPORT_application_suggest_cancel (
* @param peer identity of the peer we have an address for
* @param nt network type of @a addr (as claimed by the other peer);
* used by TRANSPORT to avoid trying @a addr's that really cannot work
- * due to network type missmatches
+ * due to network type mismatches
* @param addr address to validate
*/
void
diff --git a/src/transport/transport_api2_communication.c b/src/transport/transport_api2_communication.c
index 3d9da08e4..446add6f6 100644
--- a/src/transport/transport_api2_communication.c
+++ b/src/transport/transport_api2_communication.c
@@ -198,7 +198,7 @@ struct GNUNET_TRANSPORT_CommunicatorHandle
struct GNUNET_MQ_Handle *mq;
/**
- * Maximum permissable queue length.
+ * Maximum permissible queue length.
*/
unsigned long long max_queue_length;
@@ -262,7 +262,7 @@ struct GNUNET_TRANSPORT_QueueHandle
struct GNUNET_PeerIdentity peer;
/**
- * Network type of the communciation queue.
+ * Network type of the communication queue.
*/
enum GNUNET_NetworkType nt;
@@ -889,7 +889,7 @@ GNUNET_TRANSPORT_communicator_disconnect (
* immediately dropped due to memory limitations (communicator
* should try to apply back pressure),
* #GNUNET_SYSERR if the message could not be delivered because
- * the tranport service is not yet up
+ * the transport service is not yet up
*/
int
GNUNET_TRANSPORT_communicator_receive (
diff --git a/src/transport/transport_api_core.c b/src/transport/transport_api_core.c
index 7d4b415bd..0ffaeb444 100644
--- a/src/transport/transport_api_core.c
+++ b/src/transport/transport_api_core.c
@@ -82,7 +82,7 @@ struct Neighbour
struct GNUNET_BANDWIDTH_Tracker out_tracker;
/**
- * Entry in our readyness heap (which is sorted by @e next_ready
+ * Entry in our readiness heap (which is sorted by @e next_ready
* value). NULL if there is no pending transmission request for
* this neighbour or if we're waiting for @e is_ready to become
* true AFTER the @e out_tracker suggested that this peer's quota