replace getnameinfo with inet_ntop in v6 string formatting
authorEli Lindsey <elindsey@fb.com>
Fri, 14 Jul 2017 13:07:12 +0000 (06:07 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 14 Jul 2017 13:24:33 +0000 (06:24 -0700)
commita45eee721bb6158fd26982dd815e3efe962e1c8c
treef9a5a35adc67d9ad0c1ee76be03b34caa6ab70bc
parent46a851f49b64fe44c7643eec03e8b16096d9837d
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.

Reviewed By: yangchi

Differential Revision: D5415477

fbshipit-source-id: 67853a85db6517d374d94c8261e56400f4c00fc5
folly/IPAddressV6.cpp