diff options
author | Thomas Markwalder <tmark@isc.org> | 2022-04-26 21:07:10 +0200 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2022-04-26 21:07:10 +0200 |
commit | 3b0baa371b4b5265835216a8b84a27c6bafd96eb (patch) | |
tree | 8d2d85052bd243f37bdf8ff29b56051893d05e0f | |
parent | [#2390] Another Changelog typo (diff) | |
download | kea-3b0baa371b4b5265835216a8b84a27c6bafd96eb.tar.xz kea-3b0baa371b4b5265835216a8b84a27c6bafd96eb.zip |
[#2392] Fixed kea-dhcp6 not updating outbound FQDN
Added Changelog
src/bin/dhcp6/dhcp6_srv.cc
Dhcpv6Srv::processClientFqdn() - changed to update the outbound FQDN
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/bin/dhcp6/dhcp6_srv.cc | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,11 @@ Kea 2.1.5 (development) released on Apr 27, 2022 +2015. [bug] tmark + Fixed an issue in kea-dhcp6 that was causing the server + not to update the FQDN option in outbound responses when + the ddsn-tuning hook lib calculates a new host name. + (Gitlba #2392) + 2014. [bug] tmark Correct an issue that was causing reconfigure to fail in kea-dhcp4 and kea-dhcp6 when using ddns-tuning hook diff --git a/src/bin/dhcp6/dhcp6_srv.cc b/src/bin/dhcp6/dhcp6_srv.cc index 86e6b0765a..11fc182cd1 100644 --- a/src/bin/dhcp6/dhcp6_srv.cc +++ b/src/bin/dhcp6/dhcp6_srv.cc @@ -1981,7 +1981,7 @@ Dhcpv6Srv::processClientFqdn(const Pkt6Ptr& question, const Pkt6Ptr& answer, .arg(ctx.rev_dns_update_).arg(hook_rev_dns_update); // Update the FQDN option in the response. - fqdn_resp = boost::dynamic_pointer_cast<Option6ClientFqdn>(question->getOption(D6O_CLIENT_FQDN)); + fqdn_resp = boost::dynamic_pointer_cast<Option6ClientFqdn>(answer->getOption(D6O_CLIENT_FQDN)); if (fqdn) { fqdn_resp->setDomainName(hook_hostname, Option6ClientFqdn::FULL); } |