summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcp/pkt.h
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2015-11-20 16:29:10 +0100
committerFrancis Dupont <fdupont@isc.org>2015-11-20 16:29:10 +0100
commitb66c0b8cff12a1390eb884f779b0faa3cfa313f4 (patch)
tree4e8c53f35d1a1a4decd119b68c101510c5d134fd /src/lib/dhcp/pkt.h
parent[4097a] Added a ClientClasses iteration unit test (diff)
downloadkea-b66c0b8cff12a1390eb884f779b0faa3cfa313f4.tar.xz
kea-b66c0b8cff12a1390eb884f779b0faa3cfa313f4.zip
[4097a] Switched class iterators
Diffstat (limited to 'src/lib/dhcp/pkt.h')
-rw-r--r--src/lib/dhcp/pkt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/dhcp/pkt.h b/src/lib/dhcp/pkt.h
index 2c42b5cf16..51507ec186 100644
--- a/src/lib/dhcp/pkt.h
+++ b/src/lib/dhcp/pkt.h
@@ -237,6 +237,12 @@ public:
/// @param client_class name of the class to be added
void addClass(const isc::dhcp::ClientClass& client_class);
+ /// @brief Returns the class set
+ ///
+ /// @note This should be used only to iterate over the class set.
+ /// @return
+ const ClientClasses& getClasses() const { return (classes_); }
+
/// @brief Unparsed data (in received packets).
///
/// @warning This public member is accessed by derived