OpenVAS Libraries  6.0+beta5
Functions
hg_filter.c File Reference
#include <string.h>
#include "hosts_gatherer.h"
#include "hg_subnet.h"

Functions

int hg_filter_host (struct hg_globals *globals, char *hostname, struct in_addr addr)
 
int hg_filter_subnet (struct hg_globals *globals, struct in_addr addr, int netmask)
 Returns 1 if the subnet must NOT be tested. More...
 
int hg_filter_domain (struct hg_globals *globals, char *domain)
 Returns 1 if the domain must NOT be tested. More...
 

Function Documentation

int hg_filter_domain ( struct hg_globals globals,
char *  domain 
)

Returns 1 if the domain must NOT be tested.

Returns
1 if the domain must NOT be tested.
int hg_filter_host ( struct hg_globals globals,
char *  hostname,
struct in_addr  addr 
)

Returns 1 if the host must be filtered, that is, it must NOT be included in the list. Returns 0 if it must be included in the list.

Returns
0 if host must be included, 1 host must not be included
int hg_filter_subnet ( struct hg_globals globals,
struct in_addr  addr,
int  netmask 
)

Returns 1 if the subnet must NOT be tested.

Returns
1 if the subnet must not be tested.