21 AdaptorHost::STD_CHARACTERS =
22 "0123456789@ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-.@_";
24 AdaptorHost::AdaptorHost() {
27 AdaptorHost::~AdaptorHost() {
36 const string&
id = flex_id->stringValue();
42 if (
id.find_first_not_of(STD_CHARACTERS) == string::npos) {
48 binary.assign(
id.begin(),
id.end());
54 for (vector<uint8_t>::const_iterator it = binary.begin();
55 it != binary.end(); ++it) {
59 tmp << setw(2) << setfill('0') << static_cast<unsigned int>(*it);
62 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.