OpenVAS Scanner 21.4.1
hosts.h
Go to the documentation of this file.
1/* Portions Copyright (C) 2009-2021 Greenbone Networks GmbH
2 * Portions Copyright (C) 2006 Software in the Public Interest, Inc.
3 * Based on work Copyright (C) 1998 - 2006 Tenable Network Security, Inc.
4 *
5 * SPDX-License-Identifier: GPL-2.0-only
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * version 2 as published by the Free Software Foundation.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
26#ifndef HOSTS_H
27#define HOSTS_H
28
29#include "../misc/scanneraux.h"
30
31#include <gvm/base/hosts.h> /* for gvm_host_t */
32
33int
34hosts_init (int);
35
36int
37hosts_new (char *, kb_t, kb_t);
38
39int
40hosts_set_pid (char *, pid_t);
41
42int
43hosts_read (void);
44
45void
46hosts_stop_all (void);
47
48void
49host_set_time (kb_t, char *, char *);
50
51int
52host_is_currently_scanned (gvm_host_t *);
53
54#endif
int hosts_new(char *, kb_t, kb_t)
Definition: hosts.c:160
int hosts_init(int)
Definition: hosts.c:153
void hosts_stop_all(void)
Definition: hosts.c:212
void host_set_time(kb_t, char *, char *)
Add star_scan and end_scan results to the main kb.
Definition: hosts.c:76
int hosts_read(void)
Returns -1 if client asked to stop all tests or connection was lost or error. 0 otherwise.
Definition: hosts.c:262
int hosts_set_pid(char *, pid_t)
Definition: hosts.c:186
int host_is_currently_scanned(gvm_host_t *)
Returns 1 if the host is being scanned. 0 otherwise.
Definition: hosts.c:280