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

#include <RelCfgMgr.h>

+ Inheritance diagram for TRelCfgMgr:
+ Collaboration diagram for TRelCfgMgr:

Public Member Functions

virtual ~TRelCfgMgr ()
void addIface (SPtr< TRelCfgIface > iface)
long countIface ()
void dump ()
void firstIface ()
bool getClientLinkLayerAddress ()
SPtr< TRelOptEchogetEcho ()
SPtr< TRelCfgIfacegetIface ()
SPtr< TRelCfgIfacegetIfaceByID (int iface)
SPtr< TRelCfgIfacegetIfaceByInterfaceID (int iface)
ERelIfaceIdOrder getInterfaceIDOrder ()
SPtr< TOptgetRelayID ()
SPtr< TOptVendorDatagetRemoteID ()
std::string getWorkdir ()
bool guessMode ()
bool isDone ()
bool parseConfigFile (const std::string &cfgFile)
void setClientLinkLayerAddress (bool enabled)
void setRelayID (SPtr< TOpt > relayID)
bool setupGlobalOpts (SPtr< TRelParsGlobalOpt > opt)
- 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 TRelCfgMgrinstance ()
static void instanceCreate (const std::string &cfgFile, const std::string &xmlFile)

Protected Member Functions

 TRelCfgMgr (const std::string &cfgFile, const std::string &xmlFile)
- 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)

Static Protected Attributes

static TRelCfgMgrInstance = 0

Private Member Functions

bool matchParsedSystemInterfaces (TContainer< SPtr< TRelCfgIface > > *lst)
bool validateConfig ()
bool validateIface (SPtr< TRelCfgIface > ptrIface)

Private Attributes

bool ClientLinkLayerAddress_
SPtr< TRelOptEchoEcho
bool GuessMode
TContainer< SPtr< TRelCfgIface > > IfaceLst
ERelIfaceIdOrder InterfaceIDOrder
bool IsDone
SPtr< TOptRelayID_
SPtr< TOptVendorDataRemoteID
std::string Workdir
std::string XmlFile

Static Private Attributes

static int NextRelayID = RELAY_MIN_IFINDEX

Friends

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

Additional Inherited Members

- Public Types inherited from TCfgMgr
enum  DNSUpdateProtocol { DNSUPDATE_TCP, DNSUPDATE_UDP, DNSUPDATE_ANY }
- 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

TRelCfgMgr::~TRelCfgMgr ( )
virtual
TRelCfgMgr::TRelCfgMgr ( const std::string &  cfgFile,
const std::string &  xmlFile 
)
protected

Member Function Documentation

void TRelCfgMgr::addIface ( SPtr< TRelCfgIface iface)
long TRelCfgMgr::countIface ( )
void TRelCfgMgr::dump ( )
void TRelCfgMgr::firstIface ( )
bool TRelCfgMgr::getClientLinkLayerAddress ( )
SPtr< TRelOptEcho > TRelCfgMgr::getEcho ( )
SPtr< TRelCfgIface > TRelCfgMgr::getIface ( )
SPtr< TRelCfgIface > TRelCfgMgr::getIfaceByID ( int  iface)
SPtr< TRelCfgIface > TRelCfgMgr::getIfaceByInterfaceID ( int  iface)
ERelIfaceIdOrder TRelCfgMgr::getInterfaceIDOrder ( )
SPtr< TOpt > TRelCfgMgr::getRelayID ( )
SPtr< TOptVendorData > TRelCfgMgr::getRemoteID ( )
std::string TRelCfgMgr::getWorkdir ( )
bool TRelCfgMgr::guessMode ( )
TRelCfgMgr & TRelCfgMgr::instance ( )
static
void TRelCfgMgr::instanceCreate ( const std::string &  cfgFile,
const std::string &  xmlFile 
)
static
bool TRelCfgMgr::isDone ( )
bool TRelCfgMgr::matchParsedSystemInterfaces ( TContainer< SPtr< TRelCfgIface > > *  lst)
private
bool TRelCfgMgr::parseConfigFile ( const std::string &  cfgFile)
void TRelCfgMgr::setClientLinkLayerAddress ( bool  enabled)
void TRelCfgMgr::setRelayID ( SPtr< TOpt relayID)
bool TRelCfgMgr::setupGlobalOpts ( SPtr< TRelParsGlobalOpt opt)
bool TRelCfgMgr::validateConfig ( )
private
bool TRelCfgMgr::validateIface ( SPtr< TRelCfgIface ptrIface)
private

Friends And Related Function Documentation

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

Member Data Documentation

bool TRelCfgMgr::ClientLinkLayerAddress_
private
SPtr<TRelOptEcho> TRelCfgMgr::Echo
private
bool TRelCfgMgr::GuessMode
private
TContainer< SPtr<TRelCfgIface> > TRelCfgMgr::IfaceLst
private
TRelCfgMgr * TRelCfgMgr::Instance = 0
staticprotected
ERelIfaceIdOrder TRelCfgMgr::InterfaceIDOrder
private
bool TRelCfgMgr::IsDone
private
int TRelCfgMgr::NextRelayID = RELAY_MIN_IFINDEX
staticprivate
SPtr<TOpt> TRelCfgMgr::RelayID_
private
SPtr<TOptVendorData> TRelCfgMgr::RemoteID
private
std::string TRelCfgMgr::Workdir
private
std::string TRelCfgMgr::XmlFile
private

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