Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SrvOptLQ.h
Go to the documentation of this file.
1 /*
2  * Dibbler - a portable DHCPv6
3  *
4  * author: Tomasz Mrugalski <thomson@klub.com.pl>
5  *
6  * released under GNU GPL v2 only licence
7  *
8  */
9 
10 class TSrvOptLQ;
13 class TSrvOptLQRelayData;
15 
16 #ifndef SRVOPTLQ_H
17 #define SRVOPTLQ_H
18 
19 #include "DHCPConst.h"
20 #include "SmartPtr.h"
21 #include "DUID.h"
22 #include "IPv6Addr.h"
23 #include "Opt.h"
24 #include "OptInteger.h"
25 #include "OptGeneric.h"
26 
27 
28 class TSrvOptLQ : public TOpt
29 {
30  public:
31  TSrvOptLQ(char * buf, int bufsize, TMsg* parent);
32  bool doDuties();
34  size_t getSize();
35  char * storeSelf(char* buf);
37  private:
41 
42  bool IsValid;
43 };
44 
45 class TSrvOptLQClientData : public TOpt
46 {
47 public:
48  size_t getSize();
49  char* storeSelf(char*);
50  bool doDuties();
51 
52  TSrvOptLQClientData(TMsg * parent);
53  // only suboptions
54 };
55 
57 {
58 public:
59  TSrvOptLQClientTime(unsigned int value, TMsg* parent);
60  bool doDuties();
61 };
62 
63 // not supported
65 {
66 public:
68 };
69 
70 class TSrvOptLQClientLink : public TOpt
71 {
72 public:
73  TSrvOptLQClientLink(TContainer< SPtr<TIPv6Addr> > AddrLst, TMsg * parent);
74 private:
75  TContainer< SPtr<TIPv6Addr> > LinkAddrLst;
76 };
77 
78 #endif
79