Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ClntCfgPrefix.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  * changes: Krzysztof Wnuk <keczi@poczta.onet.pl>
7  *
8  * released under GNU GPL v2 only licence
9  *
10  */
11 
12 #ifndef CLNTCFGPREFIX_H
13 #define CLNTCFGPREFIX_H
14 
15 #include "DHCPConst.h"
16 #include "ClntParsGlobalOpt.h"
17 #include "SmartPtr.h"
18 #include "IPv6Addr.h"
19 #include <iostream>
20 #include <iomanip>
21 
23 {
24  friend std::ostream& operator<<(std::ostream& out,TClntCfgPrefix& group);
25  public:
27  TClntCfgPrefix(SPtr<TIPv6Addr> prefix, unsigned char prefixLength);
28  TClntCfgPrefix(SPtr<TIPv6Addr> prefix, unsigned long valid,
29  unsigned long pref, unsigned char prefixLength);
31 
32  SPtr<TIPv6Addr> get();
33  unsigned long getValid();
34  unsigned long getPref();
35  inline unsigned char getLength() { return PrefixLength; }
37  private:
39  unsigned long Valid;
40  unsigned long Pref;
41  unsigned char PrefixLength;
42 };
43 
44 #endif
45