]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2324] duid.h improvements.
authorTomek Mrugalski <tomasz@isc.org>
Wed, 17 Oct 2012 16:06:05 +0000 (18:06 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Wed, 17 Oct 2012 16:06:05 +0000 (18:06 +0200)
src/lib/dhcp/duid.h

index 53257dbbb504e4c153453425449de930ec84b43b..5f8ad58f20c53a71dbd5593580fb2745bbad6ea8 100644 (file)
 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 // PERFORMANCE OF THIS SOFTWARE.
 
+#ifndef DUID_H
+#define DUID_H
+
+#include <asiolink/io_address.h>
+#include <vector>
 #include <stdint.h>
 #include <unistd.h>
-#include <vector>
-#include <asiolink/io_address.h>
-
 
 namespace isc {
 namespace dhcp {
@@ -70,6 +72,8 @@ class DUID {
     std::vector<uint8_t> duid_;
 };
 
+typedef boost::shared_ptr<DUID> DuidPtr;
+
 /// @brief Holds Client identifier or client IPv4 address
 ///
 /// This class is intended to be a generic IPv4 client identifier. It can hold
@@ -96,3 +100,5 @@ class ClientId : DUID {
 
 }; // end of isc::dhcp namespace
 }; // end of isc namespace
+
+#endif /* DUID_H */