I am trying to compile grpc v 1.3.0 with c-ares v 1.9.1. In this cares
version ares_inet_ntop symbol is replaced with inet_ntop(if HAVE_INET_NTOP
macro is defined). I compiled grpc with this patch:
@@ -154,7 +154,9 @@
char output[INET6_ADDRSTRLEN];
memcpy(&addr->sin6_addr, hostent->h_addr_list[i - prev_naddr],
sizeof(struct in6_addr));
- ares_inet_ntop(AF_INET6, &addr->sin6_addr, output,
INET6_ADDRSTRLEN);
+ inet_ntop(AF_INET6, &addr->sin6_addr, output, INET6_ADDRSTRLEN);
gpr_log(GPR_DEBUG,
"c-ares resolver gets a AF_INET6 result: \n"
" addr: %s\n port: %s\n sin6_scope_id: %d\n",
@@ -169,7 +171,7 @@
addr->sin_port = strhtons(r->port);
char output[INET_ADDRSTRLEN];
- ares_inet_ntop(AF_INET, &addr->sin_addr, output, INET_ADDRSTRLEN);
+ inet_ntop(AF_INET, &addr->sin_addr, output, INET_ADDRSTRLEN);
gpr_log(GPR_DEBUG,
"c-ares resolver gets a AF_INET result: \n"
" addr: %s\n port: %s\n",
Will this change regress any grpc functionality? Thanks!
--
You received this message because you are subscribed to the Google Groups
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/086adcfe-2973-4bda-8ab8-c1b5118d1061%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.