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

#include <ClntCfgIface.h>

+ Collaboration diagram for TClntCfgIface:

Classes

class  TOptionStatus

Public Types

typedef std::list< SPtr
< TOptionStatus > > 
TOptionStatusLst

Public Member Functions

 TClntCfgIface (const std::string &ifaceName)
 TClntCfgIface (int ifaceNr)
void addExtraOption (SPtr< TOpt > extra, TOpt::EOptionLayout layout, bool sendAlways)
void addExtraOption (int optType, TOpt::EOptionLayout layout, bool sendAlways)
void addIA (SPtr< TClntCfgIA > ptr)
void addPD (SPtr< TClntCfgPD > ptr)
void addTA (SPtr< TClntCfgTA > ta)
int countIA ()
int countPD ()
int countTA ()
void firstIA ()
void firstPD ()
void firstTA ()
void firstVendorSpec ()
SPtr< TIPv6AddrgetBindToAddr ()
 Returns link-local address to which the client should bind (if set)
EState getDNSServerState ()
unsigned long getDNSServerTimeout ()
EState getDomainState ()
unsigned long getDomainTimeout ()
SPtr< TOptionStatusgetExtaOptionState (int type)
TOptionStatusLstgetExtraOptions ()
EState getFQDNState ()
unsigned long getFQDNTimeout ()
std::string getFullName (void)
SPtr< TClntCfgIAgetIA ()
SPtr< TClntCfgIAgetIA (int iaid)
int getID (void)
EState getKeyGenerationState ()
EState getLifetimeState ()
std::string getName (void)
EState getNISDomainState ()
unsigned long getNISDomainTimeout ()
EState getNISPDomainState ()
unsigned long getNISPDomainTimeout ()
EState getNISPServerState ()
unsigned long getNISPServerTimeout ()
EState getNISServerState ()
unsigned long getNISServerTimeout ()
EState getNTPServerState ()
unsigned long getNTPServerTimeout ()
int getOnLinkPrefixLength ()
SPtr< TClntCfgPDgetPD ()
SPtr< TClntCfgPDgetPD (int iaid)
TContainer< SPtr< TIPv6Addr > > * getProposedDNSServerLst ()
std::string getProposedFQDN ()
std::string getProposedNISDomain ()
std::string getProposedNISPDomain ()
TContainer< SPtr< TIPv6Addr > > * getProposedNISPServerLst ()
TContainer< SPtr< TIPv6Addr > > * getProposedNISServerLst ()
TContainer< SPtr< TIPv6Addr > > * getProposedNTPServerLst ()
TContainer< SPtr< TIPv6Addr > > * getProposedSIPServerLst ()
std::string getProposedTimezone ()
bool getRapidCommit ()
EState getRoutingEnabledState ()
EState getSIPDomainState ()
unsigned long getSIPDomainTimeout ()
EState getSIPServerState ()
unsigned long getSIPServerTimeout ()
SPtr< TClntCfgTAgetTA ()
EState getTimezoneState ()
unsigned long getTimezoneTimeout ()
bool getUnicast ()
SPtr< TOptVendorSpecInfogetVendorSpec ()
int getVendorSpecCount ()
EState getVendorSpecState ()
bool isReqDNSServer ()
bool isReqDomain ()
bool isReqFQDN ()
bool isReqLifetime ()
bool isReqNISDomain ()
bool isReqNISPDomain ()
bool isReqNISPServer ()
bool isReqNISServer ()
bool isReqNTPServer ()
bool isReqSIPDomain ()
bool isReqSIPServer ()
bool isReqTimezone ()
bool isReqVendorSpec ()
bool isRoutingEnabled ()
bool isServerRejected (SPtr< TIPv6Addr > addr, SPtr< TDUID > duid)
 List (std::string)*getProposedDomainLst()
 List (std::string)*getProposedSIPDomainLst()
bool noConfig ()
void setBindToAddr (SPtr< TIPv6Addr > link_local)
 sets link-local address to bind to
void setDNSServerState (EState state)
void setDomainState (EState state)
void setFQDNState (EState state)
void setIfaceID (int ifaceID)
void setIfaceName (const std::string &ifaceName)
void setKeyGenerationState (EState state)
void setLifetimeState (EState state)
void setMbit (bool m_bit)
void setNISDomainState (EState state)
void setNISPDomainState (EState state)
void setNISPServerState (EState state)
void setNISServerState (EState state)
void setNoConfig ()
void setNTPServerState (EState state)
void setObit (bool o_bit)
void setOnLinkPrefixLength (int len)
void setOptions (SPtr< TClntParsGlobalOpt > opt)
void setRapidCommit (bool rapCom)
void setRouting (bool enabled)
void setRoutingEnabledState (EState state)
void setSIPDomainState (EState state)
void setSIPServerState (EState state)
void setTimezoneState (EState state)
void setVendorSpec (TContainer< SPtr< TOptVendorSpecInfo > > vendorSpecList)
void setVendorSpecState (EState state)
bool stateless ()
void vendorSpecSupported (bool support)

