2269. [func] tmark
Extended kea-dhcp4 and kea-dhcp6 lenient option parsing
- to drop options which contain malformed FQDNs such as
- DHO_V4_LOST_SERVER and D6O_V6_ACCESS_DOMAIN.
+ to drop FQDN options such as v4-lost and v6-access-domain
+ if they contain malformed FQDNs.
(Gitlab #3492)
Kea 2.7.1 (development) released on July 31, 2024
-2268. [build] ravan
+2268. [build] razvan
The library version numbers have been bumped up for the Kea 2.7.1
development release.
(Gitlab #3515)
sub_options_ = Element::create(content);
relay_agent_info_->set("sub-options", sub_options_);
- EXPECT_THROW(srv_.recoverStashedAgentOption(query_), InvalidOptionValue);
+ EXPECT_THROW(srv_.recoverStashedAgentOption(query_), OptionParseError);
EXPECT_FALSE(query_->inClass("STASH_AGENT_OPTIONS"));
}
} catch (const SkipRemainingOptionsError&) {
throw;
} catch (const std::exception& ex) {
- isc_throw(OptionParseError, "opt_type: " << (uint16_t)(opt_type)
- << ", opt_len " << (uint16_t)(opt_len)
+ isc_throw(OptionParseError, "opt_type: " << static_cast<uint16_t>(opt_type)
+ << ", opt_len " << static_cast<uint16_t>(opt_len)
<< " error: " << ex.what());
}
}
} catch (const std::exception& ex) {
if (Option::lenient_parsing_) {
isc_throw(SkipThisOptionError, "failed to read "
- "partial domain-name from wire format");
+ "domain-name from wire format: "
+ << ex.what());
}
throw;
DHO_DOMAIN_SEARCH, // invalid FQDN list
2, 2, 56,
DHO_TIME_OFFSET, // Valid int option
- 4,0,0,0,77
+ 4, 0, 0, 0, 77
};
// List of parsed options will be stored here.