OpenVAS Libraries  6.0+beta5
Data Structures | Macros | Functions
hg_dns_axfr.c File Reference
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "hosts_gatherer.h"
#include "hg_filter.h"
#include "hg_utils.h"
#include "hg_add_hosts.h"
#include <arpa/inet.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>

Data Structures

union  querybuf
 

Macros

#define INT16SZ   2
 
#define INT32SZ   4
 
#define HFIXEDSZ   12
 
#define HG_GET16(s, cp)
 

Functions

u_int hg_get16 (const u_char *src)
 
void hg_dns_axfr_add_hosts (struct hg_globals *globals, char *domain)
 

Macro Definition Documentation

#define HFIXEDSZ   12
#define HG_GET16 (   s,
  cp 
)
Value:
do { \
uint16_t *t_cp = (uint16_t *) (cp); \
(s) = ntohs (*t_cp); \
(cp) += NS_INT16SZ; \
} while (0)
#define INT16SZ   2
#define INT32SZ   4

Function Documentation

void hg_dns_axfr_add_hosts ( struct hg_globals globals,
char *  domain 
)

Our "main" function regarding DNS AXFR

u_int hg_get16 ( const u_char *  src)