Browse Source

[2324] duid.h improvements.

Tomek Mrugalski 12 years ago
parent
commit
ce585a075a
1 changed files with 9 additions and 3 deletions
  1. 9 3
      src/lib/dhcp/duid.h

+ 9 - 3
src/lib/dhcp/duid.h

@@ -12,11 +12,13 @@
 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 // PERFORMANCE OF THIS SOFTWARE.
 // PERFORMANCE OF THIS SOFTWARE.
 
 
+#ifndef DUID_H
+#define DUID_H
+
+#include <asiolink/io_address.h>
+#include <vector>
 #include <stdint.h>
 #include <stdint.h>
 #include <unistd.h>
 #include <unistd.h>
-#include <vector>
-#include <asiolink/io_address.h>
-
 
 
 namespace isc {
 namespace isc {
 namespace dhcp {
 namespace dhcp {
@@ -70,6 +72,8 @@ class DUID {
     std::vector<uint8_t> duid_;
     std::vector<uint8_t> duid_;
 };
 };
 
 
+typedef boost::shared_ptr<DUID> DuidPtr;
+
 /// @brief Holds Client identifier or client IPv4 address
 /// @brief Holds Client identifier or client IPv4 address
 ///
 ///
 /// This class is intended to be a generic IPv4 client identifier. It can hold
 /// 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::dhcp namespace
 }; // end of isc namespace
 }; // end of isc namespace
+
+#endif /* DUID_H */