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

#include <ClntIfaceIface.h>

+ Inheritance diagram for TClntIfaceIface:
+ Collaboration diagram for TClntIfaceIface:

Public Member Functions

 TClntIfaceIface (char *name, int id, unsigned int flags, char *mac, int maclen, char *llAddr, int llAddrCnt, char *globalAddr, int globalAddrCnt, int hwType)
 ~TClntIfaceIface ()
TContainer< SPtr< TIPv6Addr > > getDNSServerLst ()
SPtr< TIPv6AddrgetDsLiteTunnel ()
std::string getFQDN ()
unsigned int getTimeout ()
void removeAllOpts ()
bool setDNSServerLst (SPtr< TDUID > duid, SPtr< TIPv6Addr > srv, TContainer< SPtr< TIPv6Addr > > addrs)
bool setDomainLst (SPtr< TDUID > duid, SPtr< TIPv6Addr > srv, List(std::string) domains)
bool setDsLiteTunnel (SPtr< TIPv6Addr > remoteEndpoint)
bool setFQDN (SPtr< TDUID > duid, SPtr< TIPv6Addr > srv, const std::string &fqdn)
bool setLifetime (SPtr< TDUID > duid, SPtr< TIPv6Addr > srv, unsigned int life)
bool setNISDomain (SPtr< TDUID > duid, SPtr< TIPv6Addr > srv, const std::string &domain)
bool setNISPDomain (SPtr< TDUID > duid, SPtr< TIPv6Addr > srv, const std::string &domain)
bool setNISPServerLst (SPtr< TDUID > duid, SPtr< TIPv6Addr > srv, TContainer< SPtr< TIPv6Addr > > addrs)
bool setNISServerLst (SPtr< TDUID > duid, SPtr< TIPv6Addr > srv, TContainer< SPtr< TIPv6Addr > > addrs)
bool setNTPServerLst (SPtr< TDUID > duid, SPtr< TIPv6Addr > srv, TContainer< SPtr< TIPv6Addr > > addrs)
bool setSIPDomainLst (SPtr< TDUID > duid, SPtr< TIPv6Addr > srv, List(std::string) domains)
bool setSIPServerLst (SPtr< TDUID > duid, SPtr< TIPv6Addr > srv, TContainer< SPtr< TIPv6Addr > > addrs)
bool setTimezone (SPtr< TDUID > duid, SPtr< TIPv6Addr > srv, const std::string &timezone)
- Public Member Functions inherited from TIfaceIface
 TIfaceIface (const char *name, int id, unsigned int flags, char *mac, int maclen, char *llAddr, int llAddrCnt, char *globalAddr, int globalCnt, int hwType)
virtual ~TIfaceIface ()
bool addAddr (SPtr< TIPv6Addr > addr, long pref, long valid, int prefixLen)
void addGlobalAddr (SPtr< TIPv6Addr > addr)
bool addSocket (SPtr< TIPv6Addr > addr, int port, bool ifaceonly, bool reuse)
unsigned int countGlobalAddr ()
int countLLAddress ()
int countSocket ()
bool delAddr (SPtr< TIPv6Addr > addr, int prefixLen)
void delGlobalAddr (SPtr< TIPv6Addr > addr)
bool delSocket (int id)
void firstGlobalAddr ()
char * firstLLAddress ()
void firstSocket ()
bool flagLoopback ()
bool flagMulticast ()
bool flagRunning ()
bool flagUp ()
unsigned int getFlags ()
std::string getFullName ()
SPtr< TIPv6AddrgetGlobalAddr ()
int getHardwareType ()
int getID ()
char * getLLAddress ()
char * getMac ()
int getMacLen ()
bool getMBit ()
 returns M (managed) bit as received from Router Advertisement
char * getName ()
bool getOBit ()
 returns O (other conf) bit as received from Router Advertisement
int getPrefixLength ()
SPtr< TIfaceSocketgetSocket ()
SPtr< TIfaceSocketgetSocketByAddr (SPtr< TIPv6Addr > addr)
SPtr< TIfaceSocketgetSocketByFD (int fd)
void setMBit (bool m)
 set M (managed) bit as received from Router Advertisement
void setOBit (bool o)
 set O (other conf) bit as received from Router Advertisement
void setPrefixLength (int len)
bool updateAddr (SPtr< TIPv6Addr > addr, long pref, long valid)
void updateState (struct iface *x)

Private Member Functions

void addString (const char *filename, const char *str)
void delString (const char *filename, const char *str)
 List (std::string) DomainLst
 List (std::string) SIPDomainLst
void setString (const char *filename, const char *str)

Private Attributes

bool DnsConfigured
 specifies if the DNS configuration should be wiped out during first configuration
TContainer< SPtr< TIPv6Addr > > DNSServerLst
std::string FQDN
unsigned int LifetimeTimeout
unsigned int LifetimeTimestamp
std::string NISDomain
std::string NISPDomain
TContainer< SPtr< TIPv6Addr > > NISPServerLst
TContainer< SPtr< TIPv6Addr > > NISServerLst
TContainer< SPtr< TIPv6Addr > > NTPServerLst
TContainer< SPtr< TIPv6Addr > > SIPServerLst
std::string Timezone
SPtr< TIPv6AddrTunnelEndpoint

Friends

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

Additional Inherited Members

- Protected Attributes inherited from TIfaceIface
unsigned int Flags
TContainer< SPtr< TIPv6Addr > > GlobalAddrLst
int HWType
int ID
char * LLAddr
int LLAddrCnt
bool M_bit_
char * Mac
int Maclen
char Name [MAX_IFNAME_LENGTH]
bool O_bit_
int PrefixLen
char * PresLLAddr
TContainer< SPtr< TIfaceSocket > > SocketsLst

Constructor & Destructor Documentation

TClntIfaceIface::TClntIfaceIface ( char *  name,
int  id,
unsigned int  flags,
char *  mac,
int  maclen,
char *  llAddr,
int  llAddrCnt,
char *  globalAddr,
int  globalAddrCnt,
int  hwType 
)
TClntIfaceIface::~TClntIfaceIface ( )

Member Function Documentation

void TClntIfaceIface::addString ( const char *  filename,
const char *  str 
)
private
void TClntIfaceIface::delString ( const char *  filename,
const char *  str 
)
private
TContainer< SPtr< TIPv6Addr > > TClntIfaceIface::getDNSServerLst ( )
SPtr< TIPv6Addr > TClntIfaceIface::getDsLiteTunnel ( )
string TClntIfaceIface::getFQDN ( )
unsigned int TClntIfaceIface::getTimeout ( )
TClntIfaceIface::List ( std::string  )
private
TClntIfaceIface::List ( std::string  )
private
void TClntIfaceIface::removeAllOpts ( )
bool TClntIfaceIface::setDNSServerLst ( SPtr< TDUID duid,
SPtr< TIPv6Addr srv,
TContainer< SPtr< TIPv6Addr > >  addrs 
)
bool TClntIfaceIface::setDomainLst ( SPtr< TDUID duid,
SPtr< TIPv6Addr srv,
List(std::string)  domains 
)
bool TClntIfaceIface::setDsLiteTunnel ( SPtr< TIPv6Addr remoteEndpoint)
bool TClntIfaceIface::setFQDN ( SPtr< TDUID duid,
SPtr< TIPv6Addr srv,
const std::string &  fqdn 
)
bool TClntIfaceIface::setLifetime ( SPtr< TDUID duid,
SPtr< TIPv6Addr srv,
unsigned int  life 
)
bool TClntIfaceIface::setNISDomain ( SPtr< TDUID duid,
SPtr< TIPv6Addr srv,
const std::string &  domain 
)
bool TClntIfaceIface::setNISPDomain ( SPtr< TDUID duid,
SPtr< TIPv6Addr srv,
const std::string &  domain 
)
bool TClntIfaceIface::setNISPServerLst ( SPtr< TDUID duid,
SPtr< TIPv6Addr srv,
TContainer< SPtr< TIPv6Addr > >  addrs 
)
bool TClntIfaceIface::setNISServerLst ( SPtr< TDUID duid,
SPtr< TIPv6Addr srv,
TContainer< SPtr< TIPv6Addr > >  addrs 
)
bool TClntIfaceIface::setNTPServerLst ( SPtr< TDUID duid,
SPtr< TIPv6Addr srv,
TContainer< SPtr< TIPv6Addr > >  addrs 
)
bool TClntIfaceIface::setSIPDomainLst ( SPtr< TDUID duid,
SPtr< TIPv6Addr srv,
List(std::string)  domains 
)
bool TClntIfaceIface::setSIPServerLst ( SPtr< TDUID duid,
SPtr< TIPv6Addr srv,
TContainer< SPtr< TIPv6Addr > >  addrs 
)
void TClntIfaceIface::setString ( const char *  filename,
const char *  str 
)
private
bool TClntIfaceIface::setTimezone ( SPtr< TDUID duid,
SPtr< TIPv6Addr srv,
const std::string &  timezone 
)

Friends And Related Function Documentation

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

Member Data Documentation

bool TClntIfaceIface::DnsConfigured
private

specifies if the DNS configuration should be wiped out during first configuration

Controlled with FLUSH_OTHER_CONFIGURED_DNS_SERVERS in Misc/Portable.h

TContainer< SPtr<TIPv6Addr> > TClntIfaceIface::DNSServerLst
private
std::string TClntIfaceIface::FQDN
private
unsigned int TClntIfaceIface::LifetimeTimeout
private
unsigned int TClntIfaceIface::LifetimeTimestamp
private
std::string TClntIfaceIface::NISDomain
private
std::string TClntIfaceIface::NISPDomain
private
TContainer< SPtr<TIPv6Addr> > TClntIfaceIface::NISPServerLst
private
TContainer< SPtr<TIPv6Addr> > TClntIfaceIface::NISServerLst
private
TContainer< SPtr<TIPv6Addr> > TClntIfaceIface::NTPServerLst
private
TContainer< SPtr<TIPv6Addr> > TClntIfaceIface::SIPServerLst
private
std::string TClntIfaceIface::Timezone
private
SPtr<TIPv6Addr> TClntIfaceIface::TunnelEndpoint
private

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