OpenVAS Libraries  6.0+beta5
Data Structures | Macros | Functions
hosts_gatherer.h File Reference
#include <netinet/in.h>
#include "../misc/arglists.h"

Go to the source code of this file.

Data Structures

struct  hg_host
 
struct  hg_globals
 

Macros

#define INADDR_NONE   0xffffffff
 
#define HG_NFS   1
 
#define HG_DNS_AXFR   2
 
#define HG_SUBNET   4
 
#define HG_PING   8
 
#define HG_REVLOOKUP   16 /* Are we allowed to use the DNS ? */
 
#define HG_REVLOOKUP_AS_PING   32
 
#define HG_DISTRIBUTE   64
 

Functions

struct hg_globalshg_init (char *, int)
 
int hg_next_host (struct hg_globals *, struct in6_addr *, char *, int)
 
void hg_cleanup (struct hg_globals *)
 Frees all the hosts and info associated to the hg_globals globals. More...
 
int hg_test_syntax (char *hostname, int flags)
 

Macro Definition Documentation

#define HG_DISTRIBUTE   64
#define HG_DNS_AXFR   2
#define HG_NFS   1
#define HG_PING   8
#define HG_REVLOOKUP   16 /* Are we allowed to use the DNS ? */
#define HG_REVLOOKUP_AS_PING   32
#define HG_SUBNET   4
#define INADDR_NONE   0xffffffff

Function Documentation

void hg_cleanup ( struct hg_globals )

Frees all the hosts and info associated to the hg_globals globals.

struct hg_globals* hg_init ( char *  hostname,
int  flags 
)

Inits a hg_globals struct with hostname and flags.

Returns
Fresh hg_globals.
int hg_next_host ( struct hg_globals ,
struct in6_addr *  ,
char *  ,
int   
)
int hg_test_syntax ( char *  hostname,
int  flags 
)