2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 13:37:55 +00:00

[#3074] io address comment correction

This commit is contained in:
Piotrek Zadroga 2024-01-09 14:18:28 +01:00
parent 6ab11b941f
commit 6f73965d0f
2 changed files with 2 additions and 3 deletions

View File

@ -62,8 +62,7 @@ IOAddress
IOAddress::fromBytes(short family, const uint8_t* data) {
if (data == NULL) {
isc_throw(BadValue, "NULL pointer received.");
} else
if ( (family != AF_INET) && (family != AF_INET6) ) {
} else if ((family != AF_INET) && (family != AF_INET6)) {
isc_throw(BadValue, "Invalid family type. Only AF_INET and AF_INET6"
<< "are supported");
}

View File

@ -89,7 +89,7 @@ public:
///
/// This constructor is intended to be used when constructing
/// 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
IOAddress(uint32_t v4address);