if (lookup->udpsize > 0 || lookup->dnssec ||
lookup->edns > -1 || lookup->ecs_addr != NULL)
{
- dns_ednsopt_t opts[DNS_OPT_EDNSOPTIONS];
+ dns_ednsopt_t opts[DNS_EDNSOPTIONS];
int i = 0;
if (lookup->udpsize == 0)
lookup->edns = 0;
if (lookup->nsid) {
- INSIST(i < DNS_OPT_EDNSOPTIONS);
+ INSIST(i < DNS_EDNSOPTIONS);
opts[i].code = DNS_OPT_NSID;
opts[i].length = 0;
opts[i].value = NULL;
/* Round up prefix len to a multiple of 8 */
addrl = (prefixlen + 7) / 8;
- INSIST(i < DNS_OPT_EDNSOPTIONS);
+ INSIST(i < DNS_EDNSOPTIONS);
opts[i].code = DNS_OPT_CLIENT_SUBNET;
opts[i].length = addrl + 4;
check_result(result, "isc_buffer_allocate");
#ifdef ISC_PLATFORM_USESIT
if (lookup->sit) {
- INSIST(i < DNS_OPT_EDNSOPTIONS);
+ INSIST(i < DNS_EDNSOPTIONS);
opts[i].code = DNS_OPT_SIT;
if (lookup->sitvalue != NULL) {
isc_buffer_t b;
dns_view_t *view;
dns_resolver_t *resolver;
isc_uint16_t udpsize;
- dns_ednsopt_t ednsopts[DNS_OPT_EDNSOPTIONS];
+ dns_ednsopt_t ednsopts[DNS_EDNSOPTIONS];
int count = 0;
unsigned int flags;
} else
nsidp = ns_g_server->server_id;
- INSIST(count < DNS_OPT_EDNSOPTIONS);
+ INSIST(count < DNS_EDNSOPTIONS);
ednsopts[count].code = DNS_OPT_NSID;
ednsopts[count].length = strlen(nsidp);
ednsopts[count].value = (unsigned char *)nsidp;
compute_sit(client, now, nonce, &buf);
- INSIST(count < DNS_OPT_EDNSOPTIONS);
+ INSIST(count < DNS_EDNSOPTIONS);
ednsopts[count].code = DNS_OPT_SIT;
ednsopts[count].length = SIT_SIZE;
ednsopts[count].value = sit;
#define DNS_OPT_SIT 65001 /*%< SIT opt code */
/*%< The number of EDNS options we know about. */
-#define DNS_OPT_EDNSOPTIONS 3
+#define DNS_EDNSOPTIONS 3
#define DNS_MESSAGE_REPLYPRESERVE (DNS_MESSAGEFLAG_RD|DNS_MESSAGEFLAG_CD)
#define DNS_MESSAGEEXTFLAG_REPLYPRESERVE (DNS_MESSAGEEXTFLAG_DO)
isc_boolean_t cleanup_cctx = ISC_FALSE;
isc_boolean_t secure_domain;
isc_boolean_t connecting = ISC_FALSE;
- dns_ednsopt_t ednsopts[DNS_OPT_EDNSOPTIONS];
+ dns_ednsopt_t ednsopts[DNS_EDNSOPTIONS];
unsigned ednsopt = 0;
isc_uint16_t hint = 0, udpsize = 0; /* No EDNS */
#endif
}
if (reqnsid) {
- INSIST(ednsopt < DNS_OPT_EDNSOPTIONS);
+ INSIST(ednsopt < DNS_EDNSOPTIONS);
ednsopts[ednsopt].code = DNS_OPT_NSID;
ednsopts[ednsopt].length = 0;
ednsopts[ednsopt].value = NULL;
}
#ifdef ISC_PLATFORM_USESIT
if (reqsit) {
- INSIST(ednsopt < DNS_OPT_EDNSOPTIONS);
+ INSIST(ednsopt < DNS_EDNSOPTIONS);
ednsopts[ednsopt].code = DNS_OPT_SIT;
ednsopts[ednsopt].length = (isc_uint16_t)
dns_adb_getsit(fctx->adb,