mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
551. [func] Implemented the 'sortlist' option.
This commit is contained in:
parent
22dde57c6e
commit
84abb95f7e
3 changed files with 28 additions and 5 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: server.c,v 1.244 2000/11/10 03:05:36 gson Exp $ */
|
||||
/* $Id: server.c,v 1.245 2000/11/10 03:41:05 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -636,6 +636,11 @@ configure_view(dns_view_t *view, dns_c_ctx_t *cctx, dns_c_view_t *cview,
|
|||
dns_c_ctx_getallowrecursion,
|
||||
&view->recursionacl));
|
||||
|
||||
CHECK(configure_view_acl(cview, cctx, actx, ns_g_mctx,
|
||||
dns_c_view_getsortlist,
|
||||
dns_c_ctx_getsortlist,
|
||||
&view->sortlist));
|
||||
|
||||
result = ISC_R_NOTFOUND;
|
||||
if (cview != NULL)
|
||||
result = dns_c_view_getrequestixfr(cview, &view->requestixfr);
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
||||
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
# $Id: conf.sh.in,v 1.16 2000/11/10 03:05:50 bwelling Exp $
|
||||
# $Id: conf.sh.in,v 1.17 2000/11/10 03:41:08 gson Exp $
|
||||
|
||||
#
|
||||
# Common configuration data for system tests, to be sourced into
|
||||
|
|
@ -39,8 +39,8 @@ KEYGEN=$TOP/bin/dnssec/dnssec-keygen
|
|||
SIGNER=$TOP/bin/dnssec/dnssec-signzone
|
||||
KEYSIGNER=$TOP/bin/dnssec/dnssec-signkey
|
||||
KEYSETTOOL=$TOP/bin/dnssec/dnssec-makekeyset
|
||||
SUBDIRS="dnssec forward glue limits lwresd notify nsupdate resolver stub \
|
||||
unknown upforwd views xfer xferquota"
|
||||
SUBDIRS="dnssec forward glue limits lwresd notify nsupdate resolver \
|
||||
sortlist stub unknown upforwd views xfer xferquota"
|
||||
|
||||
# PERL will be an empty string if no perl interpreter was found.
|
||||
PERL=@PERL@
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rdataset.h,v 1.36 2000/09/08 21:35:45 gson Exp $ */
|
||||
/* $Id: rdataset.h,v 1.37 2000/11/10 03:41:07 gson Exp $ */
|
||||
|
||||
#ifndef DNS_RDATASET_H
|
||||
#define DNS_RDATASET_H 1
|
||||
|
|
@ -338,6 +338,24 @@ dns_rdataset_towire(dns_rdataset_t *rdataset,
|
|||
* dns_name_towire().
|
||||
*/
|
||||
|
||||
isc_result_t
|
||||
dns_rdataset_towiresorted(dns_rdataset_t *rdataset,
|
||||
dns_name_t *owner_name,
|
||||
dns_compress_t *cctx,
|
||||
isc_buffer_t *target,
|
||||
dns_rdatasetorderfunc_t order,
|
||||
void *order_arg,
|
||||
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:
|
||||
* All the requirements of dns_rdataset_towire(), and
|
||||
* that order_arg is NULL if and only if order is NULL.
|
||||
*/
|
||||
|
||||
isc_result_t
|
||||
dns_rdataset_additionaldata(dns_rdataset_t *rdataset,
|
||||
dns_additionaldatafunc_t add, void *arg);
|
||||
|
|
|
|||
Loading…
Reference in a new issue