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

#include <ClntOptIA_PD.h>

+ Inheritance diagram for TClntOptIA_PD:
+ Collaboration diagram for TClntOptIA_PD:

Public Member Functions

 TClntOptIA_PD (SPtr< TClntCfgPD > ClntCfgPD, TMsg *parent)
 constructor used in building SOLICIT message
 TClntOptIA_PD (SPtr< TAddrIA > clntAddrPD, TMsg *parent)
 TClntOptIA_PD (char *buf, int bufsize, TMsg *parent)
 ~TClntOptIA_PD ()
bool addPrefixes ()
int countPrefix () const
void deletePrefix (SPtr< TOptIAPrefix > prefix)
bool delPrefixes ()
bool doDuties ()
void firstPrefix ()
SPtr< TOptIAPrefixgetPrefix ()
SPtr< TOptIAPrefixgetPrefix (SPtr< TIPv6Addr > prefix)
int getStatusCode ()
bool isValid () const
void setContext (SPtr< TDUID > srvDuid, SPtr< TIPv6Addr > srvAddr, TMsg *originalMsg)
void setIface (int iface)
bool updatePrefixes ()
- Public Member Functions inherited from TOptIA_PD
 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 ()
uint32_t getT1 () const
uint32_t getT2 () 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.
void firstOption ()
TOptPtr getOption (int type)
TOptPtr getOption ()
int getOptType ()
virtual std::string getPlain ()
void setParent (TMsg *Parent)

Private Member Functions

void clearContext ()
bool modifyPrefixes (TClntIfaceMgr::PrefixModifyMode mode)
void setState (EState state)

Private Attributes

SPtr< TDUIDDUID
int Iface
TMsgOriginalMsg
SPtr< TIPv6AddrPrefix
bool Unicast

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)
- Protected Attributes inherited from TOptIA_PD
uint32_t IAID_
uint32_t T1_
uint32_t T2_
bool Valid_

Constructor & Destructor Documentation

TClntOptIA_PD::TClntOptIA_PD ( SPtr< TClntCfgPD cfgPD,
TMsg parent 
)

constructor used in building SOLICIT message

Parameters
cfgPD
parent
TClntOptIA_PD::TClntOptIA_PD ( SPtr< TAddrIA addrPD,
TMsg parent 
)

Used in REQUEST, RENEW, REBIND, DECLINE and RELEASE

Parameters
addrPD
parent
TClntOptIA_PD::TClntOptIA_PD ( char *  buf,
int  bufsize,
TMsg parent 
)

Used to create object from received message

Parameters
buf
bufsize
parent
TClntOptIA_PD::~TClntOptIA_PD ( )

Member Function Documentation

bool TClntOptIA_PD::addPrefixes ( )
void TClntOptIA_PD::clearContext ( )
private
int TClntOptIA_PD::countPrefix ( ) const
void TClntOptIA_PD::deletePrefix ( SPtr< TOptIAPrefix prefix)
bool TClntOptIA_PD::delPrefixes ( )
bool TClntOptIA_PD::doDuties ( )
virtual

Implements TOpt.

void TClntOptIA_PD::firstPrefix ( )
SPtr< TOptIAPrefix > TClntOptIA_PD::getPrefix ( )
SPtr< TOptIAPrefix > TClntOptIA_PD::getPrefix ( SPtr< TIPv6Addr prefix)
int TClntOptIA_PD::getStatusCode ( )

Reimplemented from TOptIA_PD.

bool TClntOptIA_PD::isValid ( ) const
virtual

Validate the option

Returns
true if the option is valid.

Reimplemented from TOptIA_PD.

bool TClntOptIA_PD::modifyPrefixes ( TClntIfaceMgr::PrefixModifyMode  mode)
private
void TClntOptIA_PD::setContext ( SPtr< TDUID srvDuid,
SPtr< TIPv6Addr srvAddr,
TMsg originalMsg 
)
void TClntOptIA_PD::setIface ( int  iface)
void TClntOptIA_PD::setState ( EState  state)
private
bool TClntOptIA_PD::updatePrefixes ( )

Member Data Documentation

SPtr<TDUID> TClntOptIA_PD::DUID
private
int TClntOptIA_PD::Iface
private
TMsg* TClntOptIA_PD::OriginalMsg
private
SPtr<TIPv6Addr> TClntOptIA_PD::Prefix
private
bool TClntOptIA_PD::Unicast
private

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