Logo Search packages:      
Sourcecode: ldns version File versions  Download package

rr.h File Reference


Detailed Description

Contains the definition of ldns_rr and functions to manipulate those.

Definition in file rr.h.

#include <ldns/common.h>
#include <ldns/rdata.h>
#include <ldns/buffer.h>
#include <ldns/error.h>

Go to the source code of this file.

Classes

struct  ldns_struct_rr
struct  ldns_struct_rr_descriptor
struct  ldns_struct_rr_list

Defines

#define LDNS_MAX_DOMAINLEN   255
#define LDNS_MAX_LABELLEN   63
#define LDNS_MAX_POINTERS   65535
#define LDNS_RR_OVERHEAD   10

Typedefs

typedef struct ldns_struct_rr ldns_rr
typedef enum ldns_enum_rr_class ldns_rr_class
typedef enum ldns_enum_rr_compress ldns_rr_compress
typedef struct
ldns_struct_rr_descriptor 
ldns_rr_descriptor
typedef struct ldns_struct_rr_list ldns_rr_list
typedef enum ldns_enum_rr_type ldns_rr_type

Enumerations

enum  ldns_enum_rr_class {
  LDNS_RR_CLASS_IN = 1, LDNS_RR_CLASS_CH = 3, LDNS_RR_CLASS_HS = 4, LDNS_RR_CLASS_NONE = 254,
  LDNS_RR_CLASS_ANY = 255, LDNS_RR_CLASS_FIRST = 0, LDNS_RR_CLASS_LAST = 65535, LDNS_RR_CLASS_COUNT = LDNS_RR_CLASS_LAST - LDNS_RR_CLASS_FIRST + 1
}
enum  ldns_enum_rr_compress { LDNS_RR_COMPRESS, LDNS_RR_NO_COMPRESS }
enum  ldns_enum_rr_type {
  LDNS_RR_TYPE_A = 1, LDNS_RR_TYPE_NS = 2, LDNS_RR_TYPE_MD = 3, LDNS_RR_TYPE_MF = 4,
  LDNS_RR_TYPE_CNAME = 5, LDNS_RR_TYPE_SOA = 6, LDNS_RR_TYPE_MB = 7, LDNS_RR_TYPE_MG = 8,
  LDNS_RR_TYPE_MR = 9, LDNS_RR_TYPE_NULL = 10, LDNS_RR_TYPE_WKS = 11, LDNS_RR_TYPE_PTR = 12,
  LDNS_RR_TYPE_HINFO = 13, LDNS_RR_TYPE_MINFO = 14, LDNS_RR_TYPE_MX = 15, LDNS_RR_TYPE_TXT = 16,
  LDNS_RR_TYPE_RP = 17, LDNS_RR_TYPE_AFSDB = 18, LDNS_RR_TYPE_X25 = 19, LDNS_RR_TYPE_ISDN = 20,
  LDNS_RR_TYPE_RT = 21, LDNS_RR_TYPE_NSAP = 22, LDNS_RR_TYPE_NSAP_PTR = 23, LDNS_RR_TYPE_SIG = 24,
  LDNS_RR_TYPE_KEY = 25, LDNS_RR_TYPE_PX = 26, LDNS_RR_TYPE_GPOS = 27, LDNS_RR_TYPE_AAAA = 28,
  LDNS_RR_TYPE_LOC = 29, LDNS_RR_TYPE_NXT = 30, LDNS_RR_TYPE_EID = 31, LDNS_RR_TYPE_NIMLOC = 32,
  LDNS_RR_TYPE_SRV = 33, LDNS_RR_TYPE_ATMA = 34, LDNS_RR_TYPE_NAPTR = 35, LDNS_RR_TYPE_KX = 36,
  LDNS_RR_TYPE_CERT = 37, LDNS_RR_TYPE_A6 = 38, LDNS_RR_TYPE_DNAME = 39, LDNS_RR_TYPE_SINK = 40,
  LDNS_RR_TYPE_OPT = 41, LDNS_RR_TYPE_APL = 42, LDNS_RR_TYPE_DS = 43, LDNS_RR_TYPE_SSHFP = 44,
  LDNS_RR_TYPE_IPSECKEY = 45, LDNS_RR_TYPE_RRSIG = 46, LDNS_RR_TYPE_NSEC = 47, LDNS_RR_TYPE_DNSKEY = 48,
  LDNS_RR_TYPE_UINFO = 100, LDNS_RR_TYPE_UID = 101, LDNS_RR_TYPE_GID = 102, LDNS_RR_TYPE_UNSPEC = 103,
  LDNS_RR_TYPE_TSIG = 250, LDNS_RR_TYPE_IXFR = 251, LDNS_RR_TYPE_AXFR = 252, LDNS_RR_TYPE_MAILB = 253,
  LDNS_RR_TYPE_MAILA = 254, LDNS_RR_TYPE_ANY = 255, LDNS_RR_TYPE_FIRST = 0, LDNS_RR_TYPE_LAST = 65535,
  LDNS_RR_TYPE_COUNT = LDNS_RR_TYPE_LAST - LDNS_RR_TYPE_FIRST + 1
}

Functions

ldns_rr_class ldns_get_rr_class_by_name (const char *name)
ldns_rr_type ldns_get_rr_type_by_name (const char *name)
bool ldns_is_rrset (ldns_rr_list *rr_list)
ldns_rr_type ldns_rdf2rr_type (const ldns_rdf *rd)
void ldns_rr2canonical (ldns_rr *rr)
ldns_rrldns_rr_clone (const ldns_rr *rr)
int ldns_rr_compare (const ldns_rr *rr1, const ldns_rr *rr2)
bool ldns_rr_compare_ds (const ldns_rr *rr1, const ldns_rr *rr2)
int ldns_rr_compare_no_rdata (const ldns_rr *rr1, const ldns_rr *rr2)
int ldns_rr_compare_wire (ldns_buffer *rr1_buf, ldns_buffer *rr2_buf)
const ldns_rr_descriptorldns_rr_descript (uint16_t type)
ldns_rdf_type ldns_rr_descriptor_field_type (const ldns_rr_descriptor *descriptor, size_t field)
size_t ldns_rr_descriptor_maximum (const ldns_rr_descriptor *descriptor)
size_t ldns_rr_descriptor_minimum (const ldns_rr_descriptor *descriptor)
void ldns_rr_free (ldns_rr *rr)
ldns_rr_class ldns_rr_get_class (const ldns_rr *rr)
ldns_rr_type ldns_rr_get_type (const ldns_rr *rr)
uint8_t ldns_rr_label_count (ldns_rr *rr)
void ldns_rr_list2canonical (ldns_rr_list *rr_list)
bool ldns_rr_list_cat (ldns_rr_list *left, ldns_rr_list *right)
ldns_rr_listldns_rr_list_cat_clone (ldns_rr_list *left, ldns_rr_list *right)
ldns_rr_listldns_rr_list_clone (ldns_rr_list *rrlist)
int ldns_rr_list_compare (const ldns_rr_list *rrl1, const ldns_rr_list *rrl2)
bool ldns_rr_list_contains_rr (ldns_rr_list *rr_list, ldns_rr *rr)
void ldns_rr_list_deep_free (ldns_rr_list *rr_list)
void ldns_rr_list_free (ldns_rr_list *rr_list)
ldns_rr_listldns_rr_list_new ()
ldns_rrldns_rr_list_pop_rr (ldns_rr_list *rr_list)
ldns_rr_listldns_rr_list_pop_rr_list (ldns_rr_list *rr_list, size_t size)
ldns_rr_listldns_rr_list_pop_rrset (ldns_rr_list *rr_list)
bool ldns_rr_list_push_rr (ldns_rr_list *rr_list, const ldns_rr *rr)
bool ldns_rr_list_push_rr_list (ldns_rr_list *rr_list, const ldns_rr_list *push_list)
ldns_rrldns_rr_list_rr (const ldns_rr_list *rr_list, size_t nr)
size_t ldns_rr_list_rr_count (const ldns_rr_list *rr_list)
ldns_rrldns_rr_list_set_rr (ldns_rr_list *rr_list, const ldns_rr *r, size_t count)
void ldns_rr_list_set_rr_count (ldns_rr_list *rr_list, size_t count)
void ldns_rr_list_sort (ldns_rr_list *unsorted)
ldns_rr_listldns_rr_list_subtype_by_rdf (ldns_rr_list *l, ldns_rdf *r, size_t pos)
ldns_rrldns_rr_new (void)
ldns_status ldns_rr_new_frm_fp (ldns_rr **rr, FILE *fp, uint16_t *default_ttl, ldns_rdf **origin, ldns_rdf **prev)
ldns_status ldns_rr_new_frm_fp_l (ldns_rr **rr, FILE *fp, uint16_t *default_ttl, ldns_rdf **origin, ldns_rdf **prev, int *line_nr)
ldns_status ldns_rr_new_frm_str (ldns_rr **n, const char *str, uint16_t default_ttl, ldns_rdf *origin, ldns_rdf **prev)
ldns_rrldns_rr_new_frm_type (ldns_rr_type t)
ldns_rdfldns_rr_owner (const ldns_rr *rr)
ldns_rdfldns_rr_pop_rdf (ldns_rr *rr)
bool ldns_rr_push_rdf (ldns_rr *rr, const ldns_rdf *f)
size_t ldns_rr_rd_count (const ldns_rr *rr)
ldns_rdfldns_rr_rdf (const ldns_rr *rr, size_t nr)
void ldns_rr_set_class (ldns_rr *rr, ldns_rr_class rr_class)
void ldns_rr_set_owner (ldns_rr *rr, ldns_rdf *owner)
ldns_rrldns_rr_set_pop_rr (ldns_rr_list *rr_list)
bool ldns_rr_set_push_rr (ldns_rr_list *rr_list, ldns_rr *rr)
void ldns_rr_set_rd_count (ldns_rr *rr, size_t count)
ldns_rdfldns_rr_set_rdf (ldns_rr *rr, const ldns_rdf *f, size_t position)
void ldns_rr_set_ttl (ldns_rr *rr, uint32_t ttl)
void ldns_rr_set_type (ldns_rr *rr, ldns_rr_type rr_type)
uint32_t ldns_rr_ttl (const ldns_rr *rr)
size_t ldns_rr_uncompressed_size (const ldns_rr *r)


Generated by  Doxygen 1.6.0   Back to index