OpenVAS Scanner 23.23.1
heartbeat.c File Reference

Function for heartbeat. More...

#include "../misc/heartbeat.h"
#include "../misc/plugutils.h"
#include <gvm/base/prefs.h>
#include <gvm/boreas/cli.h>

Macros

#define G_LOG_DOMAIN   "sd main"
 GLib log domain.

Functions

int check_host_still_alive (kb_t kb, const char *hostname)
 Check if the hosts is still alive and set it as dead if not.

Detailed Description

Function for heartbeat.

Macro Definition Documentation

◆ G_LOG_DOMAIN

#define G_LOG_DOMAIN   "sd main"

GLib log domain.

Function Documentation

◆ check_host_still_alive()

int check_host_still_alive ( kb_t kb,
const char * hostname )

Check if the hosts is still alive and set it as dead if not.

Parameters
kbHost kb where the host is set as dead.
Returns
1 if considered alive, 0 if it is dead. -1 on error or option disabled.