IPAddressV(46) methods to convert IPs to their inverse in-addr.arpa / ip6.arpa repres...
authorAngelo Failla <pallotron@fb.com>
Wed, 12 Apr 2017 04:13:21 +0000 (21:13 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 12 Apr 2017 04:22:24 +0000 (21:22 -0700)
commitb41eb6f0aa3c97a31df39cfcacd6a1a46ed976b6
tree350c85e8b8106953066c4864e096bc8afc785da1
parent19e3e9fe724a363e342e92a5b08378900d6ab539
IPAddressV(46) methods to convert IPs to their inverse in-addr.arpa / ip6.arpa representation

Summary: As per the title, this adds methods to convert IPv(46) to their inverse representation, this is useful for applications that needs to calculate the inverse arpa representation, typically used when making PTR DNS requests.

Reviewed By: Orvid

Differential Revision: D4867502

fbshipit-source-id: 190e5c309b17a633e1c97b077f212ab38725860f
folly/IPAddressV4.cpp
folly/IPAddressV4.h
folly/IPAddressV6.cpp
folly/IPAddressV6.h
folly/test/IPAddressTest.cpp