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

#include <ClntCfgMgr.h>

+ Inheritance diagram for TClntCfgMgr:
+ Collaboration diagram for TClntCfgMgr:

Public Member Functions

 ~TClntCfgMgr ()
void addIface (SPtr< TClntCfgIface > x)
bool addInfRefreshTime ()
bool anonInfRequest ()
SPtr< TClntCfgIfacecheckInactiveIfaces ()
int countAddrForIA (long IAID)
int countIfaces ()
void dump ()
void firstIface ()
const std::vector< DigestTypes > & getAuthAcceptMethods ()
DigestTypes getDigest ()
const std::vector< std::string > & getDownlinkPrefixIfaces ()
bool getFQDNFlagS ()
SPtr< TClntCfgIAgetIA (long IAID)
SPtr< TClntCfgIfacegetIface ()
SPtr< TClntCfgIfacegetIface (int id)
SPtr< TClntCfgIfacegetIfaceByIAID (int iaid)
SPtr< TClntCfgPDgetPD (long IAID)
bool getReconfigure ()
std::string getScript ()
uint32_t getSPI ()
int inactiveIfacesCnt ()
bool inactiveMode ()
bool insistMode ()
bool isDone ()
void makeInactiveIface (int ifindex, bool inactive, bool managed, bool otherConf)
void obeyRaBits (bool obey)
bool obeyRaBits ()
bool openSocket (SPtr< TClntCfgIface > iface)
void setAuthAcceptMethods (const std::vector< DigestTypes > &methods)
void setDigest (DigestTypes value)
void setDownlinkPrefixIfaces (List(std::string)&ifaces)
bool setIAState (int iface, int iaid, enum EState state)
void setReconfigure (bool enable)
void setScript (std::string script)
bool useConfirm ()
- Public Member Functions inherited from TCfgMgr
 TCfgMgr ()
virtual ~TCfgMgr ()
void addKey (SPtr< TSIGKey > key)
bool compareConfigs (const std::string &cfgFile, const std::string &oldCfgFile)
void copyFile (const std::string &cfgFile, const std::string &oldCfgFile)
uint8_t getAuthAlgorithm ()
bool getAuthDropUnauthenticated ()
AuthProtocols getAuthProtocol ()
std::string getAuthRealm ()
AuthReplay getAuthReplay ()
DNSUpdateProtocol getDDNSProtocol ()
unsigned int getDDNSTimeout ()
SPtr< TDUIDgetDUID ()
SPtr< TSIGKeygetKey ()
int getLogLevel ()
std::string getLogName ()
std::string getWorkDir ()
void setAuthAlgorithm (uint8_t algorithm)
void setAuthDropUnauthenticated (bool drop)
void setAuthProtocol (AuthProtocols proto)
void setAuthRealm (const std::string &realm)
void setAuthReplay (AuthReplay replay_detection_mode)
void setDDNSProtocol (DNSUpdateProtocol proto)
void setDDNSTimeout (unsigned int timeout)
void setWorkdir (std::string workdir)

Static Public Member Functions

static TClntCfgMgrinstance ()
static void instanceCreate (const std::string &cfgFile)

Public Attributes

SPtr< KeyListAuthKeys

Private Member Functions

 TClntCfgMgr (const std::string &cfgFile)
bool matchParsedSystemInterfaces (ClntParser *parser)
bool parseConfigFile (const std::string &cfgFile)
bool setGlobalOptions (ClntParser *parser)
bool validateAddr (SPtr< TClntCfgIface > ptrIface, SPtr< TClntCfgIA > ptrIA, SPtr< TClntCfgAddr > ptrAddr)
bool validateConfig ()
bool validateIA (SPtr< TClntCfgIface > ptrIface, SPtr< TClntCfgIA > ptrIA)
bool validateIface (SPtr< TClntCfgIface > iface)
bool validatePD (SPtr< TClntCfgIface > ptrIface, SPtr< TClntCfgPD > ptrPD)
bool validatePrefix (SPtr< TClntCfgIface > ptrIface, SPtr< TClntCfgPD > ptrPD, SPtr< TClntCfgPrefix > ptrPrefix)

Private Attributes

bool AnonInfRequest
std::vector< DigestTypesAuthAcceptMethods_
TContainer< SPtr< TClntCfgIface > > ClntCfgIfaceLst
DigestTypes Digest_
std::vector< std::string > DownlinkPrefixIfaces_
bool FQDNFlagS
TContainer< SPtr< TClntCfgIface > > InactiveLst
bool InactiveMode
bool InsistMode
bool ObeyRaBits_
bool Reconfigure
std::string ScriptName
uint32_t SPI_
bool UseConfirm

Static Private Attributes

static TClntCfgMgrInstance = 0

Friends

std::ostream & operator<< (std::ostream &strum, TClntCfgMgr &x)

Additional Inherited Members

- Public Types inherited from TCfgMgr
enum  DNSUpdateProtocol { DNSUPDATE_TCP, DNSUPDATE_UDP, DNSUPDATE_ANY }
- Protected Member Functions inherited from TCfgMgr
bool generateDUID (const std::string &duidFile, char *mac, int macLen, int macType)
bool loadDUID (const std::string &filename)
 loads DUID from a file.
bool setDUID (const std::string &duidFile, TIfaceMgr &ifaceMgr)
- Protected Attributes inherited from TCfgMgr
uint8_t AuthAlgorithm_
bool AuthDropUnauthenticated_
AuthProtocols AuthProtocol_
std::string AuthRealm_
AuthReplay AuthReplay_
DNSUpdateProtocol DdnsProto
unsigned int DDNSTimeout_
SPtr< TDUIDDUID
SPtr< TDUIDDUIDEnterpriseID
int DUIDEnterpriseNumber
EDUIDType DUIDType
bool IsDone
TSIGKeyList Keys_
int LogLevel
std::string LogName
std::string Workdir

