OpenVAS Scanner 23.23.1
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
12
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
20int
21hosts_init (int);
22
23int
24hosts_new (char *, kb_t, kb_t);
25
26int
27hosts_set_pid (char *, pid_t);
28
29int
30hosts_read (void);
31
32void
33hosts_stop_all (void);
34
35void
36host_set_time (kb_t, char *, char *);
37
38int
39host_is_currently_scanned (gvm_host_t *);
40
41#endif
int hosts_new(char *, kb_t, kb_t)
Definition hosts.c:151
int hosts_init(int)
Definition hosts.c:144
void hosts_stop_all(void)
Definition hosts.c:203
void host_set_time(kb_t, char *, char *)
Add star_scan and end_scan results to the main kb.
Definition hosts.c:64
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
int hosts_set_pid(char *, pid_t)
Definition hosts.c:177
int host_is_currently_scanned(gvm_host_t *)
Returns 1 if the host is being scanned. 0 otherwise.
Definition hosts.c:271
Auxiliary structures for scanner.