Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OptDUID.h
Go to the documentation of this file.
1 /*
2  * Dibbler - a portable DHCPv6
3  *
4  * authors: Tomasz Mrugalski <thomson@klub.com.pl>
5  * Marek Senderski <msend@o2.pl>
6  *
7  * released under GNU GPL v2 only licence
8  */
9 
10 #ifndef OPTDUID_H
11 #define OPTDUID_H
12 
13 #include "DHCPConst.h"
14 #include "Opt.h"
15 #include "DUID.h"
16 #include "SmartPtr.h"
17 
18 class TOptDUID : public TOpt
19 {
20  public:
21  TOptDUID(int type, SPtr<TDUID> duid, TMsg* parent);
22  TOptDUID(int type, const char* buf, int len, TMsg* parent);
23  size_t getSize();
24 
25  char * storeSelf(char* buf);
26  bool doDuties() { return true; }
27  SPtr<TDUID> getDUID() const;
28  virtual bool isValid() const;
29  virtual std::string getPlain();
30  protected:
32 };
33 
34 #endif
35