mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 05:55:28 +00:00
[#3074] io address comment correction
This commit is contained in:
@@ -62,8 +62,7 @@ IOAddress
|
|||||||
IOAddress::fromBytes(short family, const uint8_t* data) {
|
IOAddress::fromBytes(short family, const uint8_t* data) {
|
||||||
if (data == NULL) {
|
if (data == NULL) {
|
||||||
isc_throw(BadValue, "NULL pointer received.");
|
isc_throw(BadValue, "NULL pointer received.");
|
||||||
} else
|
} else if ((family != AF_INET) && (family != AF_INET6)) {
|
||||||
if ( (family != AF_INET) && (family != AF_INET6) ) {
|
|
||||||
isc_throw(BadValue, "Invalid family type. Only AF_INET and AF_INET6"
|
isc_throw(BadValue, "Invalid family type. Only AF_INET and AF_INET6"
|
||||||
<< "are supported");
|
<< "are supported");
|
||||||
}
|
}
|
||||||
|
@@ -89,7 +89,7 @@ public:
|
|||||||
///
|
///
|
||||||
/// This constructor is intended to be used when constructing
|
/// This constructor is intended to be used when constructing
|
||||||
/// IPv4 address out of uint32_t type. Passed value must be in
|
/// IPv4 address out of uint32_t type. Passed value must be in
|
||||||
/// network byte order
|
/// host byte order.
|
||||||
///
|
///
|
||||||
/// @param v4address IPv4 address represented by uint32_t
|
/// @param v4address IPv4 address represented by uint32_t
|
||||||
IOAddress(uint32_t v4address);
|
IOAddress(uint32_t v4address);
|
||||||
|
Reference in New Issue
Block a user