Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SrvCfgPD.cpp File Reference
#include "SrvCfgPD.h"
#include "SmartPtr.h"
#include "SrvParsGlobalOpt.h"
#include "DHCPConst.h"
#include "Logger.h"
#include "SrvMsg.h"
+ Include dependency graph for SrvCfgPD.cpp:

Functions

lst clear ()
PoolLst_ first ()
 if (PD_Count_==PD_Assigned_+1)
ostream & operator<< (ostream &out, TSrvCfgPD &prefix)
commonPart truncate (0, getPD_Length())
 while (range=PoolLst_.get())

Variables

TContainer< SPtr< TIPv6Addr >
> TSrvCfgPD::getRandomTContainer
< SPtr<> > SPtr< TIPv6Addr
commonPart = CommonPool_->getRandomPrefix()
TContainer< SPtr< TIPv6Addr > > lst
SPtr< THostRangerange
TContainer< SPtr< TIPv6Addr >
> TSrvCfgPD::getRandomTContainer
< SPtr<> > SPtr< TIPv6Addr
tmp

Function Documentation

void< SPtr< x > > TContainer::clear ( )
void< SPtr< x > > TContainer::first ( )
if ( PD_Count_  = = PD_Assigned_ + 1)
Todo:
: it's just workaround. Prefix random generation should be implemented for real.
ostream& operator<< ( ostream &  out,
TSrvCfgPD prefix 
)
commonPart truncate ( ,
getPD_Length()   
)
while ( range  = PoolLst_.get())

Variable Documentation

commonPart = CommonPool_->getRandomPrefix()

gets random prefix from the common part (b) and returns a list of prefixes generated by concatenation of the common part and pool-specific prefix

Returns
list of prefixes (one prefix for each defined pool)
return lst
SPtr<THostRange> range
TContainer< SPtr<TIPv6Addr> > TSrvCfgPD::getRandomTContainer< SPtr<> > SPtr<TIPv6Addr> tmp