zone_options &= ~DNS_ZONEOPT_CHECKDUPRR;
zone_options &= ~DNS_ZONEOPT_CHECKDUPRRFAIL;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
} else {
zone_options |= DNS_ZONEOPT_CHECKDUPRR;
zone_options &= ~DNS_ZONEOPT_CHECKMX;
zone_options &= ~DNS_ZONEOPT_CHECKMXFAIL;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
} else {
zone_options |= DNS_ZONEOPT_CHECKMX;
zone_options |= DNS_ZONEOPT_WARNMXCNAME;
zone_options |= DNS_ZONEOPT_IGNOREMXCNAME;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
} else {
zone_options |= DNS_ZONEOPT_WARNMXCNAME;
zone_options |= DNS_ZONEOPT_WARNSRVCNAME;
zone_options |= DNS_ZONEOPT_IGNORESRVCNAME;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
} else {
zone_options |= DNS_ZONEOPT_WARNSRVCNAME;
} else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
zone_options &= ~DNS_ZONEOPT_CHECKSPF;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
} else {
zone_options |= DNS_ZONEOPT_CHECKSPF;
zone_options &= ~DNS_ZONEOPT_CHECKNAMES;
zone_options &= ~DNS_ZONEOPT_CHECKNAMESFAIL;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
} else {
zone_options |= DNS_ZONEOPT_CHECKNAMES;
} else if (strcasecmp(masterformatstr, "map") == 0) {
masterformat = dns_masterformat_map;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
} else if (PROGCMP("named-compilezone")) {
progmode = progmode_compile;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
/* Compilation specific defaults */
} else if (PROGCMP("ddns-confgen")) {
progmode = progmode_confgen;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
isc_commandline_errprint = false;
case 'h':
usage();
exit(0);
- /* NOTREACHED */
+ UNREACHABLE();
case 'i':
no_sigs = true;
root_validation = false;
case 'v':
fputs("delv " VERSION "\n", stderr);
exit(0);
- /* NOTREACHED */
+ UNREACHABLE();
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
if (strlen(option) > 1U) {
option = &option[1];
fprintf(stderr, "Invalid option: -%s\n", option);
usage();
}
- /* NOTREACHED */
+ UNREACHABLE();
return (false);
}
have_ipv6 = false;
} else {
fatal("can't find IPv4 networking");
- /* NOTREACHED */
+ UNREACHABLE();
return (false);
}
break;
have_ipv4 = false;
} else {
fatal("can't find IPv6 networking");
- /* NOTREACHED */
+ UNREACHABLE();
return (false);
}
break;
fprintf(stderr, "Invalid option: -%s\n", option);
usage();
}
- /* NOTREACHED */
+ UNREACHABLE();
return (false);
}
memmove(addr, &sin6->sin6_addr, addrl);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
isc_buffer_init(&b, ecsbuf, sizeof(ecsbuf));
dns_secalg_format(alg, algstr, sizeof(algstr));
fatal("failed to get key %s/%s: %s", namestr, algstr,
isc_result_totext(ret));
- /* NOTREACHED */
+ UNREACHABLE();
exit(-1);
}
dns_name_format(name, namestr, sizeof(namestr));
fatal("failure looking for '%s DNSKEY' in database: %s", namestr,
isc_result_totext(result));
- /* NOTREACHED */
+ UNREACHABLE();
return (false); /* removes a warning */
}
default:
fatal("time value %s is invalid", str);
}
- /* NOTREACHED */
+ UNREACHABLE();
break;
case 'W':
case 'w':
default:
fatal("time value %s is invalid", str);
}
- /* NOTREACHED */
+ UNREACHABLE();
return (0); /* silence compiler warning */
}
} else if (strcasecmp(str, "redirect") == 0) {
ztype = dns_zone_redirect;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
return (ztype);
}
*name = dns_tsig_hmacsha512_name;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
if (typep != NULL) {
maxoffset = 0x7fffffffffffffffULL;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
type = ISC_LOG_TOFILE;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
return (ISC_R_SUCCESS);
INSIST(result == ISC_R_SUCCESS);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
sa = *(cfg_obj_assockaddr(obj));
result = isc_net_probeipv6();
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
if (result != ISC_R_SUCCESS) {
return (ISC_R_SUCCESS);
} else if (!strcasecmp(str, "none")) {
mode = DNS_RDATASETATTR_NONE;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
/*
} else if (strcasecmp(str, "one-answer") == 0) {
CHECK(dns_peer_settransferformat(peer, dns_one_answer));
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
break;
default:
REQUIRE(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
event = (catz_chgzone_event_t *)isc_event_allocate(
} else if (strcasecmp(str, "ignore") == 0) {
view->checknames = false;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
obj = NULL;
} else if (strcasecmp(resp, "fail") == 0) {
r = DNS_R_SERVFAIL;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
dns_resolver_setquotaresponse(view->resolver,
} else if (strcasecmp(str, "no-auth-recursive") == 0) {
view->minimalresponses = dns_minimal_noauthrec;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
} else if (strcasecmp(str, "one-answer") == 0) {
view->transfer_format = dns_one_answer;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
obj = NULL;
} else if (strcasecmp(resp, "fail") == 0) {
r = DNS_R_SERVFAIL;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
dns_resolver_setquotaresponse(view->resolver,
} else if (strcasecmp(levelstr, "none") == 0) {
statlevel = dns_zonestat_none;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
} else if (strcasecmp(forwardstr, "only") == 0) {
fwdpolicy = dns_fwdpolicy_only;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
}
} else if (strcasecmp(cfg_obj_asstring(obj), "aes") == 0) {
server->sctx->cookiealg = ns_cookiealg_aes;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
obj = NULL;
} else if (strncasecmp(command, "mod", 3) == 0) {
bn = "modzone";
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
/*
CHECK(mkey_destroy(server, view, text));
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
if (viewtxt != NULL) {
aclname = "allow-update-forwarding";
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
/* First check to see if ACL is defined within the zone */
} else if (strcasecmp(str, "deny") == 0) {
grant = false;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
str = cfg_obj_asstring(matchtype);
result = named_checknames_get(maps, primary_synonyms, objp);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
INSIST(result == ISC_R_SUCCESS && objp != NULL && *objp != NULL);
"masterfile-format: format 'map' is "
"deprecated");
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
} else if (strcasecmp(masterstylestr, "relative") == 0) {
masterstyle = &dns_master_style_default;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
} else if (strcasecmp(dialupstr, "passive") == 0) {
dialup = dns_dialuptype_passive;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
if (raw != NULL) {
} else if (strcasecmp(levelstr, "none") == 0) {
statlevel = dns_zonestat_none;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
dns_zone_setstatlevel(zone, statlevel);
{
notifytype = dns_notifytype_masteronly;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
notifytype = process_notifytype(notifytype, ztype, zname,
} else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
fail = check = false;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
if (raw != NULL) {
dns_zone_setoption(raw, DNS_ZONEOPT_CHECKNAMES, check);
} else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
check = false;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
dns_zone_setoption(zone, DNS_ZONEOPT_CHECKSPF, check);
} else if (strcasecmp(arg, "off") == 0) {
/* Default */
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
dns_zone_setkeyopt(zone, DNS_ZONEKEY_ALLOW, allow);
dns_zone_setkeyopt(zone, DNS_ZONEKEY_CREATE, false);
} else if (strcasecmp(dupcheck, "ignore") == 0) {
fail = check = false;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
dns_zone_setoption(mayberaw, DNS_ZONEOPT_CHECKDUPRR, check);
dns_zone_setoption(mayberaw, DNS_ZONEOPT_CHECKDUPRRFAIL, fail);
} else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
fail = check = false;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
dns_zone_setoption(mayberaw, DNS_ZONEOPT_CHECKMX, check);
dns_zone_setoption(mayberaw, DNS_ZONEOPT_CHECKMXFAIL, fail);
} else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
warn = ignore = true;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
dns_zone_setoption(mayberaw, DNS_ZONEOPT_WARNMXCNAME, warn);
dns_zone_setoption(mayberaw, DNS_ZONEOPT_IGNOREMXCNAME, ignore);
} else if (strcasecmp(cfg_obj_asstring(obj), "ignore") == 0) {
warn = ignore = true;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
dns_zone_setoption(mayberaw, DNS_ZONEOPT_WARNSRVCNAME, warn);
dns_zone_setoption(mayberaw, DNS_ZONEOPT_IGNORESRVCNAME,
} else if (strcasecmp(arg, "maintain") == 0) {
/* Default */
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
#ifdef USE_DNSRPS
printf("%s\n", librpz->dnsrpzd_path);
#else /* ifdef USE_DNSRPS */
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
#endif /* ifdef USE_DNSRPS */
return (0);
librpz->client_detach(&client);
printf("%u\n", serial);
#else /* ifdef USE_DNSRPS */
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
#endif /* ifdef USE_DNSRPS */
return (0);
fprintf(stderr, "bad input format: %02x\n", c);
exit(3);
- /* NOTREACHED */
+ UNREACHABLE();
}
static void
have_ipv6 = false;
} else {
fatal("can't find IPv4 networking");
- /* NOTREACHED */
+ UNREACHABLE();
return (false);
}
break;
have_ipv4 = false;
} else {
fatal("can't find IPv6 networking");
- /* NOTREACHED */
+ UNREACHABLE();
return (false);
}
break;
fprintf(stderr, "Invalid option: -%s\n", option);
usage();
}
- /* NOTREACHED */
+ UNREACHABLE();
return (false);
}
@@
@@
- INSIST(0);
-+ ISC_UNREACHABLE();
- ... when != ISC_UNREACHABLE();
+- INSIST(0);
++ UNREACHABLE();
+ ... when != UNREACHABLE();
+
+@@
+@@
+
+- INSIST(0);
+- ISC_UNREACHABLE();
++ UNREACHABLE();
break;
}
}
- /* NOTREACHED */
+ UNREACHABLE();
}
static int
static char * c /* Description of 'c'. */
-The following lint and lint-like comments should be used where appropriate:
+The following macros should be used where appropriate:
- /* ARGSUSED */
FALLTHROUGH;
- /* NOTREACHED */
- /* VARARGS */
+ UNREACHABLE();
#### Header files
}
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
for (element2 = cfg_list_first(typelist); element2 != NULL;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
"masterfile-format: format 'map' is "
"deprecated");
} else {
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
}
return (dns_geoip_match(reqaddr, env->geoip, &e->geoip_elem));
#endif /* if defined(HAVE_GEOIP2) */
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
result = dns_acl_match(reqaddr, reqsigner, inner, env, &indirectmatch,
return (true);
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
attrs |= DNS_DISPATCHATTR_IPV6;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
attrmask = 0;
&ardataset);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
if (result == ISC_R_SUCCESS) {
isc_mem_put(disp->mgr->mctx, buf, buffersize);
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
}
disp->recv_pending = 1;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
case LIBRPZ_POLICY_GIVEN:
case LIBRPZ_POLICY_DISABLED:
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
case DNS_DTTYPE_UR:
return (DNSTAP__MESSAGE__TYPE__UPDATE_RESPONSE);
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
result = ISC_R_NOTIMPLEMENTED;
goto cleanup;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
isc_mem_attach(mctx, &handle->mctx);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
name = dns_fixedname_initname(&fname);
addr2 = (const unsigned char *)&ecs2->addr.type.in6;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
/*
} else if (type == ISC_MD_SHA512) {
return (TAG_HMACSHA512_KEY);
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
} else if (type == ISC_MD_SHA512) {
return (TAG_HMACSHA512_BITS);
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
} else if (type == ISC_MD_SHA512) {
return (DST_ALG_HMACSHA512);
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
aop = 0;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
switch (b->op) {
bop = 0;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
r = bop - aop;
}
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
break;
}
lctx->load = load_map;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
if (lex != NULL) {
dctx->dumpsets = dump_rdatasets_map;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
result = totext_ctx_init(style, NULL, &dctx->tctx);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
isc_mem_put(dctx->mctx, buffer.base, buffer.length);
}
}
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
static isc_result_t
} else {
FATAL_ERROR(__FILE__, __LINE__,
"Unexpected label type %02x", count);
- /* NOTREACHED */
+ UNREACHABLE();
}
/*
} else {
FATAL_ERROR(__FILE__, __LINE__,
"Unexpected label type %02x", count);
- /* NOTREACHED */
+ UNREACHABLE();
}
/*
group_nid = NID_secp384r1;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
*eckey = EC_KEY_new_by_curve_name(group_nid);
if (*eckey == NULL) {
}
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
evp_md_ctx = EVP_MD_CTX_create();
type = EVP_sha512();
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
if (!EVP_DigestInit_ex(evp_md_ctx, type, NULL)) {
}
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
if (rsa == NULL || e == NULL || cb == NULL) {
prefixlen = 128;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
return (dns_peer_newprefix(mem, addr, prefixlen, peerptr));
dgstlen = ISC_SHA384_DIGESTLENGTH;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
dgstlen = ISC_SHA384_DIGESTLENGTH;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
attr->ulValueLen = sizeof(PK11_ECC_SECP384R1); \
break; \
default: \
- INSIST(0); \
+ UNREACHABLE(); \
ISC_UNREACHABLE(); \
}
key->key_size = DNS_KEY_ECDSA384SIZE * 4;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
len = DNS_KEY_ECDSA384SIZE;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
len = DNS_KEY_ECDSA384SIZE;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
key->key_size = DNS_KEY_ECDSA384SIZE * 4;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
key->key_size = DNS_KEY_ECDSA384SIZE * 4;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
siglen = DNS_SIG_ED448SIZE;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
attr->ulValueLen = sizeof(PK11_ECX_ED448); \
break; \
default: \
- INSIST(0); \
+ UNREACHABLE(); \
ISC_UNREACHABLE(); \
}
key->key_size = DNS_KEY_ED448SIZE * 8;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
len = DNS_KEY_ED448SIZE;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
len = DNS_KEY_ED448SIZE;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
key->key_size = DNS_KEY_ED448SIZE * 8;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
key->key_size = DNS_KEY_ED448SIZE * 8;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
}
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
rsa = key->keydata.pkey;
mech.mechanism = CKM_SHA512_RSA_PKCS;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
}
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
rsa = key->keydata.pkey;
mech.mechanism = CKM_SHA512_RSA_PKCS;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
}
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
switch (key->key_alg) {
mech.mechanism = CKM_SHA512;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
}
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
switch (key->key_alg) {
hashlen = ISC_SHA512_DIGESTLENGTH;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
dgstlen = derlen + hashlen;
hashlen = ISC_SHA512_DIGESTLENGTH;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
dgstlen = derlen + hashlen;
}
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
FATAL_ERROR(__FILE__, __LINE__, "zone_findzonecut() called!");
- /* NOTREACHED */
+ UNREACHABLE();
return (ISC_R_NOTIMPLEMENTED);
}
return (dns_name_fromtext(&name, &buffer, origin, options,
target));
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
return (dns_name_totext(&name, false, target));
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
return (ISC_R_SUCCESS);
}
*latitude = 0x80000000 - (d1 * 3600 + m1 * 60) * 1000 - s1;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
return (ISC_R_SUCCESS);
*longitude = 0x80000000 - (d2 * 3600 + m2 * 60) * 1000 - s2;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
return (ISC_R_SUCCESS);
RETERR(svcsortkeylist(target, used));
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
len = isc_buffer_usedlength(target) -
}
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
return (ISC_R_SUCCESS);
memmove(buf, &netaddr.type.in6, 16);
return (16);
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
return (0);
}
RUNTIME_CHECK(result == ISC_R_SUCCESS);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
if (chainingp != NULL) {
str = "DNS64";
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
return (str);
}
tgt_set->nsip = zbits;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
tgt_set->ns = DNS_RPZ_ZBIT(rpz_num);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
}
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
if (inc) {
rpz_num = zbit_to_num(found->set.nsip & tgt_set.nsip);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
result = ip2name(&found->ip, found->prefix, dns_rootname, ip_name);
RWUNLOCK(&rpzs->search_lock, isc_rwlocktype_read);
case DNS_RRL_RTYPE_ALL:
return (&rrl->all_per_second);
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
ADD_LOG_CSTR(&lb, "slip ");
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
switch (e->key.s.rtype) {
ADD_LOG_CSTR(&lb, "all ");
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
if (plural) {
UNUSED(db);
UNUSED(node);
UNUSED(now);
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
static void
UNUSED(db);
UNUSED(node);
UNUSED(now);
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
static void
RUNTIME_CHECK(result < sizeof(buf));
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
isc_buffer_init(&b, buf, strlen(buf));
isc_buffer_add(&b, strlen(buf));
RUNTIME_CHECK(result < sizeof(buf));
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
isc_buffer_init(&b, buf, strlen(buf));
isc_buffer_add(&b, strlen(buf));
printf("bad input format: %02x\n", c);
exit(3);
- /* NOTREACHED */
+ UNREACHABLE();
}
/*
} else if (inet_pton(AF_INET, addr, &in4) == 1) {
isc_netaddr_fromin(&na, &in4);
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
db = geoip2_database(&geoip, fix_subtype(&geoip, subtype));
tsec->ukey.key = key;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
tsec->magic = DNS_TSEC_MAGIC;
dst_key_free(&tsec->ukey.key);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
tsec->magic = 0;
*(dst_key_t **)keyp = tsec->ukey.key;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
state->keyset_kskonly));
sigs++;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
ISC_LIST_UNLINK(state->nsec_mindiff.tuples, t, link);
ISC_LIST_APPEND(state->work.tuples, t, link);
state->keyset_kskonly));
sigs++;
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
ISC_LIST_UNLINK(state->nsec_mindiff.tuples, t, link);
ISC_LIST_APPEND(state->work.tuples, t, link);
INSIST(ISC_LIST_EMPTY(state->nsec_mindiff.tuples));
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
failure:
}
return (serial);
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
}
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
if (used != NULL) {
result = validate_nx(val, false);
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
if (result != DNS_R_WAIT) {
FAIL(DNS_R_EXTRADATA);
FALLTHROUGH;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
result = ISC_R_SUCCESS;
failure:
&dnskey, &buf);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
return (ISC_R_SUCCESS);
}
}
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
UNLOCK_ZONE(zone);
INSIST(isc_sockaddr_pf(&masteraddr) == isc_sockaddr_pf(&sourceaddr));
DNS_ZONE_SETFLAG(zone, DNS_ZONEFLG_NOREFRESH);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
UNLOCK_ZONE(zone);
}
}
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
RWUNLOCK(&zmgr->rwlock, isc_rwlocktype_read);
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
proto = ((flags & NI_DGRAM) != 0) ? "udp" : "tcp";
true);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
} else {
const char *cond) {
isc_assertion_failed_cb(file, line, type, cond);
abort();
- /* NOTREACHED */
}
/*% Set callback. */
isc_assertiontype_invariant, #cond), \
0)))
+#define ISC_UNREACHABLE() \
+ (isc_assertion_failed(__FILE__, __LINE__, isc_assertiontype_insist, \
+ "unreachable"), \
+ __builtin_unreachable())
+
ISC_LANG_ENDDECLS
#endif /* ISC_ASSERTIONS_H */
*/
#include <isc/likely.h>
-#ifdef HAVE_BUILTIN_UNREACHABLE
-#define ISC_UNREACHABLE() __builtin_unreachable();
-#else /* ifdef HAVE_BUILTIN_UNREACHABLE */
-#define ISC_UNREACHABLE()
-#endif /* ifdef HAVE_BUILTIN_UNREACHABLE */
-
/* GCC defines __SANITIZE_ADDRESS__, so reuse the macro for clang */
#if __has_feature(address_sanitizer)
#define __SANITIZE_ADDRESS__ 1
((!(expression)) \
? (mock_assert(0, #expression, __FILE__, __LINE__), abort()) \
: (void)0)
+#define UNREACHABLE() \
+ (mock_assert(0, "unreachable", __FILE__, __LINE__), abort())
#define _assert_true(c, e, f, l) \
((c) ? (void)0 : (_assert_true(0, e, f, l), abort()))
#define _assert_int_equal(a, b, f, l) \
/*% Invariant Assertion */
#define INVARIANT(e) ISC_INVARIANT(e)
+#define UNREACHABLE() ISC_UNREACHABLE()
+
#else /* CPPCHECK */
/*% Require Assertion */
if (!(e)) \
abort()
+#define UNREACHABLE() abort()
+
#endif /* CPPCHECK */
#endif /* UNIT_TESTING */
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
ISC_LIST_PREPEND(lcfg->channels, channel, link);
* If we get here, we didn't find the item on the list. We're
* screwed.
*/
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
#endif /* ISC_MEM_TRACKLINES */
print_contexts(file);
}
#endif /* if ISC_MEM_TRACKLINES */
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
UNLOCK(&contextslock);
}
break;
#endif /* ifdef ISC_PLATFORM_HAVESYSUNH */
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
#ifdef NETMGR_TRACE
if (isc_refcount_current(&mgr->references) > 1) {
isc__nm_dump_active(mgr);
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
#endif
reschedule = true;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
case ISC_R_SUCCESS:
return;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
NETIEVENT_CASE(resume);
NETIEVENT_CASE_NOMORE(pause);
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
return (true);
}
isc__nm_tcpdns_failed_read_cb(sock, result);
return;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
buf->len = ISC_NETMGR_TCP_RECVBUF_SIZE;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
REQUIRE(buf->len <= ISC_NETMGR_RECVBUF_SIZE);
UV_RUNTIME_CHECK(uv_read_start, r);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
sock->reading = true;
}
UV_RUNTIME_CHECK(uv_read_stop, r);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
sock->reading = false;
}
case isc_nm_tcpdnssocket:
return (isc__nm_tcpdns_processbuffer(sock));
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
isc__nm_tcpdns_send(handle, region, cb, cbarg);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
isc__nm_tcpdns_read(handle, cb, cbarg);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
isc__nm_tcpdns_cancelread(handle);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
isc__nm_tcp_pauseread(handle);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
isc__nm_tcp_resumeread(handle);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
isc__nm_tcp_stoplistening(sock);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
break;
default:
INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
break;
}
case isc_nm_tcpdnslistener:
return;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
case isc_nm_tcpdnssocket:
return ("isc_nm_tcpdnssocket");
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
if (!atomic_compare_exchange_strong(&sock->closing, &(bool){ false },
true)) {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
if (!isc__nm_in_netthread()) {
if (!atomic_compare_exchange_strong(&sock->closed, &(bool){ false },
true)) {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
isc__nm_incstats(sock->mgr, sock->statsindex[STATID_CLOSE]);
if (!atomic_compare_exchange_strong(&sock->closed, &(bool){ false },
true)) {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
isc__nm_incstats(sock->mgr, sock->statsindex[STATID_CLOSE]);
if (!atomic_compare_exchange_strong(&sock->closing, &(bool){ false },
true)) {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
if (!isc__nm_in_netthread()) {
if (!atomic_compare_exchange_strong(&sock->closed, &(bool){ false },
true)) {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
isc__nm_incstats(sock->mgr, sock->statsindex[STATID_CLOSE]);
if (!atomic_compare_exchange_strong(&sock->closed, &(bool){ false },
true)) {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
isc__nm_incstats(sock->mgr, sock->statsindex[STATID_CLOSE]);
if (!atomic_compare_exchange_strong(&sock->closing, &(bool){ false },
true)) {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
if (!isc__nm_in_netthread()) {
if (!atomic_compare_exchange_strong(&sock->closed, &(bool){ false },
true)) {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
isc__nm_incstats(sock->mgr, sock->statsindex[STATID_CLOSE]);
if (!atomic_compare_exchange_strong(&sock->closed, &(bool){ false },
true)) {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
isc__nm_incstats(sock->mgr, sock->statsindex[STATID_CLOSE]);
}
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
return (ISC_R_SUCCESS);
}
case EAGAIN:
return (ISC_R_LOCKBUSY);
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
case 0:
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
v3 ^= b;
case 0:
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
v3 ^= b;
isc_sockaddr_any6(sockaddr);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
sockaddr->type.sin6.sin6_port = htons(port);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
ISC_LINK_INIT(sockaddr, link);
}
}
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
break;
#endif /* ifdef IPV6_TCLASS */
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
if (sendmsg(s, &msg, 0) < 0) {
case isc_sockettype_raw:
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
sock->statsindex = rawstatsindex;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
/* Nothing's changed; soldier on */
static inline void
atomic_store_abort() {
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
static inline int8_t
atomic_load_abort() {
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
static inline int8_t
atomic_add_abort() {
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
static inline int8_t
atomic_and_abort() {
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
static inline int8_t
atomic_or_abort() {
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
static inline bool
atomic_compare_exchange_abort() {
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
static inline bool
atomic_exchange_abort() {
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
dst->zone = ((struct sockaddr_in6 *)src)->sin6_scope_id;
break;
default:
- INSIST(0);
+ UNREACHABLE();
ISC_UNREACHABLE();
}
}
}
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
}
return (subtype);
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
} else if ((*flagp & CFG_ADDR_V6OK) != 0) {
isc_netaddr_any6(&netaddr);
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
for (;;) {
} else if ((*flagp & CFG_ADDR_V6OK) != 0) {
cfg_print_cstr(pctx, "<ipv6_address>");
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
cfg_print_cstr(pctx, " | * ) [ port ( <integer> | * ) ] ) | "
"( [ [ address ] ( ");
} else if ((*flagp & CFG_ADDR_V6OK) != 0) {
cfg_print_cstr(pctx, "<ipv6_address>");
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
cfg_print_cstr(pctx, " | * ) ] port ( <integer> | * ) ) )"
" [ dscp <integer> ]");
/* no zone type is specified for these */
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
for (clause = clauses; clause->name != NULL; clause++) {
return (tupleobj->value.tuple[i]);
}
}
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
isc_result_t
} else if (result == ISC_R_NOTFOUND) {
/* do nothing */
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
}
isc_netaddr_any6(na);
return (ISC_R_SUCCESS);
} else {
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
} else {
if ((flags & (CFG_ADDR_V4OK | CFG_ADDR_V4PREFIXOK)) != 0) {
addrlen = 128;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
expectprefix = (result == ISC_R_IPV4PREFIX);
CHECK(cfg_peektoken(pctx, 0));
ISC_MIN((int)respsize / 16, 256));
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
} else {
#ifdef HAVE_DNSTAP
ISC_MIN((int)respsize / 16, 256));
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
memmove(addr, &client->ecs.addr.type, addrl);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
isc_buffer_init(&buf, ecs, sizeof(ecs));
inputlen = 32;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
isc_siphash24(secret, input, inputlen, digest);
digest);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
for (i = 0; i < 8; i++) {
digest[i] ^= digest[i + 8];
}
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
ISC_MIN((int)reqsize / 16, 18));
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
} else {
switch (isc_sockaddr_pf(&client->peeraddr)) {
ISC_MIN((int)reqsize / 16, 18));
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
}
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
/*
suffix = &rpz->nsip;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
/*
recursed = true;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
do {
trig = LIBRPZ_TRIG_NSDNAME;
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
dns_name_toregion(trig_name, &r);
qctx->want_restart = true;
return (ISC_R_COMPLETE);
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
/*
dns64_ttl(qctx->db, qctx->version);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
SAVE(qctx->client->query.dns64_aaaa, qctx->rdataset);
case NS_SORTLISTTYPE_NONE:
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
}
printf("bad input format: %02x\n", c);
exit(3);
- /* NOTREACHED */
+ UNREACHABLE();
}
isc_result_t
test->id.description, test->id.lineno);
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
/*
mnemonic = "IXFR";
break;
default:
- INSIST(0);
- ISC_UNREACHABLE();
+ UNREACHABLE();
}
ns_client_log(client, DNS_LOGCATEGORY_XFER_OUT, NS_LOGMODULE_XFER_OUT,