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

#include <ClntMsgRequest.h>

+ Inheritance diagram for TClntMsgRequest:
+ Collaboration diagram for TClntMsgRequest:

Public Member Functions

 TClntMsgRequest (TOptList opts, int iface)
 TClntMsgRequest (TContainer< SPtr< TAddrIA > > requestIALst, SPtr< TDUID > srvDUID, int iface)
 ~TClntMsgRequest ()
void answer (SPtr< TClntMsg > msg)
bool check ()
void doDuties ()
std::string getName () const
- Public Member Functions inherited from TClntMsg
 TClntMsg (int iface, SPtr< TIPv6Addr > addr, char *buf, int bufSize)
 TClntMsg (int iface, SPtr< TIPv6Addr > addr, int msgType)
 ~TClntMsg ()
void appendAuthenticationOption ()
 appends authentication option.
void appendElapsedOption ()
void appendRequestedOptions ()
void appendTAOptions (bool switchToInProcess)
 appends all TAs, which are currently in the NOTCONFIGURED state
bool checkReceivedAuthOption ()
void copyAAASPI (SPtr< TClntMsg > q)
void deletePD (SPtr< TOpt > pd_)
void getReconfKeyFromAddrMgr ()
SPtr< TOptStatusCodegetStatusCode () const
 return status-code option (if present)
unsigned long getTimeout ()
SPtr< TOptparseExtraOption (const char *buf, unsigned int code, unsigned int length)
void send ()
void setIface (int iface)
bool validateReplayDetection ()
- Public Member Functions inherited from TMsg
 TMsg (int iface, SPtr< TIPv6Addr > addr, int msgType)
 TMsg (int iface, SPtr< TIPv6Addr > addr, int msgType, long transID)
 TMsg (int iface, SPtr< TIPv6Addr > addr, char *&buf, int &bufSize)
virtual ~TMsg ()
void addOption (SPtr< TOpt > opt)
void calculateDigests (char *buffer, size_t len)
int countOption ()
void firstOption ()
TKey getAuthKey ()
SPtr< TOptDUIDgetClientID () const
 returns client-id option (if present)
int getIface ()
SPtr< TIPv6AddrgetLocalAddr ()
void * getNotifyScriptParams ()
SPtr< TOptgetOption (int type) const
virtual SPtr< TOptgetOption ()
TOptListgetOptLst ()
SPtr< TOptOptionRequestgetORO () const
 returns ORO (if present)
SPtr< TIPv6AddrgetRemoteAddr ()
SPtr< TOptDUIDgetServerID () const
 returns server-id option (if present)
virtual int getSize ()
uint32_t getSPI ()
long getTransID ()
long getType ()
bool isDone ()
bool isDone (bool done)
bool loadAuthKey ()
void setAuthDigestPtr (char *ptr, unsigned len)
void setAuthKey (const TKey &key)
void setLocalAddr (SPtr< TIPv6Addr > myaddr)
void setSPI (uint32_t val)
virtual int storeSelf (char *buffer)
bool validateAuthInfo (char *buf, int bufSize, AuthProtocols proto, const DigestTypesLst &acceptedDigestTypes)

Private Member Functions

void copyAddrsFromAdvertise (SPtr< TClntMsg > adv)
void copyPrefixesFromAdvertise (SPtr< TClntMsg > adv)
void setState (TOptList opts, EState state)

Additional Inherited Members

- Public Attributes inherited from TMsg
DigestTypes DigestType_
- Protected Member Functions inherited from TClntMsg
bool appendClientID ()
bool check (bool clntIDmandatory, bool srvIDmandatory)
- Protected Attributes inherited from TClntMsg
int FirstTimeStamp
long IRT
int LastTimeStamp
long MRC
long MRD
long MRT
int RC
int RT

Constructor & Destructor Documentation

TClntMsgRequest::TClntMsgRequest ( TOptList  opts,
int  iface 
: add support for unicast in IA_TA and IA_PD
TClntMsgRequest::TClntMsgRequest ( TContainer< SPtr< TAddrIA > >  requestIALst,
int  iface 
TClntMsgRequest::~TClntMsgRequest ( )

Member Function Documentation

void TClntMsgRequest::answer ( SPtr< TClntMsg reply)

method is used to process received REPLY message (as an answer for REQUEST or as an answer for SOLICIT with RAPID COMMIT option)

: set proper options to FAILED state

Reimplemented from TClntMsg.

bool TClntMsgRequest::check ( )

Implements TClntMsg.

void TClntMsgRequest::copyAddrsFromAdvertise ( SPtr< TClntMsg adv)
void TClntMsgRequest::copyPrefixesFromAdvertise ( SPtr< TClntMsg adv)
void TClntMsgRequest::doDuties ( )

Implements TClntMsg.

std::string TClntMsgRequest::getName ( void  ) const

Implements TMsg.

void TClntMsgRequest::setState ( TOptList  options,
EState  state 

method is used when REQUEST transmission was attempted, but there are no more servers on the backup list. When this method is called, it is sure that some IAs, TA or PDs will remain not configured (as there are no servers available, which could configure it)

optionslist of still unconfigured options
statestate to be set in CfgMgr

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