diff options
author | 2017-07-21 15:40:04 +0200 | |
---|---|---|
committer | 2017-07-24 16:38:07 +0200 | |
commit | 3180dfafccffee5a50f821a97a289efe89a438a5 (patch) | |
tree | 965e7923d71d1f0ee331a8e3fbc736a079d14325 /src/core/ext/filters/client_channel/resolver | |
parent | 8f442604111f97d1a38e8672ed3c21aceb25fa6d (diff) |
C-Ares: Remove Internal Header
The `nameser.h` header is a C-Ares internal header which is not
installed with C-Ares.
This fixes build errors with
cmake -DgRPC_CARES_PROVIDER=package ..
Diffstat (limited to 'src/core/ext/filters/client_channel/resolver')
-rw-r--r-- | src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.c b/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.c index 9065e33613..473f6b65f6 100644 --- a/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.c +++ b/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.c @@ -33,7 +33,6 @@ #include <grpc/support/string_util.h> #include <grpc/support/time.h> #include <grpc/support/useful.h> -#include <nameser.h> #include "src/core/ext/filters/client_channel/parse_address.h" #include "src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h" @@ -358,6 +357,9 @@ static grpc_ares_request *grpc_dns_lookup_ares_impl( grpc_ares_request_ref(r); char *service_name; gpr_asprintf(&service_name, "_grpclb._tcp.%s", host); + // see: RFC 1035, section 3.2.4. CLASS values + const int ns_c_in = 1; // internet + const int ns_t_srv = 33; // SRV record (RFC 2782) ares_query(*channel, service_name, ns_c_in, ns_t_srv, on_srv_query_done_cb, r); gpr_free(service_name); |