Private Member Functions

 List (std::string) DomainLst
 List (std::string) SIPDomainLst
void setDefaults ()

Private Attributes

SPtr< TIPv6AddrBindToAddr_
 Specify bind-to address (may be null)
TContainer< SPtr< TClntCfgTA > > ClntCfgTALst
TContainer< SPtr< TIPv6Addr > > DNSServerLst
EState DNSServerState
EState DomainState
TOptionStatusLst ExtraOpts
 Extra options to be sent to server.
std::string FQDN
EState FQDNState
TContainer< SPtr< TClntCfgIA > > IALst
int ID
std::string IfaceName
EState KeyGenerationState
EState LifetimeState
std::string NISDomain
EState NISDomainState
std::string NISPDomain
EState NISPDomainState
TContainer< SPtr< TIPv6Addr > > NISPServerLst
EState NISPServerState
TContainer< SPtr< TIPv6Addr > > NISServerLst
EState NISServerState
bool NoConfig
TContainer< SPtr< TIPv6Addr > > NTPServerLst
EState NTPServerState
TContainer< SPtr< TClntCfgPD > > PDLst
EState PrefixDelegationState
int PrefixLength
TContainer< SPtr< THostID > > PrefSrvLst
bool RapidCommit
TContainer< SPtr< THostID > > RejectedSrvLst
bool ReqDNSServer
bool ReqDomain
bool ReqFQDN
bool ReqLifetime
bool ReqNISDomain
bool ReqNISPDomain
bool ReqNISPServer
bool ReqNISServer
bool ReqNTPServer
bool ReqPrefixDelegation
bool ReqSIPDomain
bool ReqSIPServer
bool ReqTimezone
bool ReqVendorSpec
bool RoutingEnabled
EState RoutingEnabledState
EState SIPDomainState
TContainer< SPtr< TIPv6Addr > > SIPServerLst
EState SIPServerState
bool Stateful_
std::string Timezone
EState TimezoneState
bool Unicast
TContainer< SPtr
< TOptVendorSpecInfo > > 
VendorSpecLst
EState VendorSpecState

Friends

std::ostream & operator<< (std::ostream &, TClntCfgIface &)

Member Typedef Documentation

Constructor & Destructor Documentation

TClntCfgIface::TClntCfgIface ( const std::string &  ifaceName)
TClntCfgIface::TClntCfgIface ( int  ifaceNr)

Member Function Documentation

void TClntCfgIface::addExtraOption ( SPtr< TOpt extra,
TOpt::EOptionLayout  layout,
bool  sendAlways 
)

add extra option to the list of supported extra options

Parameters
extrasmart pointer to the supported option (to be sent)
layoutspecifies layout of the option
sendAlwaysshould this option be always sent? Even when already configured?
void TClntCfgIface::addExtraOption ( int  opttype,
TOpt::EOptionLayout  layout,
bool  sendAlways 
)

add extra option to the list of supported extra options

Parameters
opttypecode of the supported option
layoutdefines layout (see TOpt::EOptionLayout)
sendAlwaysshould this option be always sent? Even when already configured?
void TClntCfgIface::addIA ( SPtr< TClntCfgIA ptr)
void TClntCfgIface::addPD ( SPtr< TClntCfgPD ptr)
void TClntCfgIface::addTA ( SPtr< TClntCfgTA ta)
int TClntCfgIface::countIA ( )
int TClntCfgIface::countPD ( )
int TClntCfgIface::countTA ( )
void TClntCfgIface::firstIA ( )
void TClntCfgIface::firstPD ( )
void TClntCfgIface::firstTA ( )
void TClntCfgIface::firstVendorSpec ( )
SPtr< TIPv6Addr > TClntCfgIface::getBindToAddr ( )

Returns link-local address to which the client should bind (if set)

