Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OptAddrLst.h
Go to the documentation of this file.
1 /*
2  * Dibbler - a portable DHCPv6
3  *
4  * authors: Tomasz Mrugalski <thomson@klub.com.pl>
5  *
6  * released under GNU GPL v2 only licence
7  *
8  */
9 
10 #ifndef OPTDNSSERVERS_H
11 #define OPTDNSSERVERS_H
12 #include "IPv6Addr.h"
13 #include "Container.h"
14 #include "SmartPtr.h"
15 #include "Opt.h"
16 
17 class TOptAddrLst : public TOpt
18 {
19 public:
21  TOptAddrLst(int type, const char *buf, unsigned short len, TMsg* parent);
22  char * storeSelf( char* buf);
23  size_t getSize();
24  void firstAddr();
26  const TContainer< SPtr<TIPv6Addr> >& getAddrLst() { return AddrLst; }
27  int countAddr();
28  bool isValid() const;
29  virtual bool doDuties() { return true; } // does nothing on its own
30  std::string getPlain();
31 protected:
32  TContainer< SPtr<TIPv6Addr> > AddrLst;
33 };
34 #endif
35