Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions base/networking.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ addr6_to_str (const struct in6_addr *addr6, char *str)
*
* @param[in] addr6 IP address.
*
* @return IP as string. NULL otherwise.
* @return IP as string. NULL otherwise.
*/
char *
addr6_as_str (const struct in6_addr *addr6)
Expand Down Expand Up @@ -872,7 +872,7 @@ struct route_entry
/**
* @brief Get the entries of /proc/net/route as list of route_entry structs.
*
* @return GSList of route_entry structs. NULL if no routes found or Error.
* @return GSList of route_entry structs. NULL if no routes found or Error.
*/
static GSList *
get_routes (void)
Expand Down Expand Up @@ -981,7 +981,7 @@ get_routes (void)
/**
* @brief Free the list of routes.
*
* @param GSList of route_entry structs, or NULL.
* @param[in] routes GSList of route_entry structs, or NULL.
*/
static void
free_routes (GSList *routes)
Expand Down
2 changes: 1 addition & 1 deletion boreas/boreas_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* @brief Transform Boreas error code into human readable error message.
*
* @param boreas_error Boreas error code.
* @param boreas_error Boreas error code.
*
* @return String representation of supplied error code.
*/
Expand Down
49 changes: 26 additions & 23 deletions boreas/boreas_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ set_max_scan_hosts_reached ()
* @brief Get number of identified alive hosts.
*
* @return Number of identified alive hosts.
* */
*/
int
get_alive_hosts_count ()
{
Expand Down Expand Up @@ -78,7 +78,8 @@ inc_alive_hosts_count ()
/**
* @brief Send Message about not vuln scanned alive hosts to ospd-openvas.
*
* @param num_not_scanned Number of alive hosts which were not vuln scanned.
* @param num_not_scanned Number of alive hosts which were not vuln scanned.
*
* @return 0 on success, else Error.
*/
static int
Expand Down Expand Up @@ -132,10 +133,11 @@ send_limit_msg (int num_not_scanned_hosts)
* scanning all hosts, NULL is returned and the status flag
* alive_detection_finished is set to TRUE.
*
* @param alive_hosts_kb Redis connection for accessing the queue on which the
* alive detection scanner puts found hosts.
* @param alive_deteciton_finished Status of alive detection process.
* @return If valid alive host is found return a gvm_host_t. If alive scanner
* @param alive_hosts_kb Redis connection for accessing the queue on which the
* alive detection scanner puts found hosts.
* @param alive_deteciton_finished Status of alive detection process.
*
* @return If valid alive host is found return a gvm_host_t. If alive scanner
* finished NULL is returened and alive_deteciton_finished set. On error or if
* no host was found return NULL.
*/
Expand Down Expand Up @@ -212,8 +214,8 @@ get_host_from_queue (kb_t alive_hosts_kb, gboolean *alive_deteciton_finished)
/**
* @brief Put host value string on queue of hosts to be considered as alive.
*
* @param kb KB to use.
* @param addr_str IP addr in str representation to put on queue.
* @param kb KB to use.
* @param addr_str IP addr in str representation to put on queue.
*/
void
put_host_on_queue (kb_t kb, char *addr_str)
Expand All @@ -227,7 +229,8 @@ put_host_on_queue (kb_t kb, char *addr_str)
/**
* @brief Checks if the finish signal is already set.
*
* @param main_kb kb to use
* @param main_kb kb to use
*
* @return 1 if it is already set. 0 otherwise.
*/
int
Expand Down Expand Up @@ -263,7 +266,7 @@ finish_signal_on_queue (kb_t main_kb)
* @brief Reallocate finish signal in last position of the alive detection
* queue.
*
* @param main_kb kb to use
* @param main_kb kb to use
*/
void
realloc_finish_signal_on_queue (kb_t main_kb)
Expand All @@ -288,9 +291,8 @@ realloc_finish_signal_on_queue (kb_t main_kb)
* If the finish signal (a string) was already put on the queue it is not put on
* it again.
*
* @param error Set to 0 on success. Is set to -1 if finish signal was already
* put on queue. Set to -2 if function was no able to push finish string on
* queue.
* @param[out] error 0 success. -1 finish signal was already put on queue.
* -2 function was not able to push finish string on queue.
*/
void
put_finish_signal_on_queue (void *error)
Expand Down Expand Up @@ -338,9 +340,9 @@ put_finish_signal_on_queue (void *error)
/**
* @brief Init scan restrictions.
*
* @param scanner Pointer to scanner struct.
* @param max_scan_hosts Maximum number of hosts allowed to scan. 0 equals no
* scan limit.
* @param scanner Pointer to scanner struct.
* @param max_scan_hosts Maximum number of hosts allowed to scan. 0 equals no
* scan limit.
*/
void
init_scan_restrictions (scanner_t *scanner, int max_scan_hosts)
Expand All @@ -360,8 +362,8 @@ init_scan_restrictions (scanner_t *scanner, int max_scan_hosts)
* don't put them on the queue. Put finish signal on queue if max_scan_hosts is
* reached.
*
* @param scanner Scanner struct.
* @param add_str Host address string to put on queue.
* @param scanner Scanner struct.
* @param add_str Host address string to put on queue.
*/
void
handle_scan_restrictions (scanner_t *scanner, gchar *addr_str)
Expand Down Expand Up @@ -399,8 +401,8 @@ handle_scan_restrictions (scanner_t *scanner, gchar *addr_str)
* ospd-openvas. The number of dead hosts sent to ospd-openvas may not
* necessarily reflect the actual number of dead hosts in the target list.
*
* @param hosts_data Includes all data which is needed for calculating the
* number of dead hosts.
* @param hosts_data Includes all data which is needed for calculating the
* number of dead hosts.
*
* @return number of dead hosts, or -1 in case of an error.
*/
Expand Down Expand Up @@ -432,8 +434,8 @@ send_dead_hosts_to_ospd_openvas (int count_dead_hosts)
/**
* @brief Get the openvas scan id of the current task.
*
* @param db_address Address of the Redis db.
* @param db_id ID of the scan main db.
* @param db_address Address of the Redis db.
* @param db_id ID of the scan main db.
*
* @return Scan id of current task or NULL on error.
*/
Expand All @@ -455,7 +457,7 @@ get_openvas_scan_id (const gchar *db_address, int db_id)

/**
* @brief Get the bitflag which describes the methods to use for alive
* deteciton.
* detection.
*
* @param[out] alive_test Bitflag of all specified alive detection methods.
*
Expand Down Expand Up @@ -497,6 +499,7 @@ get_alive_test_ports (void)

/**
* @brief Get the max time in seconds that boreas waits for replies.
*
* Minimum is 1 second. Max is 20. If a given value is invalid or greather
* than 20, it is set to WAIT_FOR_REPLIES_TIMEOUT
*
Expand Down
2 changes: 1 addition & 1 deletion boreas/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ set_socket (socket_type_t socket_type, int *scanner_socket)
* @param scanner Reference to scanner struct.
* @param alive_test Methods of alive detection to use provided as bitflag.
*
* @return 0 on success, boreas_error_t on error.
* @return 0 on success, boreas_error_t on error.
*/
boreas_error_t
set_all_needed_sockets (scanner_t *scanner, alive_test_t alive_test)
Expand Down
2 changes: 1 addition & 1 deletion openvasd/openvasd.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ openvasd_target_add_credential (openvasd_target_t *target,
*
* @param vt_id The id of the VT.
*
* @return The newly allocated single VT.
* @return The newly allocated single VT.
*/
openvasd_vt_single_t *
openvasd_vt_single_new (const gchar *vt_id)
Expand Down
4 changes: 2 additions & 2 deletions osp/osp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1784,7 +1784,7 @@ osp_target_add_credential (osp_target_t *target, osp_credential_t *credential)
*
* @param[in] filter The filter string for the VT group.
*
* @return The newly allocated VT group.
* @return The newly allocated VT group.
*/
osp_vt_group_t *
osp_vt_group_new (const char *filter)
Expand Down Expand Up @@ -1817,7 +1817,7 @@ osp_vt_group_free (osp_vt_group_t *vt_group)
*
* @param[in] vt_id The id of the VT.
*
* @return The newly allocated single VT.
* @return The newly allocated single VT.
*/
osp_vt_single_t *
osp_vt_single_new (const char *vt_id)
Expand Down
Loading
Loading