Returns
the address to bind to (or NULL if not set)
EState TClntCfgIface::getDNSServerState ( )
unsigned long TClntCfgIface::getDNSServerTimeout ( )
EState TClntCfgIface::getDomainState ( )
unsigned long TClntCfgIface::getDomainTimeout ( )
SPtr< TClntCfgIface::TOptionStatus > TClntCfgIface::getExtaOptionState ( int  type)
TClntCfgIface::TOptionStatusLst & TClntCfgIface::getExtraOptions ( )
EState TClntCfgIface::getFQDNState ( )
unsigned long TClntCfgIface::getFQDNTimeout ( )
string TClntCfgIface::getFullName ( void  )
SPtr< TClntCfgIA > TClntCfgIface::getIA ( )
SPtr< TClntCfgIA > TClntCfgIface::getIA ( int  iaid)
int TClntCfgIface::getID ( void  )
EState TClntCfgIface::getKeyGenerationState ( )
EState TClntCfgIface::getLifetimeState ( )
string TClntCfgIface::getName ( void  )
EState TClntCfgIface::getNISDomainState ( )
unsigned long TClntCfgIface::getNISDomainTimeout ( )
EState TClntCfgIface::getNISPDomainState ( )
unsigned long TClntCfgIface::getNISPDomainTimeout ( )
EState TClntCfgIface::getNISPServerState ( )
unsigned long TClntCfgIface::getNISPServerTimeout ( )
EState TClntCfgIface::getNISServerState ( )
unsigned long TClntCfgIface::getNISServerTimeout ( )
EState TClntCfgIface::getNTPServerState ( )
unsigned long TClntCfgIface::getNTPServerTimeout ( )
int TClntCfgIface::getOnLinkPrefixLength ( )
SPtr< TClntCfgPD > TClntCfgIface::getPD ( )
SPtr< TClntCfgPD > TClntCfgIface::getPD ( int  iaid)
TContainer< SPtr< TIPv6Addr > > * TClntCfgIface::getProposedDNSServerLst ( )
string TClntCfgIface::getProposedFQDN ( )
string TClntCfgIface::getProposedNISDomain ( )
string TClntCfgIface::getProposedNISPDomain ( )
TContainer< SPtr< TIPv6Addr > > * TClntCfgIface::getProposedNISPServerLst ( )
TContainer< SPtr< TIPv6Addr > > * TClntCfgIface::getProposedNISServerLst ( )
TContainer< SPtr< TIPv6Addr > > * TClntCfgIface::getProposedNTPServerLst ( )
TContainer< SPtr< TIPv6Addr > > * TClntCfgIface::getProposedSIPServerLst ( )
string TClntCfgIface::getProposedTimezone ( )
bool TClntCfgIface::getRapidCommit ( )
EState TClntCfgIface::getRoutingEnabledState ( )
EState TClntCfgIface::getSIPDomainState ( )
unsigned long TClntCfgIface::getSIPDomainTimeout ( )
EState TClntCfgIface::getSIPServerState ( )
unsigned long TClntCfgIface::getSIPServerTimeout ( )
SPtr< TClntCfgTA > TClntCfgIface::getTA ( )
EState TClntCfgIface::getTimezoneState ( )
unsigned long TClntCfgIface::getTimezoneTimeout ( )
bool TClntCfgIface::getUnicast ( )
SPtr< TOptVendorSpecInfo > TClntCfgIface::getVendorSpec ( )
int TClntCfgIface::getVendorSpecCount ( )
EState TClntCfgIface::getVendorSpecState ( )
bool TClntCfgIface::isReqDNSServer ( )
bool TClntCfgIface::isReqDomain ( )
bool TClntCfgIface::isReqFQDN ( )
bool TClntCfgIface::isReqLifetime ( )
bool TClntCfgIface::isReqNISDomain ( )
bool TClntCfgIface::isReqNISPDomain ( )
bool TClntCfgIface::isReqNISPServer ( )
bool TClntCfgIface::isReqNISServer ( )
bool TClntCfgIface::isReqNTPServer ( )
bool TClntCfgIface::isReqSIPDomain ( )
bool TClntCfgIface::isReqSIPServer ( )
bool TClntCfgIface::isReqTimezone ( )
Todo:
: Once set, these are never used
bool TClntCfgIface::isReqVendorSpec ( )
bool TClntCfgIface::isRoutingEnabled ( )
bool TClntCfgIface::isServerRejected ( SPtr< TIPv6Addr addr,
SPtr< TDUID duid 
)
TClntCfgIface::List ( std::string  )
TClntCfgIface::List ( std::string  )
TClntCfgIface::List ( std::string  )
private
TClntCfgIface::List ( std::string  )
private
bool TClntCfgIface::noConfig ( )
void TClntCfgIface::setBindToAddr ( SPtr< TIPv6Addr link_local)

sets link-local address to bind to

