From: Tomek Mrugalski Date: Wed, 12 Oct 2011 12:43:37 +0000 (+0200) Subject: [1186] Part 6 of review changes. X-Git-Tag: perftcpdns_before_epoll~86^2~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5d29c73bcd554111ada4dec49f61cfde497cb6c;p=thirdparty%2Fkea.git [1186] Part 6 of review changes. - Added V6ADDRESS_LEN and V4ADDRESS_LEN - Removed unnecessary parameters to Option constructors - Many missing Doxygen comments added - using sizeof(uintXX_t) instead of 2 and 4 in pack()/unpack() - Many other smaller changes. --- diff --git a/src/lib/asiolink/io_address.h b/src/lib/asiolink/io_address.h index fe20c2765b..9fac580b8f 100644 --- a/src/lib/asiolink/io_address.h +++ b/src/lib/asiolink/io_address.h @@ -29,6 +29,12 @@ namespace isc { namespace asiolink { + /// Defines length of IPv6 address. + const static size_t V6ADDRESS_LEN = 16; + + /// Defines length of IPv4 address. + const static size_t V4ADDRESS_LEN = 4; + /// \brief The \c IOAddress class represents an IP addresses (version /// agnostic) /// diff --git a/src/lib/dhcp/libdhcp.cc b/src/lib/dhcp/libdhcp.cc index be4c163107..15cccdd0b7 100644 --- a/src/lib/dhcp/libdhcp.cc +++ b/src/lib/dhcp/libdhcp.cc @@ -55,8 +55,7 @@ LibDHCP::unpackOptions6(const boost::shared_array buf, case D6O_IA_NA: case D6O_IA_PD: // cout << "Creating Option6IA" << endl; - opt = boost::shared_ptr