Lines Matching refs:dest
270 dns_acl_merge(dns_acl_t *dest, dns_acl_t *source, isc_boolean_t pos)
277 if (dest->length + source->length > dest->alloc) {
280 newalloc = dest->alloc + source->alloc;
284 newmem = isc_mem_get(dest->mctx,
290 memmove(newmem, dest->elements,
291 dest->length * sizeof(dns_aclelement_t));
294 isc_mem_put(dest->mctx, dest->elements,
295 dest->alloc * sizeof(dns_aclelement_t));
296 dest->elements = newmem;
297 dest->alloc = newalloc;
306 nelem = dest->length;
307 dest->length += source->length;
313 dest->elements[nelem + i].type = source->elements[i].type;
316 dest->elements[nelem + i].node_num =
317 source->elements[i].node_num + dest->node_count;
323 &dest->elements[nelem + i].nestedacl);
327 dns_name_init(&dest->elements[nelem+i].keyname, NULL);
329 dest->mctx,
330 &dest->elements[nelem+i].keyname);
337 dest->elements[nelem + i].negative = ISC_TRUE;
339 dest->elements[nelem + i].negative =
349 nodes = max_node + dest->node_count;
350 result = dns_iptable_merge(dest->iptable, source->iptable, pos);
353 if (nodes > dest->node_count)
354 dest->node_count = nodes;