From 2987c3d82fb6586c81f5c82246bfd1a9c0a0381d Mon Sep 17 00:00:00 2001 From: Marcin Siodelski Date: Thu, 19 May 2016 19:45:46 +0200 Subject: [4317] Added client-id as supported host identifier. --- src/lib/dhcpsrv/host.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lib/dhcpsrv/host.cc') diff --git a/src/lib/dhcpsrv/host.cc b/src/lib/dhcpsrv/host.cc index ac5b9f7660..3c54e188b2 100644 --- a/src/lib/dhcpsrv/host.cc +++ b/src/lib/dhcpsrv/host.cc @@ -136,6 +136,9 @@ Host::getIdentifierType(const std::string& identifier_name) { } else if (identifier_name == "circuit-id") { return (IDENT_CIRCUIT_ID); + } else if (identifier_name == "client-id") { + return (IDENT_CLIENT_ID); + } else { isc_throw(isc::BadValue, "invalid client identifier type '" << identifier_name << "'"); @@ -176,6 +179,9 @@ Host::getIdentifierAsText(const IdentifierType& type, const uint8_t* value, case IDENT_CIRCUIT_ID: s << "circuit-id"; break; + case IDENT_CLIENT_ID: + s << "client-id"; + break; default: // This should never happen actually, unless we add new identifier // and forget to add a case for it above. @@ -198,6 +204,9 @@ Host::getIdentifierName(const IdentifierType& type) { case Host::IDENT_CIRCUIT_ID: return ("circuit-id"); + case Host::IDENT_CLIENT_ID: + return ("client-id"); + default: ; } -- cgit v1.2.3