replace getnameinfo with inet_ntop in v6 string formatting
authorEli Lindsey <elindsey@fb.com>
Wed, 12 Jul 2017 23:36:57 +0000 (16:36 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 12 Jul 2017 23:42:45 +0000 (16:42 -0700)
commit0d38f5770ebf7e3ec987c55da719c29c2be3f3f2
tree99e957f0a349467bbc388e1313946f03bc4e2875
parent604c1b158ceb01bff6be49dc8e1b04519a1c8fb7
replace getnameinfo with inet_ntop in v6 string formatting

Summary: Some implementations of getnameinfo are triggering reverse DNS lookups despite us specifying NI_NUMERICHOST. Avoid all that by instead producing our string representations of v6 addresses manually via inet_ntop and if_indextoname.

Differential Revision: D5408572

fbshipit-source-id: 69b0171a9a54738045f9041381aea5512b17eb13
folly/IPAddressV6.cpp