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

#include <SrvOptIAPrefix.h>

+ Inheritance diagram for TSrvOptIAPrefix:
+ Collaboration diagram for TSrvOptIAPrefix:

Public Member Functions

 TSrvOptIAPrefix (char *addr, int n, TMsg *parent)
 TSrvOptIAPrefix (SPtr< TIPv6Addr > prefix, char length, unsigned long pref, unsigned long valid, TMsg *parent)
bool doDuties ()
- Public Member Functions inherited from TOptIAPrefix
 TOptIAPrefix (const char *addr, size_t len, TMsg *parent)
 TOptIAPrefix (SPtr< TIPv6Addr > addr, char prefix_length, unsigned long pref, unsigned long valid, TMsg *parent)
unsigned long getPref () const
SPtr< TIPv6AddrgetPrefix () const
uint8_t getPrefixLength () const
size_t getSize ()
unsigned long getValid () const
virtual bool isValid () const
void setPref (unsigned long pref)
void setPrefixLenght (char prefix_length)
void setValid (unsigned long valid)
char * storeSelf (char *buf)
- Public Member Functions inherited from TOpt
 TOpt (int optType, TMsg *parent)
virtual ~TOpt ()
void addOption (TOptPtr opt)
int countOption ()
void delAllOptions ()
bool delOption (uint16_t type)
 Deletes all specified options of that type.
void firstOption ()
TOptPtr getOption (int type)
TOptPtr getOption ()
int getOptType ()
virtual std::string getPlain ()
void setParent (TMsg *Parent)

Additional Inherited Members

- Public Types inherited from TOpt
enum  EOptionLayout {
  Layout_Addr, Layout_AddrLst, Layout_String, Layout_StringLst,
  Layout_Duid, Layout_Generic
}
- Static Public Member Functions inherited from TOpt
static TOptPtr getOption (const TOptList &list, uint16_t opt_type)
static bool parseOptions (TOptContainer &options, const char *buf, size_t len, TMsg *parent, uint16_t placeId=0, std::string place="option")
 Parses options or suboptions, creates appropriate objects and store them in options container.
- Static Public Attributes inherited from TOpt
static const size_t OPTION6_HDR_LEN = 4
 length of a DHCPv6 option header
- Protected Member Functions inherited from TOpt
int getSubOptSize ()
char * storeHeader (char *buf)
char * storeSubOpt (char *buf)
- Protected Attributes inherited from TOpt
int OptType
TMsgParent
TOptContainer SubOptions
bool Valid

Constructor & Destructor Documentation

TSrvOptIAPrefix::TSrvOptIAPrefix ( char *  addr,
int  n,
TMsg parent 
)
TSrvOptIAPrefix::TSrvOptIAPrefix ( SPtr< TIPv6Addr prefix,
char  length,
unsigned long  pref,
unsigned long  valid,
TMsg parent 
)

Member Function Documentation

bool TSrvOptIAPrefix::doDuties ( )
virtual

Reimplemented from TOptIAPrefix.


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