OpenVAS Scanner
5.1.3
|
#include <string.h>
#include <openvas/base/nvti.h>
#include <openvas/misc/nvt_categories.h>
#include <openvas/misc/plugutils.h>
#include <openvas/base/nvticache.h>
#include <glib.h>
#include "pluginscheduler.h"
#include "pluginload.h"
#include "pluginlaunch.h"
#include "log.h"
Go to the source code of this file.
Data Structures | |
struct | hash |
struct | list |
struct | plist |
struct | plugins_scheduler |
Macros | |
#define | HASH_MAX 2713 |
Functions | |
struct plist * | pl_get (struct plist *list, char *name) |
void | scheduler_mark_running_ports (plugins_scheduler_t sched, struct scheduler_plugin *plugin) |
void | scheduler_rm_running_ports (plugins_scheduler_t sched, struct scheduler_plugin *plugin) |
struct scheduler_plugin * | plugin_next_unrun_dependency (plugins_scheduler_t sched, struct hash **dependencies_ptr, int calls) |
plugins_scheduler_t | plugins_scheduler_init (const char *plugins_list, int autoload, int only_network) |
int | plugins_scheduler_count_active (plugins_scheduler_t sched) |
struct scheduler_plugin * | plugins_scheduler_next (plugins_scheduler_t h) |
void | list_destroy (struct list *list) |
void | plugins_scheduler_free (plugins_scheduler_t sched) |
#define HASH_MAX 2713 |
Definition at line 50 of file pluginscheduler.c.
void list_destroy | ( | struct list * | list | ) |
Definition at line 719 of file pluginscheduler.c.
References list::next.
Definition at line 220 of file pluginscheduler.c.
References plist::name, and list::next.
Referenced by scheduler_mark_running_ports(), and scheduler_rm_running_ports().
struct scheduler_plugin* plugin_next_unrun_dependency | ( | plugins_scheduler_t | sched, |
struct hash ** | dependencies_ptr, | ||
int | calls | ||
) |
Definition at line 322 of file pluginscheduler.c.
References hash::dependencies_ptr, log_write(), scheduler_plugin::oid, PLUG_RUNNING, hash::plugin, PLUGIN_STATUS_DONE, PLUGIN_STATUS_DONE_AND_CLEANED, PLUGIN_STATUS_RUNNING, PLUGIN_STATUS_UNRUN, pluginlaunch_wait_for_free_process(), scheduler_plugin::running_state, and scheduler_rm_running_ports().
int plugins_scheduler_count_active | ( | plugins_scheduler_t | sched | ) |
Definition at line 585 of file pluginscheduler.c.
References scheduler_plugin::enabled, plugins_scheduler::list, list::next, and list::plugin.
void plugins_scheduler_free | ( | plugins_scheduler_t | sched | ) |
Definition at line 730 of file pluginscheduler.c.
plugins_scheduler_t plugins_scheduler_init | ( | const char * | plugins_list, |
int | autoload, | ||
int | only_network | ||
) |
Definition at line 535 of file pluginscheduler.c.
References plugins_scheduler::hash.
struct scheduler_plugin* plugins_scheduler_next | ( | plugins_scheduler_t | h | ) |
Definition at line 694 of file pluginscheduler.c.
void scheduler_mark_running_ports | ( | plugins_scheduler_t | sched, |
struct scheduler_plugin * | plugin | ||
) |
Definition at line 242 of file pluginscheduler.c.
References plist::name, plist::next, plist::occurences, scheduler_plugin::oid, pl_get(), plugins_scheduler::plist, and plist::prev.
void scheduler_rm_running_ports | ( | plugins_scheduler_t | sched, |
struct scheduler_plugin * | plugin | ||
) |
Definition at line 278 of file pluginscheduler.c.
References log_write(), plist::name, plist::next, plist::occurences, scheduler_plugin::oid, pl_get(), plugins_scheduler::plist, and plist::prev.
Referenced by plugin_next_unrun_dependency().