23 AdaptorHost::STD_CHARACTERS =
24 "0123456789@ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-.@_";
26 AdaptorHost::AdaptorHost() {
29 AdaptorHost::~AdaptorHost() {
38 const string&
id = flex_id->stringValue();
44 if (
id.find_first_not_of(STD_CHARACTERS) == string::npos) {
50 binary.assign(
id.begin(),
id.end());
56 for (vector<uint8_t>::const_iterator it = binary.begin();
57 it != binary.end(); ++it) {
61 tmp << setw(2) << setfill('0') << static_cast<unsigned int>(*it);
64 host->set(
"flex-id", Element::create(tmp.str()));
boost::shared_ptr< Element > ElementPtr
boost::shared_ptr< const Element > ConstElementPtr
std::vector< uint8_t > quotedStringToBinary(const std::string "ed_string)
Converts a string in quotes into vector.
Defines the logger used by the top-level component of kea-dhcp-ddns.