Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OptIA.h
Go to the documentation of this file.
1 /*
2  * Dibbler - a portable DHCPv6
3  *
4  * author: Tomasz Mrugalski <thomson@klub.com.pl>
5  *
6  * released under GNU GPL v2 only licence
7  *
8  */
9 
10 #include <stdint.h>
11 #include "Opt.h"
12 
13 #ifndef OPTIA_H
14 #define OPTIA_H
15 
16 class TOptIA : public TOpt
17 {
18 public:
19  TOptIA(uint16_t type, uint32_t iaid, uint32_t t1, uint32_t t2, TMsg* parent);
20  TOptIA(uint16_t type, TMsg* parent);
21 
22  unsigned long getIAID() const;
23  unsigned long getT1() const;
24  unsigned long getT2() const;
25  void setT1(unsigned long t1);
26  void setT2(unsigned long t2);
27  void setIAID(uint32_t iaid);
28 
29  int getStatusCode();
30 
31 protected:
32  unsigned long IAID_;
33  unsigned long T1_;
34  unsigned long T2_;
35  bool Valid_;
36 };
37 
38 #endif
39