OpenVAS Scanner  22.7.9
hosts.h
Go to the documentation of this file.
1 /* SPDX-FileCopyrightText: 2023 Greenbone AG
2  * SPDX-FileCopyrightText: 2006 Software in the Public Interest, Inc.
3  * SPDX-FileCopyrightText: 1998-2006 Tenable Network Security, Inc.
4  *
5  * SPDX-License-Identifier: GPL-2.0-only
6  */
7 
13 #ifndef OPENVAS_HOSTS_H
14 #define OPENVAS_HOSTS_H
15 
16 #include "../misc/scanneraux.h"
17 
18 #include <gvm/base/hosts.h> /* for gvm_host_t */
19 
20 int
21 hosts_init (int);
22 
23 int
24 hosts_new (char *, kb_t, kb_t);
25 
26 int
27 hosts_set_pid (char *, pid_t);
28 
29 int
30 hosts_read (void);
31 
32 void
33 hosts_stop_all (void);
34 
35 void
36 host_set_time (kb_t, char *, char *);
37 
38 int
39 host_is_currently_scanned (gvm_host_t *);
40 
41 #endif
hosts_stop_all
void hosts_stop_all(void)
Definition: hosts.c:203
hosts_set_pid
int hosts_set_pid(char *, pid_t)
Definition: hosts.c:177
hosts_read
int hosts_read(void)
Returns -1 if client asked to stop all tests or connection was lost or error. 0 otherwise.
Definition: hosts.c:253
hosts_init
int hosts_init(int)
Definition: hosts.c:144
hosts_new
int hosts_new(char *, kb_t, kb_t)
Definition: hosts.c:151
host_is_currently_scanned
int host_is_currently_scanned(gvm_host_t *)
Returns 1 if the host is being scanned. 0 otherwise.
Definition: hosts.c:271
host_set_time
void host_set_time(kb_t, char *, char *)
Add star_scan and end_scan results to the main kb.
Definition: hosts.c:64