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

#include <SrvCfgAddrClass.h>

+ Collaboration diagram for TSrvCfgAddrClass:

Public Member Functions

 TSrvCfgAddrClass ()
virtual ~TSrvCfgAddrClass ()
bool addrInPool (SPtr< TIPv6Addr > addr)
bool clntPrefered (SPtr< TDUID > duid, SPtr< TIPv6Addr > clntAddr)
bool clntSupported (SPtr< TDUID > duid, SPtr< TIPv6Addr > clntAddr)
bool clntSupported (SPtr< TDUID > duid, SPtr< TIPv6Addr > clntAddr, SPtr< TSrvMsg > msg)
unsigned long countAddrInPool ()
long decrAssigned (int count=1)
SPtr< TSrvOptAddrParamsgetAddrParams ()
unsigned long getAssignedCount ()
unsigned long getClassMaxLease ()
SPtr< TIPv6AddrgetFirstAddr ()
unsigned long getID ()
SPtr< TIPv6AddrgetLastAddr ()
uint32_t getPref (uint32_t clntPref=SERVER_DEFAULT_MAX_PREF)
SPtr< TIPv6AddrgetRandomAddr ()
unsigned long getShare ()
uint32_t getT1 (uint32_t clntT1=SERVER_DEFAULT_MAX_T1)
uint32_t getT2 (uint32_t clntT2=SERVER_DEFAULT_MAX_T2)
uint32_t getValid (uint32_t clntValid=SERVER_DEFAULT_MAX_VALID)
long incrAssigned (int count=1)
bool isLinkLocal ()
void mapAllowDenyList (TContainer< SPtr< TSrvCfgClientClass > > clientClassLst)
void setOptions (SPtr< TSrvParsGlobalOpt > opt)

Private Member Functions

uint32_t chooseTime (uint32_t beg, uint32_t end, uint32_t clntTime)
 List (std::string) AllowLst_
 List (std::string) DenyLst_

Private Attributes

TContainer< SPtr< THostRange > > AcceptClnt_
SPtr< TSrvOptAddrParamsAddrParams_
unsigned long AddrsAssigned_
unsigned long AddrsCount_
TContainer< SPtr
< TSrvCfgClientClass > > 
AllowClientClassLst_
unsigned long ClassMaxLease_
TContainer< SPtr
< TSrvCfgClientClass > > 
DenyClientClassLst_
unsigned long ID_
SPtr< THostRangePool_
uint32_t PrefMax_
uint32_t PrefMin_
TContainer< SPtr< THostRange > > RejedClnt_
uint32_t Share_
uint32_t T1Max_
uint32_t T1Min_
uint32_t T2Max_
uint32_t T2Min_
uint32_t ValidMax_
uint32_t ValidMin_

Static Private Attributes

static unsigned long StaticID_ = 0

Friends

std::ostream & operator<< (std::ostream &out, TSrvCfgAddrClass &iface)

Constructor & Destructor Documentation

TSrvCfgAddrClass::TSrvCfgAddrClass ( )
TSrvCfgAddrClass::~TSrvCfgAddrClass ( )
virtual

Member Function Documentation

bool TSrvCfgAddrClass::addrInPool ( SPtr< TIPv6Addr addr)
uint32_t TSrvCfgAddrClass::chooseTime ( uint32_t  beg,
uint32_t  end,
uint32_t  clntTime 
)
private
bool TSrvCfgAddrClass::clntPrefered ( SPtr< TDUID duid,
SPtr< TIPv6Addr clntAddr 
)
bool TSrvCfgAddrClass::clntSupported ( SPtr< TDUID duid,
SPtr< TIPv6Addr clntAddr 
)
bool TSrvCfgAddrClass::clntSupported ( SPtr< TDUID duid,
SPtr< TIPv6Addr clntAddr,
SPtr< TSrvMsg msg 
)
unsigned long TSrvCfgAddrClass::countAddrInPool ( )
long TSrvCfgAddrClass::decrAssigned ( int  count = 1)
SPtr< TSrvOptAddrParams > TSrvCfgAddrClass::getAddrParams ( )
unsigned long TSrvCfgAddrClass::getAssignedCount ( )
unsigned long TSrvCfgAddrClass::getClassMaxLease ( )
SPtr< TIPv6Addr > TSrvCfgAddrClass::getFirstAddr ( )
unsigned long TSrvCfgAddrClass::getID ( void  )
SPtr< TIPv6Addr > TSrvCfgAddrClass::getLastAddr ( )
uint32_t TSrvCfgAddrClass::getPref ( uint32_t  clntPref = SERVER_DEFAULT_MAX_PREF)
SPtr< TIPv6Addr > TSrvCfgAddrClass::getRandomAddr ( )
unsigned long TSrvCfgAddrClass::getShare ( )
uint32_t TSrvCfgAddrClass::getT1 ( uint32_t  clntT1 = SERVER_DEFAULT_MAX_T1)
uint32_t TSrvCfgAddrClass::getT2 ( uint32_t  clntT2 = SERVER_DEFAULT_MAX_T2)
uint32_t TSrvCfgAddrClass::getValid ( uint32_t  clntValid = SERVER_DEFAULT_MAX_VALID)
long TSrvCfgAddrClass::incrAssigned ( int  count = 1)
bool TSrvCfgAddrClass::isLinkLocal ( )
TSrvCfgAddrClass::List ( std::string  )
private
TSrvCfgAddrClass::List ( std::string  )
private
void TSrvCfgAddrClass::mapAllowDenyList ( TContainer< SPtr< TSrvCfgClientClass > >  clientClassLst)

Create the AllowClientClassLst and DenyClientClassLst

Parameters
clientClassLstlist of available client class names
void TSrvCfgAddrClass::setOptions ( SPtr< TSrvParsGlobalOpt opt)

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
TSrvCfgAddrClass iface 
)
friend

Member Data Documentation

TContainer< SPtr<THostRange> > TSrvCfgAddrClass::AcceptClnt_
private
SPtr<TSrvOptAddrParams> TSrvCfgAddrClass::AddrParams_
private
unsigned long TSrvCfgAddrClass::AddrsAssigned_
private
unsigned long TSrvCfgAddrClass::AddrsCount_
private
TContainer< SPtr<TSrvCfgClientClass> > TSrvCfgAddrClass::AllowClientClassLst_
private
unsigned long TSrvCfgAddrClass::ClassMaxLease_
private
TContainer< SPtr<TSrvCfgClientClass> > TSrvCfgAddrClass::DenyClientClassLst_
private
unsigned long TSrvCfgAddrClass::ID_
private
SPtr<THostRange> TSrvCfgAddrClass::Pool_
private
uint32_t TSrvCfgAddrClass::PrefMax_
private
uint32_t TSrvCfgAddrClass::PrefMin_
private
TContainer< SPtr<THostRange> > TSrvCfgAddrClass::RejedClnt_
private
uint32_t TSrvCfgAddrClass::Share_
private
unsigned long TSrvCfgAddrClass::StaticID_ = 0
staticprivate
uint32_t TSrvCfgAddrClass::T1Max_
private
uint32_t TSrvCfgAddrClass::T1Min_
private
uint32_t TSrvCfgAddrClass::T2Max_
private
uint32_t TSrvCfgAddrClass::T2Min_
private
uint32_t TSrvCfgAddrClass::ValidMax_
private
uint32_t TSrvCfgAddrClass::ValidMin_
private

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