Option6IAAddrPtr iaaddr = boost::dynamic_pointer_cast<Option6IAAddr>(it->second);
if (!iaaddr) {
// That's weird. Option code was ok, but the object type was not.
- // As we use Dhcpv6Srv::unpackOptions() that is guaranteed to use
- // Option6IAAddr for D6O_IAADDR, this should never happen. The only
- // case would be with badly mis-implemented hook libraries that
- // insert invalid option objects. There's no way to protect against
- // this.
+ // This should never happen. The only case would be with badly
+ // mis-implemented hook libraries that insert invalid option objects.
+ // There's no way to protect against this.
continue;
}
- ctx.hints_.push_back(make_pair(iaaddr->getAddress(), 128));
+ ctx.currentIA().addHint(iaaddr->getAddress());
}
Lease6Collection leases = alloc_engine_->renewLeases6(ctx);