Changeset View
Changeset View
Standalone View
Standalone View
contrib/ldns/ldns/resolver.h
Show First 20 Lines • Show All 244 Lines • ▼ Show 20 Lines | |||||
* Does the resolver set the CD bit | * Does the resolver set the CD bit | ||||
* \param[in] r the resolver | * \param[in] r the resolver | ||||
* \return true: yes, false: no | * \return true: yes, false: no | ||||
*/ | */ | ||||
bool ldns_resolver_dnssec_cd(const ldns_resolver *r); | bool ldns_resolver_dnssec_cd(const ldns_resolver *r); | ||||
/** | /** | ||||
* Get the resolver's DNSSEC anchors | * Get the resolver's DNSSEC anchors | ||||
* \param[in] r the resolver | * \param[in] r the resolver | ||||
* \return an rr_list containg trusted DNSSEC anchors | * \return an rr_list containing trusted DNSSEC anchors | ||||
*/ | */ | ||||
ldns_rr_list * ldns_resolver_dnssec_anchors(const ldns_resolver *r); | ldns_rr_list * ldns_resolver_dnssec_anchors(const ldns_resolver *r); | ||||
/** | /** | ||||
* Does the resolver ignore the TC bit (truncated) | * Does the resolver ignore the TC bit (truncated) | ||||
* \param[in] r the resolver | * \param[in] r the resolver | ||||
* \return true: yes, false: no | * \return true: yes, false: no | ||||
*/ | */ | ||||
bool ldns_resolver_igntc(const ldns_resolver *r); | bool ldns_resolver_igntc(const ldns_resolver *r); | ||||
▲ Show 20 Lines • Show All 463 Lines • ▼ Show 20 Lines | |||||
* looked the RESOLV_CONF (defaults to /etc/resolv.conf) | * looked the RESOLV_CONF (defaults to /etc/resolv.conf) | ||||
* \param[out] r the new resolver | * \param[out] r the new resolver | ||||
* \param[in] filename the filename to use | * \param[in] filename the filename to use | ||||
* \return LDNS_STATUS_OK or the error | * \return LDNS_STATUS_OK or the error | ||||
*/ | */ | ||||
ldns_status ldns_resolver_new_frm_file(ldns_resolver **r, const char *filename); | ldns_status ldns_resolver_new_frm_file(ldns_resolver **r, const char *filename); | ||||
/** | /** | ||||
* Frees the allocated space for this resolver. Only frees the resolver pionter! You should probably be using _deep_free. | * Frees the allocated space for this resolver. Only frees the resolver pointer! You should probably be using _deep_free. | ||||
* \param res resolver to free | * \param res resolver to free | ||||
*/ | */ | ||||
void ldns_resolver_free(ldns_resolver *res); | void ldns_resolver_free(ldns_resolver *res); | ||||
/** | /** | ||||
* Frees the allocated space for this resolver and all it's data | * Frees the allocated space for this resolver and all it's data | ||||
* \param res resolver to free | * \param res resolver to free | ||||
*/ | */ | ||||
Show All 19 Lines | |||||
* Returns true if the axfr transfer has completed (i.e. 2 SOA RRs and no errors were encountered | * Returns true if the axfr transfer has completed (i.e. 2 SOA RRs and no errors were encountered | ||||
* \param[in] resolver the resolver that is used | * \param[in] resolver the resolver that is used | ||||
* \return bool true if axfr transfer was completed without error | * \return bool true if axfr transfer was completed without error | ||||
*/ | */ | ||||
bool ldns_axfr_complete(const ldns_resolver *resolver); | bool ldns_axfr_complete(const ldns_resolver *resolver); | ||||
/** | /** | ||||
* Returns a pointer to the last ldns_pkt that was sent by the server in the AXFR transfer | * Returns a pointer to the last ldns_pkt that was sent by the server in the AXFR transfer | ||||
* uasable for instance to get the error code on failure | * usable for instance to get the error code on failure | ||||
* \param[in] res the resolver that was used in the axfr transfer | * \param[in] res the resolver that was used in the axfr transfer | ||||
* \return ldns_pkt the last packet sent | * \return ldns_pkt the last packet sent | ||||
*/ | */ | ||||
ldns_pkt *ldns_axfr_last_pkt(const ldns_resolver *res); | ldns_pkt *ldns_axfr_last_pkt(const ldns_resolver *res); | ||||
/** | /** | ||||
* Get the serial for requesting IXFR. | * Get the serial for requesting IXFR. | ||||
* \param[in] r the resolver | * \param[in] r the resolver | ||||
Show All 31 Lines |