From: Marcin Siodelski Date: Fri, 24 Jan 2014 13:04:03 +0000 (+0100) Subject: [3295] Generate NCR for the first address handed to the client. X-Git-Tag: bind10-1.2.0beta1-release~83^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=05755b228e2dee87eca0deb10a913bce60edf135;p=thirdparty%2Fkea.git [3295] Generate NCR for the first address handed to the client. --- diff --git a/src/bin/dhcp6/dhcp6_srv.cc b/src/bin/dhcp6/dhcp6_srv.cc index 490cce7016..4663f30acf 100644 --- a/src/bin/dhcp6/dhcp6_srv.cc +++ b/src/bin/dhcp6/dhcp6_srv.cc @@ -1087,8 +1087,8 @@ Dhcpv6Srv::createNameChangeRequests(const Pkt6Ptr& answer) { OptionCollection answer_ias = answer->getOptions(D6O_IA_NA); for (OptionCollection::const_iterator answer_ia = answer_ias.begin(); answer_ia != answer_ias.end(); ++answer_ia) { - // @todo IA_NA may contain multiple addresses. We should process - // each address individually. Currently we get only one. + /// @todo IA_NA may contain multiple addresses. We should process + /// each address individually. Currently we get only one. Option6IAAddrPtr iaaddr = boost::static_pointer_cast< Option6IAAddr>(answer_ia->second->getOption(D6O_IAADDR)); // We need an address to create a name-to-address mapping. @@ -1114,6 +1114,12 @@ Dhcpv6Srv::createNameChangeRequests(const Pkt6Ptr& answer) { LOG_DEBUG(dhcp6_logger, DBG_DHCP6_DETAIL, DHCP6_DDNS_CREATE_ADD_NAME_CHANGE_REQUEST).arg(ncr.toText()); + + /// @todo Currently we create NCR with the first IPv6 address that + /// is carried in one of the IA_NAs. In the future, the NCR API should + /// be extended to map multiple IPv6 addresses to a single FQDN. + /// In such case, this return statement will be removed. + return; } }