Lines Matching defs:newheader
799 rdatasetheader_t *newheader);
945 * 'init_count' is used to initialize 'newheader->count' which inturn
6069 resign_insert(dns_rbtdb_t *rbtdb, int idx, rdatasetheader_t *newheader) {
6073 INSIST(newheader->heap_index == 0);
6074 INSIST(!ISC_LINK_LINKED(newheader, link));
6076 result = isc_heap_insert(rbtdb->heaps[idx], newheader);
6116 rdatasetheader_t *newheader, unsigned int options, isc_boolean_t loading,
6148 trust = newheader->trust;
6158 free_rdataset(rbtdb, rbtdb->common.mctx, newheader);
6163 newheader_nx = NONEXISTENT(newheader) ? ISC_TRUE : ISC_FALSE;
6168 rdtype = RBTDB_RDATATYPE_BASE(newheader->type);
6169 covers = RBTDB_RDATATYPE_EXT(newheader->type);
6171 if (NEGATIVE(newheader)) {
6218 (newheader->type == sigtype &&
6236 newheader);
6259 if (topheader->type == newheader->type ||
6281 free_rdataset(rbtdb, rbtdb->common.mctx, newheader);
6291 free_rdataset(rbtdb, rbtdb->common.mctx, newheader);
6306 * that is the union of 'newheader' and 'header'.
6317 newheader->rdh_ttl != header->rdh_ttl)
6319 else if (newheader->rdh_ttl != header->rdh_ttl)
6324 (unsigned char *)newheader,
6325 (unsigned int)(sizeof(*newheader)),
6340 newheader);
6341 newheader = (rdatasetheader_t *)merged;
6342 init_rdataset(rbtdb, newheader);
6343 update_newheader(newheader, header);
6344 if (loading && RESIGN(newheader) &&
6346 resign_sooner(header, newheader))
6348 newheader->resign = header->resign;
6349 newheader->resign_lsb =
6354 newheader);
6368 header->trust >= newheader->trust &&
6370 (unsigned char *)newheader,
6371 (unsigned int)(sizeof(*newheader)),
6378 if (header->rdh_ttl > newheader->rdh_ttl)
6379 set_ttl(rbtdb, header, newheader->rdh_ttl);
6381 newheader->noqname != NULL) {
6382 header->noqname = newheader->noqname;
6383 newheader->noqname = NULL;
6386 newheader->closest != NULL) {
6387 header->closest = newheader->closest;
6388 newheader->closest = NULL;
6390 free_rdataset(rbtdb, rbtdb->common.mctx, newheader);
6404 header->trust <= newheader->trust) {
6405 if (newheader->rdh_ttl > header->rdh_ttl) {
6406 newheader->rdh_ttl = header->rdh_ttl;
6416 header->trust >= newheader->trust &&
6418 (unsigned char *)newheader,
6419 (unsigned int)(sizeof(*newheader)))) {
6424 if (header->rdh_ttl > newheader->rdh_ttl)
6425 set_ttl(rbtdb, header, newheader->rdh_ttl);
6427 newheader->noqname != NULL) {
6428 header->noqname = newheader->noqname;
6429 newheader->noqname = NULL;
6432 newheader->closest != NULL) {
6433 header->closest = newheader->closest;
6434 newheader->closest = NULL;
6436 free_rdataset(rbtdb, rbtdb->common.mctx, newheader);
6445 newheader->down = NULL;
6446 idx = newheader->node->locknum;
6448 if (ZEROTTL(newheader))
6450 newheader, link);
6453 newheader, link);
6456 newheader);
6460 newheader);
6463 } else if (RESIGN(newheader)) {
6464 result = resign_insert(rbtdb, idx, newheader);
6468 newheader);
6485 topheader_prev->next = newheader;
6487 rbtnode->data = newheader;
6488 newheader->next = topheader->next;
6499 idx = newheader->node->locknum;
6503 newheader);
6507 newheader);
6510 if (ZEROTTL(newheader))
6512 newheader, link);
6515 newheader, link);
6516 } else if (RESIGN(newheader)) {
6517 result = resign_insert(rbtdb, idx, newheader);
6521 newheader);
6527 topheader_prev->next = newheader;
6529 rbtnode->data = newheader;
6530 newheader->next = topheader->next;
6531 newheader->down = topheader;
6532 topheader->next = newheader;
6563 free_rdataset(rbtdb, rbtdb->common.mctx, newheader);
6567 idx = newheader->node->locknum;
6569 result = isc_heap_insert(rbtdb->heaps[idx], newheader);
6572 newheader);
6575 if (ZEROTTL(newheader))
6577 newheader, link);
6580 newheader, link);
6581 } else if (RESIGN(newheader)) {
6582 result = resign_insert(rbtdb, idx, newheader);
6585 newheader);
6604 topheader_prev->next = newheader;
6606 rbtnode->data = newheader;
6607 newheader->next = topheader->next;
6608 newheader->down = topheader;
6609 topheader->next = newheader;
6617 newheader->next = rbtnode->data;
6618 newheader->down = NULL;
6619 rbtnode->data = newheader;
6625 update_recordsandbytes(ISC_TRUE, rbtversion, newheader);
6637 bind_rdataset(rbtdb, rbtnode, newheader, now, addedrdataset);
6659 addnoqname(dns_rbtdb_t *rbtdb, rdatasetheader_t *newheader,
6698 newheader->noqname = noqname;
6710 addclosest(dns_rbtdb_t *rbtdb, rdatasetheader_t *newheader,
6749 newheader->closest = closest;
6771 rdatasetheader_t *newheader;
6810 newheader = (rdatasetheader_t *)region.base;
6811 init_rdataset(rbtdb, newheader);
6812 setownercase(newheader, name);
6813 set_ttl(rbtdb, newheader, rdataset->ttl + now);
6814 newheader->type = RBTDB_RDATATYPE_VALUE(rdataset->type,
6816 newheader->attributes = 0;
6818 newheader->attributes |= RDATASET_ATTR_ZEROTTL;
6819 newheader->noqname = NULL;
6820 newheader->closest = NULL;
6821 newheader->count = init_count++;
6822 newheader->trust = rdataset->trust;
6823 newheader->additional_auth = NULL;
6824 newheader->additional_glue = NULL;
6825 newheader->last_used = now;
6826 newheader->node = rbtnode;
6828 newheader->serial = rbtversion->serial;
6832 newheader->attributes |= RDATASET_ATTR_RESIGN;
6833 newheader->resign = (isc_stdtime_t)
6835 newheader->resign_lsb = rdataset->resign & 0x1;
6837 newheader->resign = 0;
6838 newheader->resign_lsb = 0;
6841 newheader->serial = 1;
6842 newheader->resign = 0;
6843 newheader->resign_lsb = 0;
6845 newheader->attributes |= RDATASET_ATTR_PREFETCH;
6847 newheader->attributes |= RDATASET_ATTR_NEGATIVE;
6849 newheader->attributes |= RDATASET_ATTR_NXDOMAIN;
6851 newheader->attributes |= RDATASET_ATTR_OPTOUT;
6853 result = addnoqname(rbtdb, newheader, rdataset);
6856 newheader);
6861 result = addclosest(rbtdb, newheader, rdataset);
6864 newheader);
6909 newheader->attributes |= RDATASET_ATTR_STATCOUNT;
6910 update_rrsetstats(rbtdb, newheader, ISC_TRUE);
6950 result = add32(rbtdb, rbtnode, rbtversion, newheader, options,
6979 rdatasetheader_t *topheader, *topheader_prev, *header, *newheader;
7000 newheader = (rdatasetheader_t *)region.base;
7001 init_rdataset(rbtdb, newheader);
7002 set_ttl(rbtdb, newheader, rdataset->ttl);
7003 newheader->type = RBTDB_RDATATYPE_VALUE(rdataset->type,
7005 newheader->attributes = 0;
7006 newheader->serial = rbtversion->serial;
7007 newheader->trust = 0;
7008 newheader->noqname = NULL;
7009 newheader->closest = NULL;
7010 newheader->count = init_count++;
7011 newheader->additional_auth = NULL;
7012 newheader->additional_glue = NULL;
7013 newheader->last_used = 0;
7014 newheader->node = rbtnode;
7016 newheader->attributes |= RDATASET_ATTR_RESIGN;
7017 newheader->resign = (isc_stdtime_t)
7019 newheader->resign_lsb = rdataset->resign & 0x1;
7021 newheader->resign = 0;
7022 newheader->resign_lsb = 0;
7030 free_rdataset(rbtdb, rbtdb->common.mctx, newheader);
7040 if (topheader->type == newheader->type)
7058 if (newheader->rdh_ttl != header->rdh_ttl)
7064 (unsigned char *)newheader,
7065 (unsigned int)(sizeof(*newheader)),
7071 free_rdataset(rbtdb, rbtdb->common.mctx, newheader);
7072 newheader = (rdatasetheader_t *)subresult;
7073 init_rdataset(rbtdb, newheader);
7074 update_newheader(newheader, header);
7076 newheader->attributes |= RDATASET_ATTR_RESIGN;
7077 newheader->resign = header->resign;
7078 newheader->resign_lsb = header->resign_lsb;
7080 newheader);
7084 newheader);
7091 * header, not newheader.
7093 newheader->serial = rbtversion->serial;
7099 newheader->additional_auth = NULL;
7100 newheader->additional_glue = NULL;
7101 update_recordsandbytes(ISC_TRUE, rbtversion, newheader);
7107 free_rdataset(rbtdb, rbtdb->common.mctx, newheader);
7108 newheader = new_rdataset(rbtdb, rbtdb->common.mctx);
7109 if (newheader == NULL) {
7113 init_rdataset(rbtdb, newheader);
7114 set_ttl(rbtdb, newheader, 0);
7115 newheader->type = topheader->type;
7116 newheader->attributes = RDATASET_ATTR_NONEXISTENT;
7117 newheader->trust = 0;
7118 newheader->serial = rbtversion->serial;
7119 newheader->noqname = NULL;
7120 newheader->closest = NULL;
7121 newheader->count = 0;
7122 newheader->additional_auth = NULL;
7123 newheader->additional_glue = NULL;
7124 newheader->node = rbtnode;
7125 newheader->resign = 0;
7126 newheader->resign_lsb = 0;
7127 newheader->last_used = 0;
7129 free_rdataset(rbtdb, rbtdb->common.mctx, newheader);
7134 * If we're here, we want to link newheader in front of
7140 topheader_prev->next = newheader;
7142 rbtnode->data = newheader;
7143 newheader->next = topheader->next;
7144 newheader->down = topheader;
7145 topheader->next = newheader;
7154 free_rdataset(rbtdb, rbtdb->common.mctx, newheader);
7162 bind_rdataset(rbtdb, rbtnode, newheader, 0, newrdataset);
7190 rdatasetheader_t *newheader;
7200 newheader = new_rdataset(rbtdb, rbtdb->common.mctx);
7201 if (newheader == NULL)
7203 init_rdataset(rbtdb, newheader);
7204 set_ttl(rbtdb, newheader, 0);
7205 newheader->type = RBTDB_RDATATYPE_VALUE(type, covers);
7206 newheader->attributes = RDATASET_ATTR_NONEXISTENT;
7207 newheader->trust = 0;
7208 newheader->noqname = NULL;
7209 newheader->closest = NULL;
7210 newheader->additional_auth = NULL;
7211 newheader->additional_glue = NULL;
7213 newheader->serial = rbtversion->serial;
7215 newheader->serial = 0;
7216 newheader->count = 0;
7217 newheader->last_used = 0;
7218 newheader->node = rbtnode;
7223 result = add32(rbtdb, rbtnode, rbtversion, newheader, DNS_DBADD_FORCE,
7365 rdatasetheader_t *newheader;
7432 newheader = (rdatasetheader_t *)region.base;
7433 init_rdataset(rbtdb, newheader);
7434 set_ttl(rbtdb, newheader,
7436 newheader->type = RBTDB_RDATATYPE_VALUE(rdataset->type,
7438 newheader->attributes = 0;
7439 newheader->trust = rdataset->trust;
7440 newheader->serial = 1;
7441 newheader->noqname = NULL;
7442 newheader->closest = NULL;
7443 newheader->count = init_count++;
7444 newheader->additional_auth = NULL;
7445 newheader->additional_glue = NULL;
7446 newheader->last_used = 0;
7447 newheader->node = node;
7448 setownercase(newheader, name);
7451 newheader->attributes |= RDATASET_ATTR_RESIGN;
7452 newheader->resign = (isc_stdtime_t)
7454 newheader->resign_lsb = rdataset->resign & 0x1;
7456 newheader->resign = 0;
7457 newheader->resign_lsb = 0;
7460 result = add32(rbtdb, node, rbtdb->current_version, newheader,
7743 rdatasetheader_t newheader;
7777 memmove(&newheader, p, sizeof(rdatasetheader_t));
7778 newheader.down = NULL;
7779 newheader.next = NULL;
7783 newheader.node = (dns_rbtnode_t *) off;
7784 newheader.node_is_relative = 1;
7785 newheader.serial = 1;
7793 newheader.next = (rdatasetheader_t *) (off + cooked);
7794 newheader.next_is_relative = 1;
7798 hexdump("writing header", (unsigned char *) &newheader,
7803 isc_crc64_update(crc, (unsigned char *) &newheader,
7805 CHECK(isc_stdio_write(&newheader, sizeof(rdatasetheader_t), 1,