Constructor & Destructor Documentation

TClntCfgMgr::TClntCfgMgr ( const std::string &  cfgFile)
private
TClntCfgMgr::~TClntCfgMgr ( )

Member Function Documentation

void TClntCfgMgr::addIface ( SPtr< TClntCfgIface x)
bool TClntCfgMgr::addInfRefreshTime ( )
bool TClntCfgMgr::anonInfRequest ( )
SPtr< TClntCfgIface > TClntCfgMgr::checkInactiveIfaces ( )
int TClntCfgMgr::countAddrForIA ( long  IAID)
int TClntCfgMgr::countIfaces ( )
void TClntCfgMgr::dump ( )
void TClntCfgMgr::firstIface ( )
const std::vector< DigestTypes > & TClntCfgMgr::getAuthAcceptMethods ( )
DigestTypes TClntCfgMgr::getDigest ( )
const std::vector<std::string>& TClntCfgMgr::getDownlinkPrefixIfaces ( )
inline
bool TClntCfgMgr::getFQDNFlagS ( )
SPtr< TClntCfgIA > TClntCfgMgr::getIA ( long  IAID)
SPtr< TClntCfgIface > TClntCfgMgr::getIface ( )
SPtr< TClntCfgIface > TClntCfgMgr::getIface ( int  id)
SPtr< TClntCfgIface > TClntCfgMgr::getIfaceByIAID ( int  iaid)
SPtr< TClntCfgPD > TClntCfgMgr::getPD ( long  IAID)
bool TClntCfgMgr::getReconfigure ( )
std::string TClntCfgMgr::getScript ( )
inline
uint32_t TClntCfgMgr::getSPI ( )
int TClntCfgMgr::inactiveIfacesCnt ( )
bool TClntCfgMgr::inactiveMode ( )
bool TClntCfgMgr::insistMode ( )
TClntCfgMgr & TClntCfgMgr::instance ( )
static
void TClntCfgMgr::instanceCreate ( const std::string &  cfgFile)
static
bool TClntCfgMgr::isDone ( )
void TClntCfgMgr::makeInactiveIface ( int  ifindex,
bool  inactive,
bool  managed,
bool  otherConf 
)
bool TClntCfgMgr::matchParsedSystemInterfaces ( ClntParser parser)
private

match parsed interfaces with interfaces detected in system. ClntCfgIface objects copied to CfgMgr.

Parameters
parser
Returns
true if ok, false if interface definitions are incorrect
void TClntCfgMgr::obeyRaBits ( bool  obey)
bool TClntCfgMgr::obeyRaBits ( )
bool TClntCfgMgr::openSocket ( SPtr< TClntCfgIface iface)
bool TClntCfgMgr::parseConfigFile ( const std::string &  cfgFile)
private
void TClntCfgMgr::setAuthAcceptMethods ( const std::vector< DigestTypes > &  methods)
Todo:
move this to CfgMgr
Todo:
move this to CfgMgr and unify with TSrvCfgMgr::setAuthDigests
void TClntCfgMgr::setDigest ( DigestTypes  value)
void TClntCfgMgr::setDownlinkPrefixIfaces ( List(std::string)&  ifaces)
bool TClntCfgMgr::setGlobalOptions ( ClntParser parser)
private
bool TClntCfgMgr::setIAState ( int  iface,
int  iaid,
enum EState  state 
)
void TClntCfgMgr::setReconfigure ( bool  enable)
void TClntCfgMgr::setScript ( std::string  script)
inline
bool TClntCfgMgr::useConfirm ( )
bool TClntCfgMgr::validateAddr ( SPtr< TClntCfgIface ptrIface,
SPtr< TClntCfgIA ptrIA,
SPtr< TClntCfgAddr ptrAddr 
)
private
bool TClntCfgMgr::validateConfig ( )
private
bool TClntCfgMgr::validateIA ( SPtr< TClntCfgIface ptrIface,
SPtr< TClntCfgIA ptrIA 
)
private
bool TClntCfgMgr::validateIface ( SPtr< TClntCfgIface iface)
private
bool TClntCfgMgr::validatePD ( SPtr< TClntCfgIface ptrIface,
SPtr< TClntCfgPD ptrPD 
)
private
bool TClntCfgMgr::validatePrefix ( SPtr< TClntCfgIface ptrIface,
SPtr< TClntCfgPD ptrPD,
SPtr< TClntCfgPrefix ptrPrefix 
)
private

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  strum,
TClntCfgMgr x 
)
friend

Member Data Documentation

bool TClntCfgMgr::AnonInfRequest
private
std::vector<DigestTypes> TClntCfgMgr::AuthAcceptMethods_
private
SPtr<KeyList> TClntCfgMgr::AuthKeys
TContainer< SPtr<TClntCfgIface> > TClntCfgMgr::ClntCfgIfaceLst
private
DigestTypes TClntCfgMgr::Digest_
private
std::vector<std::string> TClntCfgMgr::DownlinkPrefixIfaces_
private
bool TClntCfgMgr::FQDNFlagS
private
TContainer< SPtr<TClntCfgIface> > TClntCfgMgr::InactiveLst
private
bool TClntCfgMgr::InactiveMode
private
bool TClntCfgMgr::InsistMode
private
TClntCfgMgr * TClntCfgMgr::Instance = 0
staticprivate
bool TClntCfgMgr::ObeyRaBits_
private
bool TClntCfgMgr::Reconfigure
private
std::string TClntCfgMgr::ScriptName
private
uint32_t TClntCfgMgr::SPI_
private
bool TClntCfgMgr::UseConfirm
private

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