Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OptTA.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 class TOptTA;
11 #ifndef OPTIA_TA_H
12 #define OPTIA_TA_H
13 
14 #include "Opt.h"
15 
16 // length without optType and Length
17 #define OPTION_IA_TA_LEN 4
18 
19 class TOptTA : public TOpt
20 {
21  public:
22  TOptTA(uint32_t iaid, TMsg* parent);
23  TOptTA(char * &buf, int &bufsize, TMsg* parent);
24  size_t getSize();
25  int getStatusCode();
26 
27  unsigned long getIAID();
28  unsigned long getMaxValid();
29  int countAddrs();
30 
31  char * storeSelf( char* buf);
32  virtual bool isValid() const;
33  bool doDuties() { return true; }
34  protected:
36  bool Valid_;
37 };
38 
39 
40 #endif /* OPTIA_TA_H */
41