Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ipprefix cast operators for ipaddr [2/n] (facebookincubator#11481)
Summary: Support casting ipprefix -> ipaddress, and ipaddress -> ipprefix. We just need one new helper function, tryIpPrefixLengthFromIPAddressType, which takes in int128_t, gets the ippaddress, and then we check if the ippaddress is ipv4 or ipv6 mapped. We return 32 for ipv4 and 128 for ipv6 mapped. Also applies suggestion from https://github.com/facebookincubator/velox/pull/11309/files Differential Revision: D65641994
- Loading branch information