diff options
Diffstat (limited to 'src/lib/dhcp/option6_ia.cc')
-rw-r--r-- | src/lib/dhcp/option6_ia.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/dhcp/option6_ia.cc b/src/lib/dhcp/option6_ia.cc index ccb4d82425..bfcce7e244 100644 --- a/src/lib/dhcp/option6_ia.cc +++ b/src/lib/dhcp/option6_ia.cc @@ -48,7 +48,7 @@ Option6IA::Option6IA(uint16_t type, OptionBufferConstIter begin, unpack(begin, end); } -void Option6IA::pack(isc::util::OutputBuffer& buf) { +void Option6IA::pack(isc::util::OutputBuffer& buf) const { buf.writeUint16(type_); buf.writeUint16(len() - OPTION6_HDR_LEN); buf.writeUint32(iaid_); @@ -76,7 +76,7 @@ void Option6IA::unpack(OptionBufferConstIter begin, unpackOptions(OptionBuffer(begin, end)); } -std::string Option6IA::toText(int indent) { +std::string Option6IA::toText(int indent) const { stringstream output; switch(getType()) { @@ -96,13 +96,13 @@ std::string Option6IA::toText(int indent) { return (output.str()); } -uint16_t Option6IA::len() { +uint16_t Option6IA::len() const { uint16_t length = OPTION6_HDR_LEN /*header (4)*/ + OPTION6_IA_LEN /* option content (12) */; // length of all suboptions - for (OptionCollection::iterator it = options_.begin(); + for (OptionCollection::const_iterator it = options_.begin(); it != options_.end(); ++it) { length += (*it).second->len(); |