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

#include <OptVendorData.h>

+ Inheritance diagram for TOptVendorData:
+ Collaboration diagram for TOptVendorData:

Public Member Functions

 TOptVendorData (int type, int enterprise, char *data, int dataLen, TMsg *parent)
 TOptVendorData (int type, const char *buf, int n, TMsg *parent)
bool doDuties ()
size_t getSize ()
int getVendor ()
char * getVendorData ()
int getVendorDataLen ()
std::string getVendorDataPlain ()
virtual bool isValid () const
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)

Protected Attributes

int Vendor
char * VendorData
int VendorDataLen
- Protected Attributes inherited from TOpt
int OptType
TOptContainer SubOptions
bool Valid

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)

Constructor & Destructor Documentation

TOptVendorData::TOptVendorData ( int  type,
int  enterprise,
char *  data,
int  dataLen,
TMsg parent 
TOptVendorData::TOptVendorData ( int  type,
const char *  buf,
int  n,
TMsg parent 

Member Function Documentation

bool TOptVendorData::doDuties ( )

Implements TOpt.

Reimplemented in TRelOptRemoteID.

size_t TOptVendorData::getSize ( )

Return the size of the option, including :

  • Option number,
  • Option size
  • data
the size

Implements TOpt.

int TOptVendorData::getVendor ( )
: should return uint32_t
char * TOptVendorData::getVendorData ( )
int TOptVendorData::getVendorDataLen ( )
std::string TOptVendorData::getVendorDataPlain ( )
bool TOptVendorData::isValid ( ) const

Validate the option

true if the option is valid.

Reimplemented from TOpt.

char * TOptVendorData::storeSelf ( char *  buf)

stores option in a buffer

bufoption will be stored here
pointer to the next unused byte

Implements TOpt.

Member Data Documentation

int TOptVendorData::Vendor
char* TOptVendorData::VendorData
int TOptVendorData::VendorDataLen

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