|
OpenVAS Scanner 23.23.1
|
Loads plugins from disk into memory. More...
#include "pluginload.h"#include "../nasl/nasl.h"#include "processes.h"#include "sighand.h"#include "utils.h"#include <bsd/unistd.h>#include <errno.h>#include <glib.h>#include <gvm/base/prefs.h>#include <gvm/util/nvticache.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/shm.h>#include <sys/time.h>#include <sys/wait.h>Macros | |
| #define | G_LOG_DOMAIN "sd main" |
| GLib log domain. | |
Functions | |
| static GSList * | collect_nvts (const char *folder, const char *subdir, GSList *files) |
| Collects all NVT files in a directory and recurses into subdirs. | |
| static int | calculate_eta (struct timeval start_time, int loaded, int total) |
| void | init_loading_shm (void) |
| void | destroy_loading_shm (void) |
| int | current_loading_plugins (void) |
| int | total_loading_plugins (void) |
| static void | set_current_loading_plugins (int current) |
| static void | set_total_loading_plugins (int total) |
| static void | cleanup_leftovers (int num_files) |
| static int | plugins_reload_from_dir (const char *folder) |
| static void | include_dirs (void) |
| int | plugins_cache_init (void) |
| Main function for nvticache initialization without loading the plugins. | |
| int | plugins_init (void) |
| main function for loading all the plugins | |
Variables | |
| static int * | loading_shm = NULL |
| static int | loading_shmid = 0 |
Loads plugins from disk into memory.
| #define G_LOG_DOMAIN "sd main" |
GLib log domain.
|
static |
|
static |
|
static |
Collects all NVT files in a directory and recurses into subdirs.
| folder | The main directory from where to descend and collect. |
| subdir | A subdirectory to consider for the collection: "folder/subdir" is thus the effective directory to descend from. "subdir" can be "" to make "folder" the effective start. |
| files | A list that is extended with all found files. If it is NULL, a new list is created automatically. |
| int current_loading_plugins | ( | void | ) |
| void destroy_loading_shm | ( | void | ) |
|
static |
| void init_loading_shm | ( | void | ) |
| int plugins_cache_init | ( | void | ) |
Main function for nvticache initialization without loading the plugins.
| int plugins_init | ( | void | ) |
main function for loading all the plugins
|
static |
|
static |
|
static |
| int total_loading_plugins | ( | void | ) |
|
static |
|
static |