00001 #ifndef OPTSERVERIDENTIFIER_H 00002 #define OPTSERVERIDENTIFIER_H 00003 00004 #include "DHCPConst.h" 00005 #include "Opt.h" 00006 #include "DUID.h" 00007 #include "SmartPtr.h" 00008 00009 class TOptServerIdentifier : public TOpt 00010 { 00011 public: 00012 TOptServerIdentifier(SmartPtr<TDUID> duid, TMsg* parent); 00013 TOptServerIdentifier(char* &buf, int &bufsize, TMsg* parent); 00014 int getSize(); 00015 00016 char * storeSelf(char* buf); 00017 //int getDUIDlen(); 00018 SmartPtr<TDUID> getDUID(); 00019 bool isValid(); 00020 protected: 00021 SmartPtr<TDUID> DUID; 00022 }; 00023 00024 #endif 00025