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

📄 view.h

📁 package of develop dns
💻 H
📖 第 1 页 / 共 2 页
字号:
	      isc_stdtime_t now, unsigned int options, isc_boolean_t use_hints,	      dns_db_t **dbp, dns_dbnode_t **nodep, dns_name_t *foundname,	      dns_rdataset_t *rdataset, dns_rdataset_t *sigrdataset);/* * Find an rdataset whose owner name is 'name', and whose type is * 'type'. * * Notes: * *	See the description of dns_db_find() for information about 'options'. *	If the caller sets DNS_DBFIND_GLUEOK, it must ensure that 'name' *	and 'type' are appropriate for glue retrieval. * *	If 'now' is zero, then the current time will be used. * *	If 'use_hints' is ISC_TRUE, and the view has a hints database, then *	it will be searched last.  If the answer is found in the hints *	database, the result code will be DNS_R_HINT.  If the name is found *	in the hints database but not the type, the result code will be *	DNS_R_HINTNXRRSET. * *	'foundname' must meet the requirements of dns_db_find(). * *	If 'sigrdataset' is not NULL, and there is a SIG rdataset which *	covers 'type', then 'sigrdataset' will be bound to it. * * Requires: * *	'view' is a valid, frozen view. * *	'name' is valid name. * *	'type' is a valid dns_rdatatype_t, and is not a meta query type *	except dns_rdatatype_any. * *	dbp == NULL || *dbp == NULL * *	nodep == NULL || *nodep == NULL.  If nodep != NULL, dbp != NULL. * *	'foundname' is a valid name with a dedicated buffer or NULL. * *	'rdataset' is a valid, disassociated rdataset. * *	'sigrdataset' is NULL, or is a valid, disassociated rdataset. * * Ensures: * *	In successful cases, 'rdataset', and possibly 'sigrdataset', are *	bound to the found data. * *	If dbp != NULL, it points to the database containing the data. * *	If nodep != NULL, it points to the database node containing the data. * *	If foundname != NULL, it contains the full name of the found data. * * Returns: * *	Any result that dns_db_find() can return, with the exception of *	DNS_R_DELEGATION. */isc_result_tdns_view_simplefind(dns_view_t *view, dns_name_t *name, dns_rdatatype_t type,		    isc_stdtime_t now, unsigned int options,		    isc_boolean_t use_hints,		    dns_rdataset_t *rdataset, dns_rdataset_t *sigrdataset);/* * Find an rdataset whose owner name is 'name', and whose type is * 'type'. * * Notes: * *	This routine is appropriate for simple, exact-match queries of the *	view.  'name' must be a canonical name; there is no DNAME or CNAME *	processing. * *	See the description of dns_db_find() for information about 'options'. *	If the caller sets DNS_DBFIND_GLUEOK, it must ensure that 'name' *	and 'type' are appropriate for glue retrieval. * *	If 'now' is zero, then the current time will be used. * *	If 'use_hints' is ISC_TRUE, and the view has a hints database, then *	it will be searched last.  If the answer is found in the hints *	database, the result code will be DNS_R_HINT.  If the name is found *	in the hints database but not the type, the result code will be *	DNS_R_HINTNXRRSET. * *	If 'sigrdataset' is not NULL, and there is a SIG rdataset which *	covers 'type', then 'sigrdataset' will be bound to it. * * Requires: * *	'view' is a valid, frozen view. * *	'name' is valid name. * *	'type' is a valid dns_rdatatype_t, and is not a meta query type *	(e.g. dns_rdatatype_any), or dns_rdatatype_rrsig. * *	'rdataset' is a valid, disassociated rdataset. * *	'sigrdataset' is NULL, or is a valid, disassociated rdataset. * * Ensures: * *	In successful cases, 'rdataset', and possibly 'sigrdataset', are *	bound to the found data. * * Returns: * *	ISC_R_SUCCESS			Success; result is desired type. *	DNS_R_GLUE			Success; result is glue. *	DNS_R_HINT			Success; result is a hint. *	DNS_R_NCACHENXDOMAIN		Success; result is a ncache entry. *	DNS_R_NCACHENXRRSET		Success; result is a ncache entry. *	DNS_R_NXDOMAIN			The name does not exist. *	DNS_R_NXRRSET			The rrset does not exist. *	ISC_R_NOTFOUND			No matching data found, *					or an error occurred. */isc_result_tdns_view_findzonecut(dns_view_t *view, dns_name_t *name, dns_name_t *fname,		     isc_stdtime_t now, unsigned int options,		     isc_boolean_t use_hints,		     dns_rdataset_t *rdataset, dns_rdataset_t *sigrdataset);isc_result_tdns_view_findzonecut2(dns_view_t *view, dns_name_t *name, dns_name_t *fname,		      isc_stdtime_t now, unsigned int options,		      isc_boolean_t use_hints, isc_boolean_t use_cache,		      dns_rdataset_t *rdataset, dns_rdataset_t *sigrdataset);/* * Find the best known zonecut containing 'name'. * * This uses local authority, cache, and optionally hints data. * No external queries are performed. * * Notes: * *	If 'now' is zero, then the current time will be used. * *	If 'use_hints' is ISC_TRUE, and the view has a hints database, then *	it will be searched last. * *	If 'use_cache' is ISC_TRUE, and the view has a cache, then it will be *	searched. * *	If 'sigrdataset' is not NULL, and there is a SIG rdataset which *	covers 'type', then 'sigrdataset' will be bound to it. * *	If the DNS_DBFIND_NOEXACT option is set, then the zonecut returned *	(if any) will be the deepest known ancestor of 'name'. * * Requires: * *	'view' is a valid, frozen view. * *	'name' is valid name. * *	'rdataset' is a valid, disassociated rdataset. * *	'sigrdataset' is NULL, or is a valid, disassociated rdataset. * * Returns: * *	ISC_R_SUCCESS				Success. * *	Many other results are possible. */isc_result_tdns_viewlist_find(dns_viewlist_t *list, const char *name,		  dns_rdataclass_t rdclass, dns_view_t **viewp);/* * Search for a view with name 'name' and class 'rdclass' in 'list'. * If found, '*viewp' is (strongly) attached to it. * * Requires: * *	'viewp' points to a NULL dns_view_t *. * * Returns: * *	ISC_R_SUCCESS		A matching view was found. *	ISC_R_NOTFOUND		No matching view was found. */isc_result_tdns_view_findzone(dns_view_t *view, dns_name_t *name, dns_zone_t **zonep);/* * Search for the zone 'name' in the zone table of 'view'. * If found, 'zonep' is (strongly) attached to it.  There * are no partial matches. * * Requires: * *	'zonep' points to a NULL dns_zone_t *. * * Returns: *	ISC_R_SUCCESS		A matching zone was found. *	ISC_R_NOTFOUND		No matching zone was found. *	others			An error occurred. */isc_result_tdns_view_load(dns_view_t *view, isc_boolean_t stop);isc_result_tdns_view_loadnew(dns_view_t *view, isc_boolean_t stop);/* * Load zones attached to this view.  dns_view_load() loads * all zones whose master file has changed since the last * load; dns_view_loadnew() loads only zones that have never  * been loaded. * * If 'stop' is ISC_TRUE, stop on the first error and return it. * If 'stop' is ISC_FALSE, ignore errors. * * Requires: * *	'view' is valid. */isc_result_tdns_view_gettsig(dns_view_t *view, dns_name_t *keyname,		 dns_tsigkey_t **keyp);/* * Find the TSIG key configured in 'view' with name 'keyname', * if any. * * Reqires: *	keyp points to a NULL dns_tsigkey_t *. * * Returns: *	ISC_R_SUCCESS	A key was found and '*keyp' now points to it. *	ISC_R_NOTFOUND	No key was found. *	others		An error occurred. */isc_result_tdns_view_getpeertsig(dns_view_t *view, isc_netaddr_t *peeraddr,		     dns_tsigkey_t **keyp);/* * Find the TSIG key configured in 'view' for the server whose * address is 'peeraddr', if any. * * Reqires: *	keyp points to a NULL dns_tsigkey_t *. * * Returns: *	ISC_R_SUCCESS	A key was found and '*keyp' now points to it. *	ISC_R_NOTFOUND	No key was found. *	others		An error occurred. */isc_result_tdns_view_checksig(dns_view_t *view, isc_buffer_t *source, dns_message_t *msg);/* * Verifies the signature of a message. * * Requires: * *	'view' is a valid view. *	'source' is a valid buffer containing the message *	'msg' is a valid message * * Returns: *	see dns_tsig_verify() */voiddns_view_dialup(dns_view_t *view);/* * Perform dialup-time maintenance on the zones of 'view'. */isc_result_tdns_view_dumpdbtostream(dns_view_t *view, FILE *fp);/* * Dump the current state of the view 'view' to the stream 'fp' * for purposes of analysis or debugging. * * Currently the dumped state includes the view's cache; in the future * it may also include other state such as the address database. * It will not not include authoritative data since it is voluminous and * easily obtainable by other means. * * Requires: * 	 *	'view' is valid. * *	'fp' refers to a file open for writing. * * Returns: * 	ISC_R_SUCCESS	The cache was successfully dumped. * 	others		An error occurred (see dns_master_dump) */isc_result_tdns_view_flushcache(dns_view_t *view);/* * Flush the view's cache (and ADB). * * Requires: * 	'view' is valid. * * 	No other tasks are executing. * * Returns: *	ISC_R_SUCCESS *	ISC_R_NOMEMORY */isc_result_tdns_view_flushname(dns_view_t *view, dns_name_t *);/* * Flush the given name from the view's cache (and ADB). * * Requires: *	'view' is valid. *	'name' is valid. * * Returns: *	ISC_R_SUCCESS *	other returns are failures. */isc_result_tdns_view_adddelegationonly(dns_view_t *view, dns_name_t *name);/* * Add the given name to the delegation only table. *  * * Requires: *	'view' is valid. *	'name' is valid. * * Returns: *	ISC_R_SUCCESS *	ISC_R_NOMEMORY */isc_result_tdns_view_excludedelegationonly(dns_view_t *view, dns_name_t *name);/* * Add the given name to be excluded from the root-delegation-only. *  * * Requires: *	'view' is valid. *	'name' is valid. * * Returns: *	ISC_R_SUCCESS *	ISC_R_NOMEMORY */isc_boolean_tdns_view_isdelegationonly(dns_view_t *view, dns_name_t *name);/* * Check if 'name' is in the delegation only table or if * rootdelonly is set that name is not being excluded. * * Requires: *	'view' is valid. *	'name' is valid. * * Returns: *	ISC_TRUE if the name is is the table. *	ISC_FALSE othewise. */voiddns_view_setrootdelonly(dns_view_t *view, isc_boolean_t value);/* * Set the root delegation only flag. * * Requires: *	'view' is valid. */isc_boolean_tdns_view_getrootdelonly(dns_view_t *view);/* * Get the root delegation only flag. * * Requires: *	'view' is valid. */#endif /* DNS_VIEW_H */

⌨️ 快捷键说明

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