From: Marcin Siodelski Date: Mon, 26 Nov 2012 19:32:27 +0000 (+0100) Subject: [2312] Use IOAddress::fromBytes intead of IOAddress::from_bytes. X-Git-Tag: bind10-1.0.0-beta-release~46^2~18^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f0e9452fd3cc94ef44352839e91e2a4a1d91c55;p=thirdparty%2Fkea.git [2312] Use IOAddress::fromBytes intead of IOAddress::from_bytes. --- diff --git a/src/lib/dhcp/option_data_types.cc b/src/lib/dhcp/option_data_types.cc index 1c86740cf6..69da6b9a9b 100644 --- a/src/lib/dhcp/option_data_types.cc +++ b/src/lib/dhcp/option_data_types.cc @@ -44,16 +44,16 @@ OptionDataTypeUtil::readAddress(const std::vector& 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);