Parameters
link_localthe link local address the client will bind to
void TClntCfgIface::setDefaults ( )
private
void TClntCfgIface::setDNSServerState ( EState  state)
void TClntCfgIface::setDomainState ( EState  state)
void TClntCfgIface::setFQDNState ( EState  state)
void TClntCfgIface::setIfaceID ( int  ifaceID)
void TClntCfgIface::setIfaceName ( const std::string &  ifaceName)
void TClntCfgIface::setKeyGenerationState ( EState  state)
void TClntCfgIface::setLifetimeState ( EState  state)
void TClntCfgIface::setMbit ( bool  m_bit)
void TClntCfgIface::setNISDomainState ( EState  state)
void TClntCfgIface::setNISPDomainState ( EState  state)
void TClntCfgIface::setNISPServerState ( EState  state)
void TClntCfgIface::setNISServerState ( EState  state)
void TClntCfgIface::setNoConfig ( )
void TClntCfgIface::setNTPServerState ( EState  state)
void TClntCfgIface::setObit ( bool  o_bit)
void TClntCfgIface::setOnLinkPrefixLength ( int  len)
void TClntCfgIface::setOptions ( SPtr< TClntParsGlobalOpt opt)
void TClntCfgIface::setRapidCommit ( bool  rapCom)
void TClntCfgIface::setRouting ( bool  enabled)
void TClntCfgIface::setRoutingEnabledState ( EState  state)
void TClntCfgIface::setSIPDomainState ( EState  state)
void TClntCfgIface::setSIPServerState ( EState  state)
void TClntCfgIface::setTimezoneState ( EState  state)
void TClntCfgIface::setVendorSpec ( TContainer< SPtr< TOptVendorSpecInfo > >  vendorSpecList)
void TClntCfgIface::setVendorSpecState ( EState  state)
bool TClntCfgIface::stateless ( )
void TClntCfgIface::vendorSpecSupported ( bool  support)

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
TClntCfgIface  
)
friend

Member Data Documentation

SPtr<TIPv6Addr> TClntCfgIface::BindToAddr_
private

Specify bind-to address (may be null)

TContainer< SPtr<TClntCfgTA> > TClntCfgIface::ClntCfgTALst
private
TContainer< SPtr<TIPv6Addr> > TClntCfgIface::DNSServerLst
private
EState TClntCfgIface::DNSServerState
private
EState TClntCfgIface::DomainState
private
TOptionStatusLst TClntCfgIface::ExtraOpts
private

Extra options to be sent to server.

std::string TClntCfgIface::FQDN
private
EState TClntCfgIface::FQDNState
private
TContainer< SPtr<TClntCfgIA> > TClntCfgIface::IALst
private
int TClntCfgIface::ID
private
std::string TClntCfgIface::IfaceName
private
EState TClntCfgIface::KeyGenerationState
private
EState TClntCfgIface::LifetimeState
private
std::string TClntCfgIface::NISDomain
private
EState TClntCfgIface::NISDomainState
private
std::string TClntCfgIface::NISPDomain
private
EState TClntCfgIface::NISPDomainState
private
TContainer< SPtr<TIPv6Addr> > TClntCfgIface::NISPServerLst
private
EState TClntCfgIface::NISPServerState
private
TContainer< SPtr<TIPv6Addr> > TClntCfgIface::NISServerLst
private
EState TClntCfgIface::NISServerState
private
bool TClntCfgIface::NoConfig
private
TContainer< SPtr<TIPv6Addr> > TClntCfgIface::NTPServerLst
private
EState TClntCfgIface::NTPServerState
private
TContainer< SPtr<TClntCfgPD> > TClntCfgIface::PDLst
private
EState TClntCfgIface::PrefixDelegationState
private
int TClntCfgIface::PrefixLength
private
TContainer< SPtr<THostID> > TClntCfgIface::PrefSrvLst
private
bool TClntCfgIface::RapidCommit
private
TContainer< SPtr<THostID> > TClntCfgIface::RejectedSrvLst
private
bool TClntCfgIface::ReqDNSServer
private
Todo:
: Remove those booleans and use State directly
bool TClntCfgIface::ReqDomain
private
bool TClntCfgIface::ReqFQDN
private
bool TClntCfgIface::ReqLifetime
private
bool TClntCfgIface::ReqNISDomain
private
bool TClntCfgIface::ReqNISPDomain
private
bool TClntCfgIface::ReqNISPServer
private
bool TClntCfgIface::ReqNISServer
private
bool TClntCfgIface::ReqNTPServer
private
bool TClntCfgIface::ReqPrefixDelegation
private
bool TClntCfgIface::ReqSIPDomain
private
bool TClntCfgIface::ReqSIPServer
private
bool TClntCfgIface::ReqTimezone
private
bool TClntCfgIface::ReqVendorSpec
private
bool TClntCfgIface::RoutingEnabled
private
EState TClntCfgIface::RoutingEnabledState
private
EState TClntCfgIface::SIPDomainState
private
TContainer< SPtr<TIPv6Addr> > TClntCfgIface::SIPServerLst
private
EState TClntCfgIface::SIPServerState
private
bool TClntCfgIface::Stateful_
private
std::string TClntCfgIface::Timezone
private
EState TClntCfgIface::TimezoneState
private
bool TClntCfgIface::Unicast
private
TContainer< SPtr<TOptVendorSpecInfo> > TClntCfgIface::VendorSpecLst
private
EState TClntCfgIface::VendorSpecState
private

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