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

#include <SrvCfgOptions.h>

+ Inheritance diagram for TSrvCfgOptions:
+ Collaboration diagram for TSrvCfgOptions:

Public Member Functions

 TSrvCfgOptions ()
 TSrvCfgOptions (SPtr< TDUID > duid)
 TSrvCfgOptions (SPtr< TOptVendorData > remoteid)
 TSrvCfgOptions (SPtr< TIPv6Addr > clntaddr)
void addExtraOption (SPtr< TOpt > extra, bool always)
void addExtraOptions (const TOptList &extra)
 Copies a list of extra options.
void addForcedOptions (const TOptList &extra)
 Copies a list of forced options.
SPtr< TIPv6AddrgetAddr () const
SPtr< TIPv6AddrgetClntAddr () const
SPtr< TDUIDgetDuid () const
SPtr< TOptgetExtraOption (uint16_t type)
const TOptListgetExtraOptions ()
const TOptListgetForcedOptions ()
SPtr< TIPv6AddrgetPrefix ()
uint8_t getPrefixLen ()
SPtr< TOptVendorDatagetRemoteID () const
TContainer< SPtr
< TOptVendorSpecInfo > > 
getVendorSpecLst (unsigned int vendor=0)
void setAddr (SPtr< TIPv6Addr > addr)
bool setOptions (SPtr< TSrvParsGlobalOpt > opt)
void setPrefix (SPtr< TIPv6Addr > prefix, uint8_t length)

Private Member Functions

void SetDefaults ()

Private Attributes

SPtr< TIPv6AddrAddr
SPtr< TIPv6AddrClntAddr
SPtr< TDUIDDuid
TOptList ExtraOpts_
TOptList ForcedOpts_
SPtr< TIPv6AddrPrefix
uint8_t PrefixLen
SPtr< TOptVendorDataRemoteID
bool VendorSpecSupport

Friends

std::ostream & operator<< (std::ostream &out, TSrvCfgIface &iface)
std::ostream & operator<< (std::ostream &out, TSrvCfgOptions &opt)

Constructor & Destructor Documentation

TSrvCfgOptions::TSrvCfgOptions ( )
TSrvCfgOptions::TSrvCfgOptions ( SPtr< TDUID duid)
TSrvCfgOptions::TSrvCfgOptions ( SPtr< TOptVendorData remoteid)
TSrvCfgOptions::TSrvCfgOptions ( SPtr< TIPv6Addr clntaddr)

Member Function Documentation

void TSrvCfgOptions::addExtraOption ( SPtr< TOpt extra,
bool  always 
)
void TSrvCfgOptions::addExtraOptions ( const TOptList extra)

Copies a list of extra options.

Extra options are options that may be requested by a client. This list also contains forced options (i.e. options that are sent regardless if client asks for them or not).

Parameters
extralist of options to be copied
void TSrvCfgOptions::addForcedOptions ( const TOptList forced)

Copies a list of forced options.

This method add a list of forced options. Forced options are the ones that are sent to a client, regardless if client requested them or not.

Parameters
forcedlist of forced options to be copied
SPtr< TIPv6Addr > TSrvCfgOptions::getAddr ( ) const
SPtr< TIPv6Addr > TSrvCfgOptions::getClntAddr ( ) const
SPtr< TDUID > TSrvCfgOptions::getDuid ( ) const
TOptPtr TSrvCfgOptions::getExtraOption ( uint16_t  type)
const TOptList & TSrvCfgOptions::getExtraOptions ( )
const TOptList & TSrvCfgOptions::getForcedOptions ( )
SPtr<TIPv6Addr> TSrvCfgOptions::getPrefix ( )
inline
uint8_t TSrvCfgOptions::getPrefixLen ( )
inline
SPtr< TOptVendorData > TSrvCfgOptions::getRemoteID ( ) const
TContainer< SPtr< TOptVendorSpecInfo > > TSrvCfgOptions::getVendorSpecLst ( unsigned int  vendor = 0)
void TSrvCfgOptions::setAddr ( SPtr< TIPv6Addr addr)
void TSrvCfgOptions::SetDefaults ( )
private
bool TSrvCfgOptions::setOptions ( SPtr< TSrvParsGlobalOpt opt)

Reimplemented in TSrvCfgIface.

void TSrvCfgOptions::setPrefix ( SPtr< TIPv6Addr prefix,
uint8_t  length 
)
inline

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
TSrvCfgIface iface 
)
friend
std::ostream& operator<< ( std::ostream &  out,
TSrvCfgOptions opt 
)
friend

Member Data Documentation

SPtr<TIPv6Addr> TSrvCfgOptions::Addr
private
SPtr<TIPv6Addr> TSrvCfgOptions::ClntAddr
private
SPtr<TDUID> TSrvCfgOptions::Duid
private
TOptList TSrvCfgOptions::ExtraOpts_
private
TOptList TSrvCfgOptions::ForcedOpts_
private
SPtr<TIPv6Addr> TSrvCfgOptions::Prefix
private
uint8_t TSrvCfgOptions::PrefixLen
private
SPtr<TOptVendorData> TSrvCfgOptions::RemoteID
private
bool TSrvCfgOptions::VendorSpecSupport
private

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