INET Framework for OMNeT++/OMNEST
PacketDrillSctpParameter Class Reference

#include <PacketDrillUtils.h>

Inheritance diagram for PacketDrillSctpParameter:

Public Member Functions

 PacketDrillSctpParameter (uint16 type_, int16 len_, void *content_)
 
 ~PacketDrillSctpParameter ()
 
int32 getValue () const
 
cQueue * getList ()
 
uint32 getFlags () const
 
void setFlags (uint32 flgs_)
 
int16 getLength () const
 
uint16 getType () const
 
ByteArraygetByteList ()
 
void setByteArrayPointer (ByteArray *ptr)
 
void * getContent ()
 

Private Attributes

int32 parameterValue
 
cQueue * parameterList
 
int16 parameterLength
 
ByteArraybytearray
 
uint32 flags
 
uint16 type
 
void * content
 

Constructor & Destructor Documentation

PacketDrillSctpParameter::PacketDrillSctpParameter ( uint16  type_,
int16  len_,
void *  content_ 
)
435 {
436  parameterValue = 0;
437  uint32 flgs = 0;
438  type = type_;
439  if (len == -1)
442  parameterList = nullptr;
443  content = nullptr;
444 
445  if (!content_) {
446  flgs |= FLAG_CHUNK_VALUE_NOCHECK;
447  parameterList = nullptr;
448  } else {
449  switch (type) {
450  case SUPPORTED_EXTENSIONS: {
451  PacketDrillBytes *pdb = (PacketDrillBytes *)content_;
452  this->setByteArrayPointer(pdb->getByteList());
453  break;
454  }
456  parameterList = (cQueue *)(content_);
457  break;
458  }
459  default:
460  content = content_;
461  }
462  }
463 
464  flags = flgs;
465 }
int16 parameterLength
Definition: PacketDrillUtils.h:740
uint16_t len
Definition: TCP_NSC.cc:85
#define FLAG_CHUNK_VALUE_NOCHECK
Definition: PacketDrillUtils.h:99
Definition: SCTPAssociation.h:170
#define FLAG_CHUNK_LENGTH_NOCHECK
Definition: PacketDrillUtils.h:98
int32 parameterValue
Definition: PacketDrillUtils.h:738
void * content
Definition: PacketDrillUtils.h:744
void setByteArrayPointer(ByteArray *ptr)
Definition: PacketDrillUtils.h:754
uint16 type
Definition: PacketDrillUtils.h:743
ByteArray * getByteList()
Definition: PacketDrillUtils.h:674
uint32_t uint32
Definition: Compat.h:30
Definition: SCTPAssociation.h:181
cQueue * parameterList
Definition: PacketDrillUtils.h:739
uint32 flags
Definition: PacketDrillUtils.h:742
Definition: PacketDrillUtils.h:666
PacketDrillSctpParameter::~PacketDrillSctpParameter ( )
431 {
432 }

Member Function Documentation

ByteArray* PacketDrillSctpParameter::getByteList ( )
inline

Referenced by PacketDrill::buildInitAckChunk(), and PacketDrill::buildInitChunk().

753 { return bytearray; };
ByteArray * bytearray
Definition: PacketDrillUtils.h:741
void* PacketDrillSctpParameter::getContent ( )
inline

Referenced by PacketDrill::buildReconfigChunk().

755 { return content; };
void * content
Definition: PacketDrillUtils.h:744
uint32 PacketDrillSctpParameter::getFlags ( ) const
inline

Referenced by PacketDrill::buildHeartbeatChunk().

749 { return flags; };
uint32 flags
Definition: PacketDrillUtils.h:742
int16 PacketDrillSctpParameter::getLength ( ) const
inline

Referenced by PacketDrill::buildHeartbeatAckChunk(), and PacketDrill::buildHeartbeatChunk().

751 { return parameterLength; };
int16 parameterLength
Definition: PacketDrillUtils.h:740
cQueue* PacketDrillSctpParameter::getList ( )
inline

Referenced by PacketDrill::buildInitAckChunk(), and PacketDrill::buildInitChunk().

748 { return parameterList; };
cQueue * parameterList
Definition: PacketDrillUtils.h:739
uint16 PacketDrillSctpParameter::getType ( ) const
inline

Referenced by PacketDrill::buildInitAckChunk(), PacketDrill::buildInitChunk(), and PacketDrill::buildReconfigChunk().

752 { return type; };
uint16 type
Definition: PacketDrillUtils.h:743
int32 PacketDrillSctpParameter::getValue ( ) const
inline
747 { return parameterValue; };
int32 parameterValue
Definition: PacketDrillUtils.h:738
void PacketDrillSctpParameter::setByteArrayPointer ( ByteArray ptr)
inline
754 { bytearray = ptr; };
ByteArray * bytearray
Definition: PacketDrillUtils.h:741
void PacketDrillSctpParameter::setFlags ( uint32  flgs_)
inline
750 { flags = flgs_; };
uint32 flags
Definition: PacketDrillUtils.h:742

Member Data Documentation

ByteArray* PacketDrillSctpParameter::bytearray
private
void* PacketDrillSctpParameter::content
private
uint32 PacketDrillSctpParameter::flags
private
int16 PacketDrillSctpParameter::parameterLength
private
cQueue* PacketDrillSctpParameter::parameterList
private
int32 PacketDrillSctpParameter::parameterValue
private
uint16 PacketDrillSctpParameter::type
private

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