⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rdataset.h

📁 非常好的dns解析软件
💻 H
📖 第 1 页 / 共 2 页
字号:
 *\li	#ISC_R_SUCCESS *\li	#ISC_R_NOMORE			There are no rdata in the set. */isc_result_tdns_rdataset_next(dns_rdataset_t *rdataset);/*%< * Move the rdata cursor to the next rdata in the rdataset (if any). * * Requires: *\li	'rdataset' is a valid, associated rdataset. * * Returns: *\li	#ISC_R_SUCCESS *\li	#ISC_R_NOMORE			There are no more rdata in the set. */voiddns_rdataset_current(dns_rdataset_t *rdataset, dns_rdata_t *rdata);/*%< * Make 'rdata' refer to the current rdata. * * Notes: * *\li	The data returned in 'rdata' is valid for the life of the *	rdataset; in particular, subsequent changes in the cursor position *	do not invalidate 'rdata'. * * Requires: *\li	'rdataset' is a valid, associated rdataset. * *\li	The rdata cursor of 'rdataset' is at a valid location (i.e. the *	result of last call to a cursor movement command was ISC_R_SUCCESS). * * Ensures: *\li	'rdata' refers to the rdata at the rdata cursor location of *\li	'rdataset'. */isc_result_tdns_rdataset_totext(dns_rdataset_t *rdataset,		    dns_name_t *owner_name,		    isc_boolean_t omit_final_dot,		    isc_boolean_t question,		    isc_buffer_t *target);/*%< * Convert 'rdataset' to text format, storing the result in 'target'. * * Notes: *\li	The rdata cursor position will be changed. * *\li	The 'question' flag should normally be #ISC_FALSE.  If it is  *	#ISC_TRUE, the TTL and rdata fields are not printed.  This is  *	for use when printing an rdata representing a question section. * *\li	This interface is deprecated; use dns_master_rdatasettottext() * 	and/or dns_master_questiontotext() instead. * * Requires: *\li	'rdataset' is a valid rdataset. * *\li	'rdataset' is not empty. */isc_result_tdns_rdataset_towire(dns_rdataset_t *rdataset,		    dns_name_t *owner_name,		    dns_compress_t *cctx,		    isc_buffer_t *target,		    unsigned int options,		    unsigned int *countp);/*%< * Convert 'rdataset' to wire format, compressing names as specified * in 'cctx', and storing the result in 'target'. * * Notes: *\li	The rdata cursor position will be changed. * *\li	The number of RRs added to target will be added to *countp. * * Requires: *\li	'rdataset' is a valid rdataset. * *\li	'rdataset' is not empty. * *\li	'countp' is a valid pointer. * * Ensures: *\li	On a return of ISC_R_SUCCESS, 'target' contains a wire format *	for the data contained in 'rdataset'.  Any error return leaves *	the buffer unchanged. * *\li	*countp has been incremented by the number of RRs added to *	target. * * Returns: *\li	#ISC_R_SUCCESS		- all ok *\li	#ISC_R_NOSPACE		- 'target' doesn't have enough room * *\li	Any error returned by dns_rdata_towire(), dns_rdataset_next(), *	dns_name_towire(). */isc_result_tdns_rdataset_towiresorted(dns_rdataset_t *rdataset,			  const dns_name_t *owner_name,			  dns_compress_t *cctx,			  isc_buffer_t *target,			  dns_rdatasetorderfunc_t order,			  const void *order_arg,			  unsigned int options,			  unsigned int *countp);/*%< * Like dns_rdataset_towire(), but sorting the rdatasets according to * the integer value returned by 'order' when called witih the rdataset * and 'order_arg' as arguments. * * Requires: *\li	All the requirements of dns_rdataset_towire(), and *	that order_arg is NULL if and only if order is NULL. */isc_result_tdns_rdataset_towirepartial(dns_rdataset_t *rdataset,			   const dns_name_t *owner_name,			   dns_compress_t *cctx,			   isc_buffer_t *target,			   dns_rdatasetorderfunc_t order,			   const void *order_arg,			   unsigned int options,			   unsigned int *countp,			   void **state);/*%< * Like dns_rdataset_towiresorted() except that a partial rdataset * may be written. * * Requires: *\li	All the requirements of dns_rdataset_towiresorted(). *	If 'state' is non NULL then the current position in the *	rdataset will be remembered if the rdataset in not *	completely written and should be passed on on subsequent *	calls (NOT CURRENTLY IMPLEMENTED). * * Returns: *\li	#ISC_R_SUCCESS if all of the records were written. *\li	#ISC_R_NOSPACE if unable to fit in all of the records. *countp *		      will be updated to reflect the number of records *		      written. */isc_result_tdns_rdataset_additionaldata(dns_rdataset_t *rdataset,			    dns_additionaldatafunc_t add, void *arg);/*%< * For each rdata in rdataset, call 'add' for each name and type in the * rdata which is subject to additional section processing. * * Requires: * *\li	'rdataset' is a valid, non-question rdataset. * *\li	'add' is a valid dns_additionaldatafunc_t * * Ensures: * *\li	If successful, dns_rdata_additionaldata() will have been called for *	each rdata in 'rdataset'. * *\li	If a call to dns_rdata_additionaldata() is not successful, the *	result returned will be the result of dns_rdataset_additionaldata(). * * Returns: * *\li	#ISC_R_SUCCESS * *\li	Any error that dns_rdata_additionaldata() can return. */isc_result_tdns_rdataset_getnoqname(dns_rdataset_t *rdataset, dns_name_t *name,			dns_rdataset_t *nsec, dns_rdataset_t *nsecsig);/*%< * Return the noqname proof for this record. * * Requires: *\li	'rdataset' to be valid and #DNS_RDATASETATTR_NOQNAME to be set. *\li	'name' to be valid. *\li	'nsec' and 'nsecsig' to be valid and not associated. */isc_result_tdns_rdataset_addnoqname(dns_rdataset_t *rdataset, dns_name_t *name);/*%< * Associate a noqname proof with this record. * Sets #DNS_RDATASETATTR_NOQNAME if successful. * Adjusts the 'rdataset->ttl' to minimum of the 'rdataset->ttl' and * the 'nsec' and 'rrsig(nsec)' ttl. * * Requires: *\li	'rdataset' to be valid and #DNS_RDATASETATTR_NOQNAME to be set. *\li	'name' to be valid and have NSEC and RRSIG(NSEC) rdatasets. */isc_result_tdns_rdataset_getadditional(dns_rdataset_t *rdataset,			   dns_rdatasetadditional_t type,			   dns_rdatatype_t qtype,			   dns_acache_t *acache,			   dns_zone_t **zonep,			   dns_db_t **dbp,			   dns_dbversion_t **versionp,			   dns_dbnode_t **nodep,			   dns_name_t *fname,			   dns_message_t *msg,			   isc_stdtime_t now);/*%< * Get cached additional information from the DB node for a particular * 'rdataset.'  'type' is one of dns_rdatasetadditional_fromauth, * dns_rdatasetadditional_fromcache, and dns_rdatasetadditional_fromglue, * which specifies the origin of the information.  'qtype' is intended to * be used for specifying a particular rdata type in the cached information. * * Requires: * \li	'rdataset' is a valid rdataset. * \li	'acache' can be NULL, in which case this function will simply return * 	ISC_R_FAILURE. * \li	For the other pointers, see dns_acache_getentry(). * * Ensures: * \li	See dns_acache_getentry(). * * Returns: * \li	#ISC_R_SUCCESS * \li	#ISC_R_FAILURE	- additional information caching is not supported. * \li	#ISC_R_NOTFOUND	- the corresponding DB node has not cached additional *			  information for 'rdataset.' * \li	Any error that dns_acache_getentry() can return. */isc_result_tdns_rdataset_setadditional(dns_rdataset_t *rdataset,			   dns_rdatasetadditional_t type,			   dns_rdatatype_t qtype,			   dns_acache_t *acache,			   dns_zone_t *zone,			   dns_db_t *db,			   dns_dbversion_t *version,			   dns_dbnode_t *node,			   dns_name_t *fname);/*%< * Set cached additional information to the DB node for a particular * 'rdataset.'  See dns_rdataset_getadditional for the semantics of 'type' * and 'qtype'. * * Requires: * \li	'rdataset' is a valid rdataset. * \li	'acache' can be NULL, in which case this function will simply return *	ISC_R_FAILURE. * \li	For the other pointers, see dns_acache_setentry(). * * Ensures: * \li	See dns_acache_setentry(). * * Returns: * \li	#ISC_R_SUCCESS * \li	#ISC_R_FAILURE	- additional information caching is not supported. * \li	#ISC_R_NOMEMORY * \li	Any error that dns_acache_setentry() can return. */isc_result_tdns_rdataset_putadditional(dns_acache_t *acache,			   dns_rdataset_t *rdataset,			   dns_rdatasetadditional_t type,			   dns_rdatatype_t qtype);/*%< * Discard cached additional information stored in the DB node for a particular * 'rdataset.'  See dns_rdataset_getadditional for the semantics of 'type' * and 'qtype'. * * Requires: * \li	'rdataset' is a valid rdataset. * \li	'acache' can be NULL, in which case this function will simply return *	ISC_R_FAILURE. * * Ensures: * \li	See dns_acache_cancelentry(). * * Returns: * \li	#ISC_R_SUCCESS * \li	#ISC_R_FAILURE	- additional information caching is not supported. * \li	#ISC_R_NOTFOUND	- the corresponding DB node has not cached additional *			  information for 'rdataset.' */ISC_LANG_ENDDECLS#endif /* DNS_RDATASET_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -