summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcp/option6_addrlst.cc
diff options
context:
space:
mode:
authorTomek Mrugalski <tomasz@isc.org>2011-11-29 19:15:17 +0100
committerTomek Mrugalski <tomasz@isc.org>2011-11-29 19:15:17 +0100
commit537af1705fc5c1695b4b601571f65ead81dc1289 (patch)
tree85c8899bc78a323a7a90e4253cd0606fcbd177d0 /src/lib/dhcp/option6_addrlst.cc
parent[1350] Support for DHCPv4 END option added. (diff)
downloadkea-537af1705fc5c1695b4b601571f65ead81dc1289.tar.xz
kea-537af1705fc5c1695b4b601571f65ead81dc1289.zip
[1350] Changes after review:
- len() returns now uint16_t type - using pre-increment intead of post-increment - using distance() function - moved some simple implementation to header
Diffstat (limited to 'src/lib/dhcp/option6_addrlst.cc')
-rw-r--r--src/lib/dhcp/option6_addrlst.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/dhcp/option6_addrlst.cc b/src/lib/dhcp/option6_addrlst.cc
index 24d02a608c..9be381012e 100644
--- a/src/lib/dhcp/option6_addrlst.cc
+++ b/src/lib/dhcp/option6_addrlst.cc
@@ -132,7 +132,7 @@ std::string Option6AddrLst::toText(int indent /* =0 */) {
return tmp.str();
}
-unsigned short Option6AddrLst::len() {
+uint16_t Option6AddrLst::len() {
return (OPTION6_HDR_LEN + addrs_.size()*16);
}