@@ -2448,8 +2448,8 @@ Dhcpv6Srv::createNameChangeRequests(const Pkt6Ptr& answer,
2448
2448
2449
2449
// / @todo IA_NA may contain multiple addresses. We should process
2450
2450
// / each address individually. Currently we only process the first one.
2451
- Option6IAAddrPtr iaaddr = boost::static_pointer_cast
2452
- < Option6IAAddr>(ia_ctx.ia_rsp_ ->getOption (D6O_IAADDR));
2451
+ Option6IAAddrPtr iaaddr = boost::static_pointer_cast<
2452
+ Option6IAAddr>(ia_ctx.ia_rsp_ ->getOption (D6O_IAADDR));
2453
2453
2454
2454
// We need an address to create a name-to-address mapping.
2455
2455
// If address is missing for any reason, go to the next IA.
@@ -2480,7 +2480,7 @@ Dhcpv6Srv::createNameChangeRequests(const Pkt6Ptr& answer,
2480
2480
// The address is the same so this must be renewal. If we're not
2481
2481
// always updating on renew, then we only renew if DNS info has
2482
2482
// changed.
2483
- if (l->reuseable_valid_lft_ ||
2483
+ if (( l->reuseable_valid_lft_ > 0 ) ||
2484
2484
(!ctx.getDdnsParams ()->getUpdateOnRenew () &&
2485
2485
(l->hostname_ == opt_fqdn->getDomainName () &&
2486
2486
l->fqdn_fwd_ == do_fwd && l->fqdn_rev_ == do_rev))) {
@@ -2667,7 +2667,6 @@ Dhcpv6Srv::assignIA_NA(const Pkt6Ptr& query,
2667
2667
} else {
2668
2668
lease->valid_lft_ = lease->reuseable_valid_lft_ ;
2669
2669
lease->preferred_lft_ = lease->reuseable_preferred_lft_ ;
2670
- std::cout << __LINE__ << " flagged as resuseable: " << lease->addr_ .toText () << std::endl;
2671
2670
ctx.currentIA ().reused_leases_ .push_back (lease);
2672
2671
LOG_INFO (lease6_logger, DHCP6_LEASE_REUSE)
2673
2672
.arg (query->getLabel ())
0 commit comments