]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2312] Use IOAddress::fromBytes intead of IOAddress::from_bytes.
authorMarcin Siodelski <marcin@isc.org>
Mon, 26 Nov 2012 19:32:27 +0000 (20:32 +0100)
committerMarcin Siodelski <marcin@isc.org>
Mon, 26 Nov 2012 19:32:27 +0000 (20:32 +0100)
src/lib/dhcp/option_data_types.cc

index 1c86740cf6171d9a60609ff79450954d86c1e6f1..69da6b9a9b72ac14b66a025116a1dce8c6fc38d9 100644 (file)
@@ -44,16 +44,16 @@ OptionDataTypeUtil::readAddress(const std::vector<uint8_t>& buf,
     using namespace isc::asiolink;
     if (family == AF_INET) {
         if (buf.size() < V4ADDRESS_LEN) {
-            isc_throw(BadDataTypeCast, "unavle to read data from the buffer as"
+            isc_throw(BadDataTypeCast, "unable to read data from the buffer as"
                       << " IPv4 address. Invalid buffer size: " << buf.size());
         }
-        address = IOAddress::from_bytes(AF_INET, &buf[0]);
+        address = IOAddress::fromBytes(AF_INET, &buf[0]);
     } else if (buf.size() == V6ADDRESS_LEN) {
         if (buf.size() < V6ADDRESS_LEN) {
-            isc_throw(BadDataTypeCast, "unavle to read data from the buffer as"
+            isc_throw(BadDataTypeCast, "unable to read data from the buffer as"
                       << " IPv6 address. Invalid buffer size: " << buf.size());
         }
-        address = IOAddress::from_bytes(AF_INET6, &buf[0]);
+        address = IOAddress::fromBytes(AF_INET6, &buf[0]);
     } else {
         isc_throw(BadDataTypeCast, "unable to read data from the buffer as"
                   "IP address. Invalid family: " << family);