types: Migrate to stdplus ip
Change-Id: I777aa701204b0c4dbe5f0088cc2e6a4deb4f5d15
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/util.hpp b/src/util.hpp
index 7736f67..abfd8eb 100644
--- a/src/util.hpp
+++ b/src/util.hpp
@@ -23,14 +23,14 @@
* @param[in] family - The address family of the buf
* @param[in] buf - The network byte order address
*/
-constexpr InAddrAny addrFromBuf(int family, std::string_view buf)
+constexpr stdplus::InAnyAddr addrFromBuf(int family, std::string_view buf)
{
switch (family)
{
case AF_INET:
- return stdplus::raw::copyFromStrict<in_addr>(buf);
+ return stdplus::raw::copyFromStrict<stdplus::In4Addr>(buf);
case AF_INET6:
- return stdplus::raw::copyFromStrict<in6_addr>(buf);
+ return stdplus::raw::copyFromStrict<stdplus::In6Addr>(buf);
}
throw std::invalid_argument("Unrecognized family");
}