Greenbone Vulnerability Management Libraries  10.0.0
gvm_host Struct Reference

The structure for a single host object. More...

#include <hosts.h>

Collaboration diagram for gvm_host:
Collaboration graph

Data Fields

union {
   gchar *   name
 
   struct in_addr   addr
 
   struct in6_addr   addr6
 
}; 
 
enum host_type type
 
GSList * vhosts
 

Detailed Description

The structure for a single host object.

The elements of this structure should never be accessed directly. Only the functions corresponding to this module should be used.

Definition at line 63 of file hosts.h.

Field Documentation

◆ @1

union { ... }

◆ addr

struct in_addr gvm_host::addr

IPv4 address

Definition at line 68 of file hosts.h.

Referenced by gvm_host_get_addr6(), gvm_host_reverse_lookup(), gvm_host_value_str(), and gvm_hosts_new_with_max().

◆ addr6

struct in6_addr gvm_host::addr6

IPv6 address

Definition at line 69 of file hosts.h.

Referenced by gvm_host_get_addr6(), gvm_host_reverse_lookup(), gvm_host_value_str(), and gvm_hosts_new_with_max().

◆ name

gchar* gvm_host::name

◆ type

enum host_type gvm_host::type

◆ vhosts

GSList* gvm_host::vhosts

List of hostnames/vhosts attached to this host.

Definition at line 72 of file hosts.h.

Referenced by gvm_host_add_reverse_lookup(), gvm_host_free(), gvm_hosts_deduplicate(), and gvm_vhosts_exclude().


The documentation for this struct was generated from the following file: