rr_functions.h File Reference

Go to the source code of this file.

Functions

ldns_rdfldns_rr_address (ldns_rr *r)
 returns the address of a LDNS_RR_TYPE_A rr
bool ldns_rr_set_address (ldns_rr *r, ldns_rdf *f)
 sets the address of a LDNS_RR_TYPE_A rr
ldns_rdfldns_rr_ns_nsdname (ldns_rr *r)
 returns the name of a LDNS_RR_TYPE_NS rr
ldns_rdfldns_rr_mx_preference (ldns_rr *r)
 returns the mx pref.
ldns_rdfldns_rr_mx_exchange (ldns_rr *r)
 returns the mx host of a LDNS_RR_TYPE_MX rr
ldns_rdfldns_rr_rrsig_typecovered (ldns_rr *r)
 returns the type covered of a LDNS_RR_TYPE_RRSIG rr
bool ldns_rr_rrsig_set_typecovered (ldns_rr *r, ldns_rdf *f)
 sets the typecovered of a LDNS_RR_TYPE_RRSIG rr
ldns_rdfldns_rr_rrsig_algorithm (ldns_rr *r)
 returns the algorithm of a LDNS_RR_TYPE_RRSIG RR
bool ldns_rr_rrsig_set_algorithm (ldns_rr *r, ldns_rdf *f)
 sets the algorithm of a LDNS_RR_TYPE_RRSIG rr
ldns_rdfldns_rr_rrsig_labels (ldns_rr *r)
 returns the number of labels of a LDNS_RR_TYPE_RRSIG RR
bool ldns_rr_rrsig_set_labels (ldns_rr *r, ldns_rdf *f)
 sets the number of labels of a LDNS_RR_TYPE_RRSIG rr
ldns_rdfldns_rr_rrsig_origttl (ldns_rr *r)
 returns the original TTL of a LDNS_RR_TYPE_RRSIG RR
bool ldns_rr_rrsig_set_origttl (ldns_rr *r, ldns_rdf *f)
 sets the original TTL of a LDNS_RR_TYPE_RRSIG rr
ldns_rdfldns_rr_rrsig_expiration (ldns_rr *r)
 returns the expiration time of a LDNS_RR_TYPE_RRSIG RR
bool ldns_rr_rrsig_set_expiration (ldns_rr *r, ldns_rdf *f)
 sets the expireation date of a LDNS_RR_TYPE_RRSIG rr
ldns_rdfldns_rr_rrsig_inception (ldns_rr *r)
 returns the inception time of a LDNS_RR_TYPE_RRSIG RR
bool ldns_rr_rrsig_set_inception (ldns_rr *r, ldns_rdf *f)
 sets the inception date of a LDNS_RR_TYPE_RRSIG rr
ldns_rdfldns_rr_rrsig_keytag (ldns_rr *r)
 returns the keytag of a LDNS_RR_TYPE_RRSIG RR
bool ldns_rr_rrsig_set_keytag (ldns_rr *r, ldns_rdf *f)
 sets the keytag of a LDNS_RR_TYPE_RRSIG rr
ldns_rdfldns_rr_rrsig_signame (ldns_rr *r)
 returns the signers name of a LDNS_RR_TYPE_RRSIG RR
bool ldns_rr_rrsig_set_signame (ldns_rr *r, ldns_rdf *f)
 sets the signers name of a LDNS_RR_TYPE_RRSIG rr
ldns_rdfldns_rr_rrsig_sig (ldns_rr *r)
 returns the signature data of a LDNS_RR_TYPE_RRSIG RR
bool ldns_rr_rrsig_set_sig (ldns_rr *r, ldns_rdf *f)
 sets the signature data of a LDNS_RR_TYPE_RRSIG rr
ldns_rdfldns_rr_dnskey_flags (ldns_rr *r)
 returns the flags of a LDNS_RR_TYPE_DNSKEY rr
bool ldns_rr_dnskey_set_flags (ldns_rr *r, ldns_rdf *f)
 sets the flags of a LDNS_RR_TYPE_DNSKEY rr
ldns_rdfldns_rr_dnskey_protocol (ldns_rr *r)
 returns the protocol of a LDNS_RR_TYPE_DNSKEY rr
bool ldns_rr_dnskey_set_protocol (ldns_rr *r, ldns_rdf *f)
 sets the protocol of a LDNS_RR_TYPE_DNSKEY rr
ldns_rdfldns_rr_dnskey_algorithm (ldns_rr *r)
 returns the algorithm of a LDNS_RR_TYPE_DNSKEY rr
bool ldns_rr_dnskey_set_algorithm (ldns_rr *r, ldns_rdf *f)
 sets the algorithm of a LDNS_RR_TYPE_DNSKEY rr
ldns_rdfldns_rr_dnskey_key (ldns_rr *r)
 returns the key data of a LDNS_RR_TYPE_DNSKEY rr
bool ldns_rr_dnskey_set_key (ldns_rr *r, ldns_rdf *f)
 sets the key data of a LDNS_RR_TYPE_DNSKEY rr
uint16_t ldns_rr_dnskey_key_size (ldns_rr *key)
 get the length of the keydata in bits


Function Documentation

ldns_rdf* ldns_rr_address ( ldns_rr r  ) 

returns the address of a LDNS_RR_TYPE_A rr

Parameters:
[in] r the resource record
Returns:
a ldns_rdf* with the address or NULL on failure

ldns_rdf* ldns_rr_dnskey_algorithm ( ldns_rr r  ) 

returns the algorithm of a LDNS_RR_TYPE_DNSKEY rr

Parameters:
[in] r the resource record
Returns:
a ldns_rdf* with the algorithm or NULL on failure

ldns_rdf* ldns_rr_dnskey_flags ( ldns_rr r  ) 

returns the flags of a LDNS_RR_TYPE_DNSKEY rr

Parameters:
[in] r the resource record
Returns:
a ldns_rdf* with the flags or NULL on failure

ldns_rdf* ldns_rr_dnskey_key ( ldns_rr r  ) 

returns the key data of a LDNS_RR_TYPE_DNSKEY rr

Parameters:
[in] r the resource record
Returns:
a ldns_rdf* with the key data or NULL on failure

uint16_t ldns_rr_dnskey_key_size ( ldns_rr key  ) 

get the length of the keydata in bits

Parameters:
[in] key the key rr to use
Returns:
the keysize in bits

ldns_rdf* ldns_rr_dnskey_protocol ( ldns_rr r  ) 

returns the protocol of a LDNS_RR_TYPE_DNSKEY rr

Parameters:
[in] r the resource record
Returns:
a ldns_rdf* with the protocol or NULL on failure

bool ldns_rr_dnskey_set_algorithm ( ldns_rr r,
ldns_rdf f 
)

sets the algorithm of a LDNS_RR_TYPE_DNSKEY rr

Parameters:
[in] r the rr to use
[in] f the algorithm to set
Returns:
true on success, false otherwise

bool ldns_rr_dnskey_set_flags ( ldns_rr r,
ldns_rdf f 
)

sets the flags of a LDNS_RR_TYPE_DNSKEY rr

Parameters:
[in] r the rr to use
[in] f the flags to set
Returns:
true on success, false otherwise

bool ldns_rr_dnskey_set_key ( ldns_rr r,
ldns_rdf f 
)

sets the key data of a LDNS_RR_TYPE_DNSKEY rr

Parameters:
[in] r the rr to use
[in] f the key data to set
Returns:
true on success, false otherwise

bool ldns_rr_dnskey_set_protocol ( ldns_rr r,
ldns_rdf f 
)

sets the protocol of a LDNS_RR_TYPE_DNSKEY rr

Parameters:
[in] r the rr to use
[in] f the protocol to set
Returns:
true on success, false otherwise

ldns_rdf* ldns_rr_mx_exchange ( ldns_rr r  ) 

returns the mx host of a LDNS_RR_TYPE_MX rr

Parameters:
[in] r the resource record
Returns:
a ldns_rdf* with the name of the MX host or NULL on failure

ldns_rdf* ldns_rr_mx_preference ( ldns_rr r  ) 

returns the mx pref.

of a LDNS_RR_TYPE_MX rr

Parameters:
[in] r the resource record
Returns:
a ldns_rdf* with the preference or NULL on failure

ldns_rdf* ldns_rr_ns_nsdname ( ldns_rr r  ) 

returns the name of a LDNS_RR_TYPE_NS rr

Parameters:
[in] r the resource record
Returns:
a ldns_rdf* with the name or NULL on failure

ldns_rdf* ldns_rr_rrsig_algorithm ( ldns_rr r  ) 

returns the algorithm of a LDNS_RR_TYPE_RRSIG RR

Parameters:
[in] r the resource record
Returns:
a ldns_rdf* with the algorithm or NULL on failure

ldns_rdf* ldns_rr_rrsig_expiration ( ldns_rr r  ) 

returns the expiration time of a LDNS_RR_TYPE_RRSIG RR

Parameters:
[in] r the resource record
Returns:
a ldns_rdf* with the expiration time or NULL on failure

ldns_rdf* ldns_rr_rrsig_inception ( ldns_rr r  ) 

returns the inception time of a LDNS_RR_TYPE_RRSIG RR

Parameters:
[in] r the resource record
Returns:
a ldns_rdf* with the inception time or NULL on failure

ldns_rdf* ldns_rr_rrsig_keytag ( ldns_rr r  ) 

returns the keytag of a LDNS_RR_TYPE_RRSIG RR

Parameters:
[in] r the resource record
Returns:
a ldns_rdf* with the keytag or NULL on failure

ldns_rdf* ldns_rr_rrsig_labels ( ldns_rr r  ) 

returns the number of labels of a LDNS_RR_TYPE_RRSIG RR

Parameters:
[in] r the resource record
Returns:
a ldns_rdf* with the number of labels or NULL on failure

ldns_rdf* ldns_rr_rrsig_origttl ( ldns_rr r  ) 

returns the original TTL of a LDNS_RR_TYPE_RRSIG RR

Parameters:
[in] r the resource record
Returns:
a ldns_rdf* with the original TTL or NULL on failure

bool ldns_rr_rrsig_set_algorithm ( ldns_rr r,
ldns_rdf f 
)

sets the algorithm of a LDNS_RR_TYPE_RRSIG rr

Parameters:
[in] r the rr to use
[in] f the algorithm to set
Returns:
true on success, false otherwise

bool ldns_rr_rrsig_set_expiration ( ldns_rr r,
ldns_rdf f 
)

sets the expireation date of a LDNS_RR_TYPE_RRSIG rr

Parameters:
[in] r the rr to use
[in] f the expireation date to set
Returns:
true on success, false otherwise

bool ldns_rr_rrsig_set_inception ( ldns_rr r,
ldns_rdf f 
)

sets the inception date of a LDNS_RR_TYPE_RRSIG rr

Parameters:
[in] r the rr to use
[in] f the inception date to set
Returns:
true on success, false otherwise

bool ldns_rr_rrsig_set_keytag ( ldns_rr r,
ldns_rdf f 
)

sets the keytag of a LDNS_RR_TYPE_RRSIG rr

Parameters:
[in] r the rr to use
[in] f the keytag to set
Returns:
true on success, false otherwise

bool ldns_rr_rrsig_set_labels ( ldns_rr r,
ldns_rdf f 
)

sets the number of labels of a LDNS_RR_TYPE_RRSIG rr

Parameters:
[in] r the rr to use
[in] f the number of labels to set
Returns:
true on success, false otherwise

bool ldns_rr_rrsig_set_origttl ( ldns_rr r,
ldns_rdf f 
)

sets the original TTL of a LDNS_RR_TYPE_RRSIG rr

Parameters:
[in] r the rr to use
[in] f the original TTL to set
Returns:
true on success, false otherwise

bool ldns_rr_rrsig_set_sig ( ldns_rr r,
ldns_rdf f 
)

sets the signature data of a LDNS_RR_TYPE_RRSIG rr

Parameters:
[in] r the rr to use
[in] f the signature data to set
Returns:
true on success, false otherwise

bool ldns_rr_rrsig_set_signame ( ldns_rr r,
ldns_rdf f 
)

sets the signers name of a LDNS_RR_TYPE_RRSIG rr

Parameters:
[in] r the rr to use
[in] f the signers name to set
Returns:
true on success, false otherwise

bool ldns_rr_rrsig_set_typecovered ( ldns_rr r,
ldns_rdf f 
)

sets the typecovered of a LDNS_RR_TYPE_RRSIG rr

Parameters:
[in] r the rr to use
[in] f the typecovered to set
Returns:
true on success, false otherwise

ldns_rdf* ldns_rr_rrsig_sig ( ldns_rr r  ) 

returns the signature data of a LDNS_RR_TYPE_RRSIG RR

Parameters:
[in] r the resource record
Returns:
a ldns_rdf* with the signature data or NULL on failure

ldns_rdf* ldns_rr_rrsig_signame ( ldns_rr r  ) 

returns the signers name of a LDNS_RR_TYPE_RRSIG RR

Parameters:
[in] r the resource record
Returns:
a ldns_rdf* with the signers name or NULL on failure

ldns_rdf* ldns_rr_rrsig_typecovered ( ldns_rr r  ) 

returns the type covered of a LDNS_RR_TYPE_RRSIG rr

Parameters:
[in] r the resource record
Returns:
a ldns_rdf* with the type covered or NULL on failure

bool ldns_rr_set_address ( ldns_rr r,
ldns_rdf f 
)

sets the address of a LDNS_RR_TYPE_A rr

Parameters:
[in] r the rr to use
[in] f the address to set
Returns:
true on success, false otherwise


Generated on Mon Sep 11 20:10:21 2006 for ldns by  doxygen 1.4.7