higher.h
Go to the documentation of this file.
/*
* a Net::DNS like library for C
*
* (c) NLnet Labs, 2005-2006
*
* See the file LICENSE for the license
*/
#ifndef LDNS_HIGHER_H
#define LDNS_HIGHER_H
#include <ldns/resolver.h>
#include <ldns/rdata.h>
#include <ldns/rr.h>
#include <ldns/host2str.h>
#include <ldns/tsig.h>
#ifdef __cplusplus
extern "C" {
#endif
ldns_rr_list *ldns_get_rr_list_addr_by_name(ldns_resolver *r, const ldns_rdf *name, ldns_rr_class c, uint16_t flags);
ldns_rr_list *ldns_get_rr_list_name_by_addr(ldns_resolver *r, const ldns_rdf *addr, ldns_rr_class c, uint16_t flags);
ldns_rr_list *ldns_get_rr_list_hosts_frm_fp(FILE *fp);
ldns_rr_list *ldns_get_rr_list_hosts_frm_fp_l(FILE *fp, int *line_nr);
ldns_rr_list *ldns_get_rr_list_hosts_frm_file(char *filename);
uint16_t ldns_getaddrinfo(ldns_resolver *res, const ldns_rdf *node, ldns_rr_class c, ldns_rr_list **list);
bool ldns_nsec_type_check(const ldns_rr *nsec, ldns_rr_type t);
void ldns_print_rr_rdf(FILE *fp, ldns_rr *r, int rdfnum, ...);
#ifdef __cplusplus
}
#endif
#endif /* LDNS_HIGHER_H */
ldns_get_rr_list_addr_by_name
ldns_rr_list * ldns_get_rr_list_addr_by_name(ldns_resolver *r, const ldns_rdf *name, ldns_rr_class c, uint16_t flags)
Ask the resolver about name and return all address records.
Definition higher.c:24
ldns_get_rr_list_hosts_frm_fp
ldns_rr_list * ldns_get_rr_list_hosts_frm_fp(FILE *fp)
wade through fp (a /etc/hosts like file) and return a rr_list containing all the defined hosts in the...
Definition higher.c:141
ldns_print_rr_rdf
void ldns_print_rr_rdf(FILE *fp, ldns_rr *r, int rdfnum,...)
Print a number of rdf's of the RR.
Definition higher.c:328
ldns_get_rr_list_name_by_addr
ldns_rr_list * ldns_get_rr_list_name_by_addr(ldns_resolver *r, const ldns_rdf *addr, ldns_rr_class c, uint16_t flags)
ask the resolver about the address and return the name
Definition higher.c:107
ldns_nsec_type_check
signed char ldns_nsec_type_check(const ldns_rr *nsec, ldns_rr_type t)
Check if t is enumerated in the nsec type rdata.
Definition higher.c:308
ldns_get_rr_list_hosts_frm_fp_l
ldns_rr_list * ldns_get_rr_list_hosts_frm_fp_l(FILE *fp, int *line_nr)
wade through fp (a /etc/hosts like file) and return a rr_list containing all the defined hosts in the...
Definition higher.c:147
ldns_getaddrinfo
uint16_t ldns_getaddrinfo(ldns_resolver *res, const ldns_rdf *node, ldns_rr_class c, ldns_rr_list **list)
This function is a wrapper function for ldns_get_rr_list_name_by_addr and ldns_get_rr_list_addr_by_na...
Definition higher.c:268
ldns_get_rr_list_hosts_frm_file
ldns_rr_list * ldns_get_rr_list_hosts_frm_file(char *filename)
wade through fp (a /etc/hosts like file) and return a rr_list containing all the defined hosts in the...
Definition higher.c:247
host2str.h
host2str.h - txt presentation of RRs
rdata.h
Defines ldns_rdf and functions to manipulate those.
ldns_rdf
struct ldns_struct_rdf ldns_rdf
Definition rdata.h:205
resolver.h
Defines the ldns_resolver structure, a stub resolver that can send queries and parse answers.
ldns_resolver
struct ldns_struct_resolver ldns_resolver
Definition resolver.h:147
rr.h
Contains the definition of ldns_rr and functions to manipulate those.
ldns_rr
struct ldns_struct_rr ldns_rr
Definition rr.h:337
ldns_rr_type
enum ldns_enum_rr_type ldns_rr_type
Definition rr.h:251
ldns_rr_list
struct ldns_struct_rr_list ldns_rr_list
Definition rr.h:351
ldns_rr_class
enum ldns_enum_rr_class ldns_rr_class
Definition rr.h:61
tsig.h
Defines functions for TSIG usage.