Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AddrPrefix.h
Go to the documentation of this file.
1 /*
2  * Dibbler - a portable DHCPv6
3  *
4  * author: Krzysztof Wnuk <keczi@poczta.onet.pl>
5  * changes: Tomasz Mrugalski <thomson@klub.com.pl>
6  *
7  */
8 
9 #ifndef ADDRPREFIX_H
10 #define ADDRPREFIX_H
11 
12 #include <iostream>
13 #include "IPv6Addr.h"
14 #include "AddrAddr.h"
15 #include "SmartPtr.h"
16 #include "DHCPConst.h"
17 
18 class TAddrPrefix: public TAddrAddr
19 {
20  friend std::ostream & operator<<(std::ostream & strum,TAddrPrefix &x);
21  public:
22 
23  TAddrPrefix(SPtr<TIPv6Addr> addr, long pref, long valid, int length);
24 
25  // return address in packed format (char[16])
26  int getLength();
27 
28  private:
29  int Length;
30 };
31 #endif
32