Found by codespell.
}
if(!s) {
- fprintf(stderr, "Group is not yet creted!\n");
+ fprintf(stderr, "Group is not yet created!\n");
return;
}
}
/* Free the configuration data */
catta_server_config_free(&config);
- /* Check wether creating the server object succeeded */
+ /* Check whether creating the server object succeeded */
if(!mesh->catta_server) {
logger(mesh, MESHLINK_ERROR, "Failed to create discovery server: %s\n", catta_strerror(error));
goto fail;
/* public key: A = nB + T */
if (public_key) {
/* if we know the private key we don't need a point addition, which is faster */
- /* using a "timing attack" you could find out wether or not we know the private
+ /* using a "timing attack" you could find out whether or not we know the private
key, but this information seems rather useless - if this is important pass
- public_key and private_key seperately in 2 function calls */
+ public_key and private_key separately in 2 function calls */
if (private_key) {
ge_scalarmult_base(&A, private_key);
} else {
md->curlen = 0;
}
- /* pad upto 120 bytes of zeroes
+ /* pad up to 120 bytes of zeroes
* note: that from 112 to 120 is the 64 MSB of the length. We assume that you won't hash
* > 2^64 bits of data... :-)
*/
return finalize_join(mesh, msg, len);
case 1:
- logger(mesh, MESHLINK_DEBUG, "Invitation succesfully accepted.\n");
+ logger(mesh, MESHLINK_DEBUG, "Invitation successfully accepted.\n");
shutdown(mesh->sock, SHUT_RDWR);
mesh->success = true;
break;
// If we changed our own host config file, write it out now
if(mesh->self->status.dirty) {
if(!node_write_config(mesh, mesh->self)) {
- logger(mesh, MESHLINK_ERROR, "Could not write our own host conifg file!\n");
+ logger(mesh, MESHLINK_ERROR, "Could not write our own host config file!\n");
pthread_mutex_unlock(&mesh->mutex);
return NULL;
}
* @param params A pointer to a meshlink_open_params_t which must have been created earlier with meshlink_open_params_init().
* @param netns A filedescriptor that must point to a valid network namespace, or -1 to have MeshLink use the same namespace as the calling thread.
*
- * @return This function will return true if the open parameters have been succesfully updated, false otherwise.
+ * @return This function will return true if the open parameters have been successfully updated, false otherwise.
*/
extern bool meshlink_open_params_set_netns(meshlink_open_params_t *params, int netns) __attribute__((__warn_unused_result__));
* @param key A pointer to a key, or NULL in case no encryption should be used.
* @param keylen The length of the given key, or 0 in case no encryption should be used.
*
- * @return This function will return true if the open parameters have been succesfully updated, false otherwise.
+ * @return This function will return true if the open parameters have been successfully updated, false otherwise.
*/
extern bool meshlink_open_params_set_storage_key(meshlink_open_params_t *params, const void *key, size_t keylen) __attribute__((__warn_unused_result__));
/// A callback for receiving error conditions encountered by the MeshLink thread.
/** @param mesh A handle which represents an instance of MeshLink, or NULL.
- * @param errno The error code describing what kind of error occured.
+ * @param errno The error code describing what kind of error occurred.
*/
typedef void (*meshlink_error_cb_t)(struct meshlink_handle *mesh, meshlink_errno_t meshlink_errno);
* \memberof packmsg_output
*
* This function checks if all operations performed on the output buffer so far
- * have all completed succesfully, and the buffer contains a valid PackMessage message.
+ * have all completed successfully, and the buffer contains a valid PackMessage message.
*
* \param buf A pointer to an output buffer iterator.
*
* \memberof packmsg_input
*
* This function checks if all operations performed on the input buffer so far
- * have all completed succesfully, and the buffer contains a valid PackMessage message.
+ * have all completed successfully, and the buffer contains a valid PackMessage message.
*
* \param buf A pointer to an input buffer iterator.
*
/** \brief Get a NIL from the input.
* \memberof packmsg_input
*
- * This function does not return anything, but will invalidate the input interator
- * if no NIL was succesfully consumed from the input.
+ * This function does not return anything, but will invalidate the input iterator
+ * if no NIL was successfully consumed from the input.
*
* \param buf A pointer to an input buffer iterator.
*/
*
* This function copies a string from the input another buffer provided by the application.
* The buffer must be long enough to hold the complete string plus a terminating NUL-byte.
- * If the buffer is not long enough, or another error occured,
+ * If the buffer is not long enough, or another error occurred,
* a single NUL-byte will be written to the start of the buffer (if its size is at least one byte).
*
* \param buf A pointer to an input buffer iterator.
*
* This enum describes the type of an element in a PackMessage message.
* In case of integers and floating point values, the type normally represents
- * the smallest type that can succesfully hold the value of the element;
- * i.e. an element of type PACKMSG_INT32 can only succesfully be read by
+ * the smallest type that can successfully hold the value of the element;
+ * i.e. an element of type PACKMSG_INT32 can only successfully be read by
* packmsg_get_int32() or packmsg_get_int64(). However, the converse it not true;
* for an element of type PACKMSG_INT32, there is no guarantee
* that the value is larger than would fit into an int16_t.
extern void signal_node_start(node_status_t *node_status, int start, int end, char *node_ids[]);
/// Checks for the completion of nodes state machines.
-/** This function checks wheather the nodes state machines have reached their maximum state indexes
+/** This function checks whether the nodes state machines have reached their maximum state indexes
*
* @param status Pointer to array of status handles of target nodes.
* @param length Number of nodes to check.
Test Steps:
1. Open a node and start the instance.
2. Call meshlink_set_port() with port 10000
- 3. When try bind succeds block the port using devtool_trybind_probe() callback.
+ 3. When try bind succeeds block the port using devtool_trybind_probe() callback.
Expected Result:
The meshlink_set_port() API should fail.
2. Generate invites to app1node1, app2node1, corenode2, app1node2 and app2node2
from corenode1 to join corenode1.
3. After Join is successful start channels from all nodes and exchange data on channels
- 4. Try to fetch the list of all nodes and check if the nodes in other submesh doesnot
+ 4. Try to fetch the list of all nodes and check if the nodes in other submesh does not
appear in the list.
5. Try fetch all the nodes with a submesh handle and check only if both the nodes joining
the submesh are present.