OpenVAS Scanner  21.4.1
Functions
hosts.h File Reference

hosts.c header. More...

#include "../misc/scanneraux.h"
#include <gvm/base/hosts.h>

Go to the source code of this file.

Functions

int hosts_init (int)
 
int hosts_new (char *, kb_t, kb_t)
 
int hosts_set_pid (char *, pid_t)
 
int hosts_read (void)
 Returns -1 if client asked to stop all tests or connection was lost or error. 0 otherwise. More...
 
void hosts_stop_all (void)
 
void host_set_time (kb_t, char *, char *)
 Add star_scan and end_scan results to the main kb. More...
 
int host_is_currently_scanned (gvm_host_t *)
 Returns 1 if the host is being scanned. 0 otherwise. More...
 

Detailed Description

hosts.c header.

Function Documentation

◆ 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]kbMain KB where results are stored.
[in]ipList of vhosts to add new vhosts to.
[in]typeIf 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()

int hosts_read ( void  )

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  )