hosts.c header.
More...
#include "../misc/scanneraux.h"
#include <gvm/base/hosts.h>
Go to the source code of this file.
◆ host_is_currently_scanned()
int host_is_currently_scanned |
( |
gvm_host_t * |
host_to_check | ) |
|
Returns 1 if the host is being scanned. 0 otherwise.
It checks not only the main IP of the host, but also the ips that a dns-lookup returns.
◆ host_set_time()
void host_set_time |
( |
kb_t |
kb, |
|
|
char * |
ip, |
|
|
char * |
type |
|
) |
| |
Add star_scan and end_scan results to the main kb.
- Parameters
-
[in] | kb | Main KB where results are stored. |
[in] | ip | List of vhosts to add new vhosts to. |
[in] | type | If it is start or end message. |
◆ hosts_init()
int hosts_init |
( |
int |
max_hosts | ) |
|
◆ hosts_new()
int hosts_new |
( |
char * |
name, |
|
|
kb_t |
kb, |
|
|
kb_t |
main_kb |
|
) |
| |
◆ hosts_read()
Returns -1 if client asked to stop all tests or connection was lost or error. 0 otherwise.
◆ hosts_set_pid()
int hosts_set_pid |
( |
char * |
name, |
|
|
pid_t |
pid |
|
) |
| |
◆ hosts_stop_all()
void hosts_stop_all |
( |
void |
| ) |
|