|
OpenVAS Scanner
5.1.3
|
#include <stdlib.h>#include <string.h>#include <sys/wait.h>#include <errno.h>#include <sys/ioctl.h>#include <sys/stat.h>#include <openvas/misc/network.h>#include <openvas/misc/prefs.h>#include "log.h"#include "comm.h"#include "ntp.h"#include "utils.h"#include "pluginscheduler.h"
Go to the source code of this file.
Functions | |
| int | common (struct arglist *l1, struct arglist *l2) |
| Returns 1 if the two arglists have a name in common. More... | |
| struct arglist * | list2arglist (char *list) |
| int | get_max_hosts_number (void) |
| int | get_max_checks_number (void) |
| int | process_alive (pid_t pid) |
| int | data_left (int soc) |
| void | wait_for_children1 (void) |
| int | is_scanner_only_pref (const char *pref) |
| void | send_printf (int soc, char *data,...) |
| Writes data to a socket. More... | |
Variables | |
| int | global_max_hosts |
| int | global_max_checks |
| int common | ( | struct arglist * | l1, |
| struct arglist * | l2 | ||
| ) |
Returns 1 if the two arglists have a name in common.
| int data_left | ( | int | soc | ) |
| int get_max_checks_number | ( | void | ) |
Get the max number of plugins to launch against the remote host at the same time
Definition at line 150 of file utils.c.
References global_max_checks, and log_write().

| int get_max_hosts_number | ( | void | ) |
Get the max number of hosts to test at the same time.
Definition at line 120 of file utils.c.
References global_max_hosts, and log_write().

| int is_scanner_only_pref | ( | const char * | pref | ) |
Definition at line 221 of file utils.c.
Referenced by comm_send_preferences().

| struct arglist* list2arglist | ( | char * | list | ) |
Converts a user comma delimited input (1,2,3) into an arglist.
Definition at line 81 of file utils.c.
| int process_alive | ( | pid_t | pid | ) |
| void send_printf | ( | int | soc, |
| char * | data, | ||
| ... | |||
| ) |
Writes data to a socket.
Definition at line 276 of file utils.c.
Referenced by comm_send_pluginlist(), comm_send_preferences(), comm_terminate(), send_plug_info(), and send_plugins_preferences().

| void wait_for_children1 | ( | void | ) |
| int global_max_checks |
Definition at line 87 of file openvassd.c.
Referenced by get_max_checks_number().
| int global_max_hosts |
Globals that should not be touched (used in utils module).
Definition at line 86 of file openvassd.c.
Referenced by get_max_hosts_number().