diff options
author | Marcin Siodelski <marcin@isc.org> | 2016-05-19 19:45:46 +0200 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2016-06-03 12:41:21 +0200 |
commit | 2987c3d82fb6586c81f5c82246bfd1a9c0a0381d (patch) | |
tree | b012d80600f7108260c1c027756774f9d88d8a0a /src/lib/dhcpsrv/host.cc | |
parent | [master] Merge branch 'trac4318' (diff) | |
download | kea-2987c3d82fb6586c81f5c82246bfd1a9c0a0381d.tar.xz kea-2987c3d82fb6586c81f5c82246bfd1a9c0a0381d.zip |
[4317] Added client-id as supported host identifier.
Diffstat (limited to 'src/lib/dhcpsrv/host.cc')
-rw-r--r-- | src/lib/dhcpsrv/host.cc | 9 |
1 files changed, 9 insertions, 0 deletions
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: ; } |