#include <config.h>
#include <stddef.h>
#include <string.h>
#include <isc/util.h>
#include <dns/name.h>
#include <dns/nsec3.h>
#include <dns/rdata.h>
#include <dns/rdatalist.h>
#include <dns/rdataset.h>
#include "rdatalist_p.h"
Go to the source code of this file.
Definition in file rdatalist.c.
void dns_rdatalist_init | ( | dns_rdatalist_t * | rdatalist | ) |
Initialize rdatalist.
Ensures:
Definition at line 59 of file rdatalist.c.
References dns_rdatalist::covers, ISC_LINK_INIT, ISC_LIST_INIT, dns_rdatalist::rdclass, REQUIRE, dns_rdatalist::ttl, dns_rdatalist::type, and dns_rdatalist::upper.
Referenced by add_ns(), add_soa(), addnsec3(), addnsec3param(), addoptout(), addrdataset(), ATF_TC_BODY(), checkandaddsoa(), configure_staticstub(), copy_name(), diff_apply(), diff_tuple_tordataset(), dns_client_updaterec(), dns_diff_load(), dns_nsec_build(), dns_sdb_putrdata(), dns_sdlz_putrr(), generate(), insert_soa(), load_raw(), load_text(), log_rr(), newrdatalist(), nsec3clean(), query_dns64(), query_filter64(), resigned(), subtract(), and tuple2msgname().
isc_result_t dns_rdatalist_tordataset | ( | dns_rdatalist_t * | rdatalist, | |
dns_rdataset_t * | rdataset | |||
) |
Make 'rdataset' refer to the rdata in 'rdatalist'.
Note:
Definition at line 81 of file rdatalist.c.
References dns_rdatalist::covers, dns_rdataset::covers, dns_rdataset_isassociated(), DNS_RDATASET_VALID, ISC_R_SUCCESS, dns_rdataset::methods, dns_rdataset::private1, dns_rdataset::private2, dns_rdataset::private3, dns_rdataset::private5, dns_rdataset::privateuint4, dns_rdatalist::rdclass, dns_rdataset::rdclass, REQUIRE, dns_rdataset::trust, dns_rdatalist::ttl, dns_rdataset::ttl, dns_rdatalist::type, dns_rdataset::type, and dns_rdatalist::upper.
Referenced by add_ns(), add_rdata_to_list(), add_soa(), addnsec3(), addnsec3param(), addoptout(), addrdataset(), ATF_TC_BODY(), buildquery(), checkandaddsoa(), commit(), configure_staticstub(), copy_name(), diff_apply(), diff_tuple_tordataset(), dns_client_updaterec(), dns_diff_load(), dns_dnssec_signmessage(), dns_message_buildopt(), dns_message_setquerytsig(), dns_nsec_build(), dns_tsig_sign(), getquestions(), getsection(), insert_soa(), list_tordataset(), log_rr(), make_prereq(), notify_createmessage(), nsec3clean(), query_add_cname(), query_dns64(), query_filter64(), resigned(), sendstream(), subtract(), tuple2msgname(), and update_addordelete().
isc_result_t dns_rdatalist_fromrdataset | ( | dns_rdataset_t * | rdataset, | |
dns_rdatalist_t ** | rdatalist | |||
) |
Point 'rdatalist' to the rdatalist in 'rdataset'.
Requires:
Definition at line 111 of file rdatalist.c.
References ISC_R_SUCCESS, dns_rdataset::private1, and REQUIRE.
Referenced by dns_client_freeupdate(), and getsection().
void isc__rdatalist_disassociate | ( | dns_rdataset_t * | rdataset | ) |
isc_result_t isc__rdatalist_first | ( | dns_rdataset_t * | rdataset | ) |
Definition at line 126 of file rdatalist.c.
References ISC_LIST_HEAD, ISC_R_NOMORE, ISC_R_SUCCESS, dns_rdataset::private1, and dns_rdataset::private2.
isc_result_t isc__rdatalist_next | ( | dns_rdataset_t * | rdataset | ) |
Definition at line 139 of file rdatalist.c.
References ISC_LIST_NEXT, ISC_R_NOMORE, ISC_R_SUCCESS, dns_rdataset::private2, and REQUIRE.
void isc__rdatalist_current | ( | dns_rdataset_t * | rdataset, | |
dns_rdata_t * | rdata | |||
) |
Definition at line 157 of file rdatalist.c.
References dns_rdata_clone(), INSIST, dns_rdataset::private2, and REQUIRE.
void isc__rdatalist_clone | ( | dns_rdataset_t * | source, | |
dns_rdataset_t * | target | |||
) |
Definition at line 169 of file rdatalist.c.
References dns_rdataset::private2, and REQUIRE.
Referenced by rdataset_clone().
unsigned int isc__rdatalist_count | ( | dns_rdataset_t * | rdataset | ) |
Definition at line 183 of file rdatalist.c.
References ISC_LIST_HEAD, ISC_LIST_NEXT, dns_rdataset::private1, and REQUIRE.
isc_result_t isc__rdatalist_addnoqname | ( | dns_rdataset_t * | rdataset, | |
dns_name_t * | name | |||
) |
Definition at line 202 of file rdatalist.c.
References dns_rdataset::attributes, dns_rdataset::covers, DNS_RDATASETATTR_NOQNAME, ISC_LIST_HEAD, ISC_LIST_NEXT, ISC_R_NOTFOUND, ISC_R_SUCCESS, dns_rdataset::private6, dns_rdataset::rdclass, REQUIRE, dns_rdataset::ttl, ttl, and dns_rdataset::type.
isc_result_t isc__rdatalist_getnoqname | ( | dns_rdataset_t * | rdataset, | |
dns_name_t * | name, | |||
dns_rdataset_t * | neg, | |||
dns_rdataset_t * | negsig | |||
) |
Definition at line 249 of file rdatalist.c.
References dns_rdataset::attributes, dns_rdataset::covers, dns_name_clone(), dns_name_dynamic(), dns_rdataset_clone(), DNS_RDATASETATTR_NOQNAME, ISC_LIST_HEAD, ISC_LIST_NEXT, ISC_R_NOTFOUND, ISC_R_SUCCESS, dns_rdataset::private6, dns_rdataset::rdclass, rdclass, REQUIRE, and dns_rdataset::type.
isc_result_t isc__rdatalist_addclosest | ( | dns_rdataset_t * | rdataset, | |
dns_name_t * | name | |||
) |
Definition at line 293 of file rdatalist.c.
References dns_rdataset::attributes, dns_rdataset::covers, DNS_RDATASETATTR_CLOSEST, ISC_LIST_HEAD, ISC_LIST_NEXT, ISC_R_NOTFOUND, ISC_R_SUCCESS, dns_rdataset::private7, dns_rdataset::rdclass, REQUIRE, dns_rdataset::ttl, ttl, and dns_rdataset::type.
isc_result_t isc__rdatalist_getclosest | ( | dns_rdataset_t * | rdataset, | |
dns_name_t * | name, | |||
dns_rdataset_t * | neg, | |||
dns_rdataset_t * | negsig | |||
) |
Definition at line 340 of file rdatalist.c.
References dns_rdataset::attributes, dns_rdataset::covers, dns_name_clone(), dns_name_dynamic(), dns_rdataset_clone(), DNS_RDATASETATTR_CLOSEST, ISC_LIST_HEAD, ISC_LIST_NEXT, ISC_R_NOTFOUND, ISC_R_SUCCESS, dns_rdataset::private7, dns_rdataset::rdclass, rdclass, REQUIRE, and dns_rdataset::type.
void isc__rdatalist_setownercase | ( | dns_rdataset_t * | rdataset, | |
const dns_name_t * | name | |||
) |
Definition at line 384 of file rdatalist.c.
References dns_name::length, dns_name::ndata, dns_rdataset::private1, and dns_rdatalist::upper.
void isc__rdatalist_getownercase | ( | const dns_rdataset_t * | rdataset, | |
dns_name_t * | name | |||
) |
Definition at line 404 of file rdatalist.c.
References dns_name::length, dns_name::ndata, dns_rdataset::private1, and dns_rdatalist::upper.
dns_rdatasetmethods_t methods [static] |
Initial value:
{ isc__rdatalist_disassociate, isc__rdatalist_first, isc__rdatalist_next, isc__rdatalist_current, isc__rdatalist_clone, isc__rdatalist_count, isc__rdatalist_addnoqname, isc__rdatalist_getnoqname, isc__rdatalist_addclosest, isc__rdatalist_getclosest, NULL, NULL, NULL, NULL, NULL, NULL, isc__rdatalist_setownercase, isc__rdatalist_getownercase }
Definition at line 37 of file rdatalist.c.