]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
s/DNS_EDNSOPTIONS/DNS_EDNSOPTIONS/
authorMark Andrews <marka@isc.org>
Thu, 20 Feb 2014 03:00:54 +0000 (14:00 +1100)
committerMark Andrews <marka@isc.org>
Thu, 20 Feb 2014 03:00:54 +0000 (14:00 +1100)
bin/dig/dighost.c
bin/named/client.c
lib/dns/include/dns/message.h
lib/dns/resolver.c

index 767a091cf7311a84b3e8bad8dc301dd107bb3c13..e6bb08df3192c7b2c46ec13c74a377c12a68abf4 100644 (file)
@@ -2349,7 +2349,7 @@ setup_lookup(dig_lookup_t *lookup) {
        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)
@@ -2358,7 +2358,7 @@ setup_lookup(dig_lookup_t *lookup) {
                        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;
@@ -2379,7 +2379,7 @@ setup_lookup(dig_lookup_t *lookup) {
                        /* 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");
@@ -2408,7 +2408,7 @@ setup_lookup(dig_lookup_t *lookup) {
 
 #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;
index 19c296f377d5cdca9b54d37b25216a8623cdc7e5..52d813bca8d8700b4f75d594b6e3d60a473c2e23 100644 (file)
@@ -1377,7 +1377,7 @@ client_addopt(ns_client_t *client) {
        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;
 
@@ -1406,7 +1406,7 @@ client_addopt(ns_client_t *client) {
                } 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;
@@ -1425,7 +1425,7 @@ client_addopt(ns_client_t *client) {
 
                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;
index 72b70719fde2e2d5d60cad3482923d107fe86649..a6cc1b4241d82aa6d50fda2a48be4f016025c36b 100644 (file)
 #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)
index 4b87f5e4a860f002e67ac4bf5684dc653fe196fe..0b421ca703761a4d6f6bbabc46db8e2d0e5bb8cb 100644 (file)
@@ -1837,7 +1837,7 @@ resquery_send(resquery_t *query) {
        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 */
 
@@ -2065,7 +2065,7 @@ resquery_send(resquery_t *query) {
 #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;
@@ -2073,7 +2073,7 @@ resquery_send(resquery_t *query) {
                        }
 #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,