/bind-9.11.3/lib/dns/tests/ |
H A D | dbdiff_test.c | 55 atf_tc_set_md_var(tc, "X-old", "testdata/diff/zone1.data"); 56 atf_tc_set_md_var(tc, "X-new", "testdata/diff/zone1.data"); } 60 dns_diff_t diff; local 67 dns_diff_init(mctx, &diff); 69 result = dns_db_diffx(&diff, newdb, NULL, olddb, NULL, NULL); 72 ATF_REQUIRE_EQ(ISC_LIST_EMPTY(diff.tuples), ISC_TRUE); 74 dns_diff_clear(&diff); 84 atf_tc_set_md_var(tc, "X-old", "testdata/diff/zone1.data"); 85 atf_tc_set_md_var(tc, "X-new", "testdata/diff/zone2.data"); 91 dns_diff_t diff; local 129 dns_diff_t diff; local [all...] |
/bind-9.11.3/lib/isc/tests/ |
H A D | mem_test.c | 45 ssize_t diff; local 68 diff = after - before; 72 (unsigned long)diff); 74 ATF_CHECK_EQ(diff, (2048 + 8) * 100000); 88 diff = after - before; 92 (unsigned long)diff); 94 ATF_CHECK_EQ(diff, (2048 + 8) * 100000); 112 ssize_t diff; local 130 diff = after - before; 135 ATF_REQUIRE_EQ(diff, [all...] |
/bind-9.11.3/bin/tests/system/dyndb/driver/ |
H A D | syncptr.c | 36 dns_diff_t diff; member in struct:syncptrevent 43 * Write diff generated in syncptr() to reverse zone. 62 CHECK(dns_diff_apply(&pevent->diff, db, version)); 71 dns_diff_clear(&pevent->diff); 209 dns_diff_init(inst->mctx, &pevent->diff); 213 /* Create diff */ 216 dns_diff_append(&pevent->diff, &tp);
|
/bind-9.11.3/unit/atf-src/tools/ |
H A D | misc_helpers.cpp | 373 ATF_TEST_CASE(diff); variable 374 ATF_TEST_CASE_HEAD(diff) 378 ATF_TEST_CASE_BODY(diff) 383 std::cout << " This test is meant to simulate a diff.\n"; 446 if (which == "diff") 447 ATF_ADD_TEST_CASE(tcs, diff);
|
/bind-9.11.3/lib/dns/ |
H A D | diff.c | 9 /* $Id: diff.c,v 1.26 2011/03/25 23:53:02 each Exp $ */ 25 #include <dns/diff.h> 126 dns_diff_init(isc_mem_t *mctx, dns_diff_t *diff) { argument 127 diff->mctx = mctx; 128 ISC_LIST_INIT(diff->tuples); 129 diff->magic = DNS_DIFF_MAGIC; 133 dns_diff_clear(dns_diff_t *diff) { argument 135 REQUIRE(DNS_DIFF_VALID(diff)); 136 while ((t = ISC_LIST_HEAD(diff->tuples)) != NULL) { 137 ISC_LIST_UNLINK(diff 144 dns_diff_append(dns_diff_t *diff, dns_difftuple_t **tuplep) argument 153 dns_diff_appendminimal(dns_diff_t *diff, dns_difftuple_t **tuplep) argument 247 diff_apply(dns_diff_t *diff, dns_db_t *db, dns_dbversion_t *ver, isc_boolean_t warn) argument 452 dns_diff_apply(dns_diff_t *diff, dns_db_t *db, dns_dbversion_t *ver) argument 457 dns_diff_applysilently(dns_diff_t *diff, dns_db_t *db, dns_dbversion_t *ver) argument 464 dns_diff_load(dns_diff_t *diff, dns_addrdatasetfunc_t addfunc, void *add_private) argument 535 dns_diff_sort(dns_diff_t *diff, dns_diff_compare_func *compare) argument 592 dns_diff_print(dns_diff_t *diff, FILE *file) argument [all...] |
H A D | nsec3.c | 28 #include <dns/diff.h> 282 * update in 'diff'. 286 * ownership has been transferred to the diff. 290 dns_diff_t *diff) 296 * Create a singleton diff. 298 dns_diff_init(diff->mctx, &temp_diff); 314 dns_diff_appendminimal(diff, tuple); 375 * change in "diff". 379 const dns_rdata_nsec3param_t *nsec3param, dns_diff_t *diff) 415 result = dns_difftuple_create(diff 289 do_one_tuple(dns_difftuple_t **tuple, dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff) argument 378 delnsec3(dns_db_t *db, dns_dbversion_t *version, dns_name_t *name, const dns_rdata_nsec3param_t *nsec3param, dns_diff_t *diff) argument 499 dns_nsec3_addnsec3(dns_db_t *db, dns_dbversion_t *version, dns_name_t *name, const dns_rdata_nsec3param_t *nsec3param, dns_ttl_t nsecttl, isc_boolean_t unsecure, dns_diff_t *diff) argument 861 dns_nsec3_addnsec3s(dns_db_t *db, dns_dbversion_t *version, dns_name_t *name, dns_ttl_t nsecttl, isc_boolean_t unsecure, dns_diff_t *diff) argument 1047 dns_nsec3param_deletechains(dns_db_t *db, dns_dbversion_t *ver, dns_zone_t *zone, isc_boolean_t nonsec, dns_diff_t *diff) argument 1172 dns_nsec3_addnsec3sx(dns_db_t *db, dns_dbversion_t *version, dns_name_t *name, dns_ttl_t nsecttl, isc_boolean_t unsecure, dns_rdatatype_t type, dns_diff_t *diff) argument 1312 dns_nsec3_delnsec3(dns_db_t *db, dns_dbversion_t *version, dns_name_t *name, const dns_rdata_nsec3param_t *nsec3param, dns_diff_t *diff) argument 1573 dns_nsec3_delnsec3s(dns_db_t *db, dns_dbversion_t *version, dns_name_t *name, dns_diff_t *diff) argument 1580 dns_nsec3_delnsec3sx(dns_db_t *db, dns_dbversion_t *version, dns_name_t *name, dns_rdatatype_t privatetype, dns_diff_t *diff) argument [all...] |
H A D | xfrin.c | 26 #include <dns/diff.h> 133 dns_diff_t diff; /*%< Pending database changes */ member in struct:dns_xfrin_ctx 296 CHECK(dns_difftuple_create(xfr->diff.mctx, op, 298 dns_diff_append(&xfr->diff, &tuple); 314 CHECK(dns_diff_load(&xfr->diff, xfr->axfr.add, xfr->axfr.add_private)); 316 dns_diff_clear(&xfr->diff); 394 CHECK(dns_difftuple_create(xfr->diff.mctx, op, 396 dns_diff_append(&xfr->diff, &tuple); 417 CHECK(dns_diff_apply(&xfr->diff, xfr->db, xfr->ver)); 426 result = dns_journal_writediff(xfr->ixfr.journal, &xfr->diff); [all...] |
H A D | journal.c | 27 #include <dns/diff.h> 1009 dns_journal_writediff(dns_journal_t *j, dns_diff_t *diff) { argument 1017 REQUIRE(DNS_DIFF_VALID(diff)); 1021 (void)dns_diff_print(diff, NULL); 1028 for (t = ISC_LIST_HEAD(diff->tuples); t != NULL; 1052 for (t = ISC_LIST_HEAD(diff->tuples); t != NULL; 1219 dns_journal_write_transaction(dns_journal_t *j, dns_diff_t *diff) { argument 1221 CHECK(dns_diff_sort(diff, ixfr_order)); 1223 CHECK(dns_journal_writediff(j, diff)); 1273 dns_diff_t diff; local 1435 dns_diff_t diff; local 1793 get_name_diff(dns_db_t *db, dns_dbversion_t *ver, isc_stdtime_t now, dns_dbiterator_t *dbit, dns_name_t *name, dns_diffop_t op, dns_diff_t *diff) argument 1873 dns_diff_subtract(dns_diff_t diff[2], dns_diff_t *r) argument 1937 dns_diff_t diff[2]; local 2041 dns_diff_t diff; local 2053 dns_db_diffx(dns_diff_t *diff, dns_db_t *dba, dns_dbversion_t *dbvera, dns_db_t *dbb, dns_dbversion_t *dbverb, const char *filename) argument [all...] |
H A D | update.c | 29 #include <dns/diff.h> 217 * update in 'diff'. 221 * ownership has been transferred to the diff. 225 dns_diff_t *diff) 231 * Create a singleton diff. 233 dns_diff_init(diff->mctx, &temp_diff); 249 dns_diff_appendminimal(diff, tuple); 258 update_one_rr(dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff, argument 264 result = dns_difftuple_create(diff->mctx, op, 268 return (do_one_tuple(&tuple, db, ver, diff)); 224 do_one_tuple(dns_difftuple_t **tuple, dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff) argument 641 dns_diff_t *diff; member in struct:__anon206 695 delete_if(rr_predicate *predicate, dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name, dns_rdatatype_t type, dns_rdatatype_t covers, dns_rdata_t *update_rr, dns_diff_t *diff) argument 975 add_nsec(dns_update_log_t *log, dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name, dns_ttl_t nsecttl, dns_diff_t *diff) argument 1026 add_placeholder_nsec(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name, dns_diff_t *diff) argument 1066 add_sigs(dns_update_log_t *log, dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name, dns_rdatatype_t type, dns_diff_t *diff, dst_key_t **keys, unsigned int nkeys, isc_stdtime_t inception, isc_stdtime_t expire, isc_boolean_t check_ksk, isc_boolean_t keyset_kskonly) argument 1188 del_keysigs(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name, dns_diff_t *diff, dst_key_t **keys, unsigned int nkeys) argument 1262 add_exposed_sigs(dns_update_log_t *log, dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name, isc_boolean_t cut, dns_diff_t *diff, dst_key_t **keys, unsigned int nkeys, isc_stdtime_t inception, isc_stdtime_t expire, isc_boolean_t check_ksk, isc_boolean_t keyset_kskonly, unsigned int *sigs) argument 1343 dns_update_signatures(dns_update_log_t *log, dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *oldver, dns_dbversion_t *newver, dns_diff_t *diff, isc_uint32_t sigvalidityinterval) argument 1369 dns_update_signaturesinc(dns_update_log_t *log, dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *oldver, dns_dbversion_t *newver, dns_diff_t *diff, isc_uint32_t sigvalidityinterval, dns_update_state_t **statep) argument [all...] |
H A D | dnssec.c | 26 #include <dns/diff.h> 1827 publish(dns_rdata_t *rdata, dns_diff_t *diff, dns_name_t *origin, argument 1835 dns_diff_appendminimal(diff, &tuple); 1842 delrdata(dns_rdata_t *rdata, dns_diff_t *diff, dns_name_t *origin, argument 1850 dns_diff_appendminimal(diff, &tuple); 1857 publish_key(dns_diff_t *diff, dns_dnsseckey_t *key, dns_name_t *origin, argument 1891 dns_diff_appendminimal(diff, &tuple); 1899 remove_key(dns_diff_t *diff, dns_dnsseckey_t *key, dns_name_t *origin, argument 1916 dns_diff_appendminimal(diff, &tuple); 1948 isc_stdtime_t now, dns_ttl_t ttl, dns_diff_t *diff, 1946 dns_dnssec_syncupdate(dns_dnsseckeylist_t *keys, dns_dnsseckeylist_t *rmkeys, dns_rdataset_t *cds, dns_rdataset_t *cdnskey, isc_stdtime_t now, dns_ttl_t ttl, dns_diff_t *diff, isc_mem_t *mctx) argument 2073 dns_dnssec_updatekeys(dns_dnsseckeylist_t *keys, dns_dnsseckeylist_t *newkeys, dns_dnsseckeylist_t *removed, dns_name_t *origin, dns_ttl_t hint_ttl, dns_diff_t *diff, isc_boolean_t allzsk, isc_mem_t *mctx, void (*report)(const char *, ...)) argument [all...] |
H A D | zone.c | 432 dns_diff_t *diff; member in struct:__anon210 439 (_z)->diff = (d); \ 466 #define DNS_ZONEFLG_DIFFONRELOAD 0x00000800U /*%< generate a journal diff on 740 dns_diff_t *diff, dns_diffop_t op, 818 dns_diff_t *diff); 3769 dns_diff_t *diff, dns_keytable_t *keytable, 3820 CHECK(update_one_rr(db, ver, diff, DNS_DIFFOP_ADD, 3849 delete_keydata(dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff, argument 3860 uresult = update_one_rr(db, ver, diff, DNS_DIFFOP_DEL, 4024 dns_diff_t *diff) 3768 create_keydata(dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff, dns_keytable_t *keytable, dns_keynode_t **keynodep, isc_boolean_t *changed) argument 4023 do_one_tuple(dns_difftuple_t **tuple, dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff) argument 4057 update_one_rr(dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff, dns_diffop_t op, dns_name_t *name, dns_ttl_t ttl, dns_rdata_t *rdata) argument 4071 update_soa_serial(dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff, isc_mem_t *mctx, dns_updatemethod_t method) argument 4103 zone_journal(dns_zone_t *zone, dns_diff_t *diff, isc_uint32_t *sourceserial, const char *caller) argument 4148 dns_diff_t diff; local 4187 dns_diff_t *diff; member in struct:addifmissing_arg 4197 dns_diff_t *diff = ((struct addifmissing_arg *)arg)->diff; local 4249 dns_diff_t diff; local 4407 dns_diff_t diff; local 6333 add_sigs(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name, dns_rdatatype_t type, dns_diff_t *diff, dst_key_t **keys, unsigned int nkeys, isc_mem_t *mctx, isc_stdtime_t inception, isc_stdtime_t expire, isc_boolean_t check_ksk, isc_boolean_t keyset_kskonly) argument 6717 add_nsec(dns_db_t *db, dns_dbversion_t *version, dns_name_t *name, dns_dbnode_t *node, dns_ttl_t ttl, isc_boolean_t bottom, dns_diff_t *diff) argument 6740 sign_a_node(dns_db_t *db, dns_name_t *name, dns_dbnode_t *node, dns_dbversion_t *version, isc_boolean_t build_nsec3, isc_boolean_t build_nsec, dst_key_t *key, isc_stdtime_t inception, isc_stdtime_t expire, unsigned int minimum, isc_boolean_t is_ksk, isc_boolean_t keyset_kskonly, isc_boolean_t *delegation, dns_diff_t *diff, isc_int32_t *signatures, isc_mem_t *mctx) argument 6873 updatesecure(dns_db_t *db, dns_dbversion_t *version, dns_name_t *name, dns_ttl_t minimum, isc_boolean_t update_only, dns_diff_t *diff) argument 6905 updatesignwithkey(dns_zone_t *zone, dns_signing_t *signing, dns_dbversion_t *version, isc_boolean_t build_nsec3, dns_ttl_t minimum, dns_diff_t *diff) argument 7034 fixup_nsec3param(dns_db_t *db, dns_dbversion_t *ver, dns_nsec3chain_t *chain, isc_boolean_t active, dns_rdatatype_t privatetype, dns_diff_t *diff) argument 7170 delete_nsec(dns_db_t *db, dns_dbversion_t *ver, dns_dbnode_t *node, dns_name_t *name, dns_diff_t *diff) argument 7201 deletematchingnsec3(dns_db_t *db, dns_dbversion_t *ver, dns_dbnode_t *node, dns_name_t *name, const dns_rdata_nsec3param_t *param, dns_diff_t *diff) argument 7318 update_sigs(dns_diff_t *diff, dns_db_t *db, dns_dbversion_t *version, dst_key_t *zone_keys[], unsigned int nkeys, dns_zone_t *zone, isc_stdtime_t inception, isc_stdtime_t expire, isc_stdtime_t now, isc_boolean_t check_ksk, isc_boolean_t keyset_kskonly, zonediff_t *zonediff) argument 8201 del_sig(dns_db_t *db, dns_dbversion_t *version, dns_name_t *name, dns_dbnode_t *node, unsigned int nkeys, dns_secalg_t algorithm, isc_uint16_t keyid, dns_diff_t *diff) argument 8914 minimal_update(dns_keyfetch_t *kfetch, dns_dbversion_t *ver, dns_diff_t *diff) argument 9044 dns_diff_t diff; local 9631 dns_diff_t diff; local 13909 sync_secure_journal(dns_zone_t *zone, dns_zone_t *raw, dns_journal_t *journal, isc_uint32_t start, isc_uint32_t end, dns_difftuple_t **soatuplep, dns_diff_t *diff) argument 13984 sync_secure_db(dns_zone_t *seczone, dns_zone_t *raw, dns_db_t *secdb, dns_dbversion_t *secver, dns_difftuple_t **soatuple, dns_diff_t *diff) argument 14548 dns_diff_t diff; local 17478 add_signing_records(dns_db_t *db, dns_rdatatype_t privatetype, dns_dbversion_t *ver, dns_diff_t *diff, isc_boolean_t sign_all) argument 17547 sign_apex(dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver, isc_stdtime_t now, dns_diff_t *diff, zonediff_t *zonediff) argument 17630 dnskey_sane(dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff) argument 17682 clean_nsec3param(dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff) argument 17738 add_chains(dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff) argument 17766 dns_diff_t diff, _sig_diff; local 18522 dns_diff_t diff; local 18721 dns_diff_t diff; local 19076 dns_diff_t diff; local [all...] |
/bind-9.11.3/bin/dig/ |
H A D | host.c | 172 int diff; local 178 diff = (int) isc_time_microdiff(&now, &query->time_sent); 180 bytes, fromtext, diff/1000);
|
H A D | dig.c | 244 isc_uint64_t diff; local 257 diff = isc_time_microdiff(&query->time_recv, &query->time_sent); 259 printf(";; Query time: %ld usec\n", (long) diff); 261 printf(";; Query time: %ld msec\n", (long) diff / 1000); 301 diff = isc_time_microdiff(&query->time_recv, &query->time_sent); 308 fromtext, query->userarg, (long) diff); 315 fromtext, query->userarg, (long) diff / 1000); 336 isc_uint64_t diff; local 361 diff = isc_time_microdiff(&query->time_recv, &query->time_sent); 365 snprintf(store, sizeof(store), " in %" ISC_PLATFORM_QUADFORMAT "u us.", diff); [all...] |
/bind-9.11.3/bin/named/ |
H A D | update.c | 23 #include <dns/diff.h> 230 dns_diff_t *diff; member in struct:__anon24 404 * update in 'diff'. 408 * ownership has been transferred to the diff. 412 dns_diff_t *diff) 418 * Create a singleton diff. 420 dns_diff_init(diff->mctx, &temp_diff); 436 dns_diff_appendminimal(diff, tuple); 446 * update in 'diff'. 453 dns_diff_t *diff) 411 do_one_tuple(dns_difftuple_t **tuple, dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff) argument 452 do_diff(dns_diff_t *updates, dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff) argument 469 update_one_rr(dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff, dns_diffop_t op, dns_name_t *name, dns_ttl_t ttl, dns_rdata_t *rdata) argument 934 temp_append(dns_diff_t *diff, dns_name_t *name, dns_rdata_t *rdata) argument 1153 dns_diff_t *diff; member in struct:__anon27 1306 delete_if(rr_predicate *predicate, dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name, dns_rdatatype_t type, dns_rdatatype_t covers, dns_rdata_t *update_rr, dns_diff_t *diff) argument 1430 update_soa_serial(dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff, isc_mem_t *mctx, dns_updatemethod_t method) argument 1652 remove_orphaned_ds(dns_db_t *db, dns_dbversion_t *newver, dns_diff_t *diff) argument 1692 check_mx(ns_client_t *client, dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *newver, dns_diff_t *diff) argument 1923 check_dnssec(ns_client_t *client, dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff) argument 2000 add_nsec3param_records(ns_client_t *client, dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff) argument 2267 rollback_private(dns_db_t *db, dns_rdatatype_t privatetype, dns_dbversion_t *ver, dns_diff_t *diff) argument 2330 add_signing_records(dns_db_t *db, dns_rdatatype_t privatetype, dns_dbversion_t *ver, dns_diff_t *diff) argument 2487 dns_diff_t diff; /* Pending updates. */ local [all...] |
/bind-9.11.3/contrib/queryperf/ |
H A D | queryperf.c | 1042 double diff; local 1047 diff = (double)diff_sec + ((double)diff_usec / 1000000.0); 1049 return (diff); 1988 double mean, diff; local 1992 diff = rtt_average - (mean / 1000000.0); 1993 sum += (diff * diff) * rarray[i];
|
/bind-9.11.3/bin/dnssec/ |
H A D | dnssec-signzone.c | 56 #include <dns/diff.h> 924 dns_diff_t diff; local 970 dns_diff_init(mctx, &diff); 986 dns_diff_append(&diff, &tuple); 996 dns_diff_append(&diff, &tuple); 999 result = dns_diff_apply(&diff, db, ver); 1001 dns_diff_clear(&diff); 2609 dns_diff_t diff; local 2626 dns_diff_init(mctx, &diff); 2632 &diff, ignore_kskfla 2798 dns_diff_t diff; local [all...] |