Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TOptIA_PD Class Reference

#include <OptIA_PD.h>

+ Inheritance diagram for TOptIA_PD:
+ Collaboration diagram for TOptIA_PD:

Public Member Functions

 TOptIA_PD (uint32_t iaid, uint32_t t1, uint32_t t2, TMsg *parent)
 TOptIA_PD (char *&buf, int &bufsize, TMsg *parent)
int countPrefixes ()
uint32_t getIAID () const
size_t getSize ()
int getStatusCode ()
uint32_t getT1 () const
uint32_t getT2 () const
bool isValid () const
void setIAID (uint32_t iaid)
void setT1 (uint32_t t1)
void setT2 (uint32_t t2)
char * storeSelf (char *buf)
- Public Member Functions inherited from TOpt
 TOpt (int optType, TMsg *parent)
virtual ~TOpt ()
void addOption (TOptPtr opt)
int countOption ()
void delAllOptions ()
bool delOption (uint16_t type)
 Deletes all specified options of that type.
virtual bool doDuties ()=0
void firstOption ()
TOptPtr getOption (int type)
TOptPtr getOption ()
int getOptType ()
virtual std::string getPlain ()
void setParent (TMsg *Parent)

Protected Attributes

uint32_t IAID_
uint32_t T1_
uint32_t T2_
bool Valid_
- Protected Attributes inherited from TOpt
int OptType
TMsgParent
TOptContainer SubOptions
bool Valid

Additional Inherited Members

- Public Types inherited from TOpt
enum  EOptionLayout {
  Layout_Addr, Layout_AddrLst, Layout_String, Layout_StringLst,
  Layout_Duid, Layout_Generic
}
- Static Public Member Functions inherited from TOpt
static TOptPtr getOption (const TOptList &list, uint16_t opt_type)
static bool parseOptions (TOptContainer &options, const char *buf, size_t len, TMsg *parent, uint16_t placeId=0, std::string place="option")
 Parses options or suboptions, creates appropriate objects and store them in options container.
- Static Public Attributes inherited from TOpt
static const size_t OPTION6_HDR_LEN = 4
 length of a DHCPv6 option header
- Protected Member Functions inherited from TOpt
int getSubOptSize ()
char * storeHeader (char *buf)
char * storeSubOpt (char *buf)

Constructor & Destructor Documentation

TOptIA_PD::TOptIA_PD ( uint32_t  iaid,
uint32_t  t1,
uint32_t  t2,
TMsg parent 
)
TOptIA_PD::TOptIA_PD ( char *&  buf,
int &  bufsize,
TMsg parent 
)

Member Function Documentation

int TOptIA_PD::countPrefixes ( )
uint32_t TOptIA_PD::getIAID ( ) const
size_t TOptIA_PD::getSize ( )
virtual

Return the size of the option, including :

  • Option number,
  • Option size
  • data
Returns
the size

Implements TOpt.

int TOptIA_PD::getStatusCode ( )

Reimplemented in TClntOptIA_PD.

uint32_t TOptIA_PD::getT1 ( ) const
uint32_t TOptIA_PD::getT2 ( ) const
bool TOptIA_PD::isValid ( ) const
virtual

Validate the option

Returns
true if the option is valid.
Todo:
check if suboptions are valid

Reimplemented from TOpt.

Reimplemented in TClntOptIA_PD.

void TOptIA_PD::setIAID ( uint32_t  iaid)
void TOptIA_PD::setT1 ( uint32_t  t1)
void TOptIA_PD::setT2 ( uint32_t  t2)
char * TOptIA_PD::storeSelf ( char *  buf)
virtual

This method transform the instance of the option class into bytecode ready to be sent to the client or server, conform to the RFC

Parameters
bufThe address where to store the option
Returns
The address where the option ends

Implements TOpt.

Member Data Documentation

uint32_t TOptIA_PD::IAID_
protected
uint32_t TOptIA_PD::T1_
protected
uint32_t TOptIA_PD::T2_
protected
bool TOptIA_PD::Valid_
protected

The documentation for this class was generated from the following files: