Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OptRtPrefix.h
Go to the documentation of this file.
1 /*
2  * Dibbler - a portable DHCPv6
3  *
4  * authors: Mateusz Ozga <matozga@gmail.com>
5  * changes: Tomek Mrugalski <thomson@klub.com.pl>
6  *
7  * Released under GNU GPL v2 licence
8  *
9  */
10 
11 #include "IPv6Addr.h"
12 #include "SmartPtr.h"
13 #include "Opt.h"
14 
15 class TOptRtPrefix : public TOpt
16 {
17 public:
18  TOptRtPrefix(uint32_t lifetime, uint8_t prefixlen, uint8_t metric, SPtr<TIPv6Addr> prefix, TMsg* parent);
19  TOptRtPrefix(const char * buf, int bufsize, TMsg* parent);
20  char* storeSelf(char* buf);
21  size_t getSize();
22  bool doDuties() { return true; };
23 
25  uint8_t getPrefixLen();
26  uint8_t getMetric();
28  std::string getPlain();
29 protected:
31  uint8_t PrefixLen;
32  uint8_t Metric;
34 };
35 
36