|
OpenVAS Scanner
7.0.1~git
|
Tells openvas which plugin should be executed next. More...
#include "pluginscheduler.h"#include "../misc/nvt_categories.h"#include "../misc/plugutils.h"#include "pluginlaunch.h"#include "pluginload.h"#include <glib.h>#include <gvm/base/prefs.h>#include <gvm/util/nvticache.h>#include <malloc.h>#include <string.h>
Go to the source code of this file.
Data Structures | |
| struct | plugins_scheduler |
Macros | |
| #define | G_LOG_DOMAIN "sd main" |
| GLib log domain. More... | |
Tells openvas which plugin should be executed next.
Definition in file pluginscheduler.c.
| #define G_LOG_DOMAIN "sd main" |
GLib log domain.
Definition at line 43 of file pluginscheduler.c.
| int check_dependency_cycles | ( | plugins_scheduler_t | sched | ) |
Definition at line 274 of file pluginscheduler.c.
References ACT_END, ACT_INIT, find_plugin_in_deps(), plugins_scheduler::list, name, and oid.
Referenced by plugins_scheduler_init().


| int find_plugin_in_deps | ( | GHashTable * | checked, |
| struct scheduler_plugin ** | array, | ||
| int | pos | ||
| ) |
Definition at line 247 of file pluginscheduler.c.
References scheduler_plugin::deps.
Referenced by check_dependency_cycles().

|
static |
Definition at line 394 of file pluginscheduler.c.
References ACT_DENIAL, ACT_FLOOD, ACT_KILL_HOST, ACT_SCANNER, plugins_scheduler::list, PLUG_RUNNING, pluginlaunch_disable_parallel_checks(), pluginlaunch_enable_parallel_checks(), and plugins_next_unrun().
Referenced by plugins_scheduler_next().


|
static |
Definition at line 58 of file pluginscheduler.c.
References ACT_END, ACT_INIT, scheduler_plugin::deps, plugins_scheduler::list, name, scheduler_plugin::oid, oid, PLUGIN_STATUS_UNRUN, and scheduler_plugin::running_state.
Referenced by plugins_scheduler_enable().

|
static |
Definition at line 352 of file pluginscheduler.c.
References scheduler_plugin::deps, PLUG_RUNNING, PLUGIN_STATUS_DONE, PLUGIN_STATUS_RUNNING, PLUGIN_STATUS_UNRUN, and scheduler_plugin::running_state.
Referenced by get_next_in_range().

| int plugins_scheduler_count_active | ( | plugins_scheduler_t | sched | ) |
Definition at line 341 of file pluginscheduler.c.
References ACT_END, ACT_INIT, and plugins_scheduler::list.
Referenced by attack_host().

|
static |
Definition at line 211 of file pluginscheduler.c.
References oid, plugin_add(), and plugins_scheduler_fill_deps().
Referenced by plugins_scheduler_init().


|
static |
Definition at line 164 of file pluginscheduler.c.
References ACT_END, ACT_INIT, scheduler_plugin::deps, plugins_scheduler::list, and scheduler_plugin::oid.
Referenced by plugins_scheduler_enable().

| void plugins_scheduler_free | ( | plugins_scheduler_t | sched | ) |
Definition at line 534 of file pluginscheduler.c.
References ACT_END, ACT_INIT, plugins_scheduler::list, and scheduler_plugin_free().
Referenced by attack_host(), attack_network(), and plugins_scheduler_init().


| plugins_scheduler_t plugins_scheduler_init | ( | const char * | plugins_list, |
| int | autoload, | ||
| int | only_network, | ||
| int * | error | ||
| ) |
Definition at line 313 of file pluginscheduler.c.
References ACT_END, ACT_GATHER_INFO, check_dependency_cycles(), plugins_scheduler::list, plugins_scheduler_enable(), and plugins_scheduler_free().
Referenced by attack_network().


| struct scheduler_plugin* plugins_scheduler_next | ( | plugins_scheduler_t | h | ) |
Definition at line 442 of file pluginscheduler.c.
References ACT_ATTACK, ACT_END, ACT_FLOOD, ACT_GATHER_INFO, ACT_INIT, ACT_SCANNER, ACT_SETTINGS, get_next_in_range(), and scheduler_phase_cleanup().
Referenced by attack_host().


| void plugins_scheduler_stop | ( | plugins_scheduler_t | sched | ) |
Definition at line 499 of file pluginscheduler.c.
References ACT_END, ACT_INIT, plugins_scheduler::list, PLUGIN_STATUS_DONE, scheduler_plugin::running_state, and plugins_scheduler::stopped.
Referenced by attack_host().

|
static |
Definition at line 419 of file pluginscheduler.c.
References scheduler_plugin::deps, plugins_scheduler::list, and scheduler_plugin::oid.
Referenced by plugins_scheduler_next().

| void scheduler_plugin_free | ( | void * | data | ) |
Definition at line 521 of file pluginscheduler.c.
References scheduler_plugin::deps, and scheduler_plugin::oid.
Referenced by plugins_scheduler_free().
