INET Framework for OMNeT++/OMNEST
inet::IPv4OptionTimestamp Class Reference

Class generated from inet/networklayer/ipv4/IPv4Datagram.msg:129 by nedtool. More...

#include <IPv4Datagram_m.h>

Inheritance diagram for inet::IPv4OptionTimestamp:
inet::IPv4Option inet::TLVOptionBase

Public Member Functions

 IPv4OptionTimestamp ()
 
 IPv4OptionTimestamp (const IPv4OptionTimestamp &other)
 
virtual ~IPv4OptionTimestamp ()
 
IPv4OptionTimestampoperator= (const IPv4OptionTimestamp &other)
 
virtual IPv4OptionTimestampdup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual int getFlag () const
 
virtual void setFlag (int flag)
 
virtual short getOverflow () const
 
virtual void setOverflow (short overflow)
 
virtual short getNextIdx () const
 
virtual void setNextIdx (short nextIdx)
 
virtual void setRecordAddressArraySize (unsigned int size)
 
virtual unsigned int getRecordAddressArraySize () const
 
virtual IPv4AddressgetRecordAddress (unsigned int k)
 
virtual const IPv4AddressgetRecordAddress (unsigned int k) const
 
virtual void setRecordAddress (unsigned int k, const IPv4Address &recordAddress)
 
virtual void setRecordTimestampArraySize (unsigned int size)
 
virtual unsigned int getRecordTimestampArraySize () const
 
virtual ::omnetpp::simtime_t getRecordTimestamp (unsigned int k) const
 
virtual void setRecordTimestamp (unsigned int k,::omnetpp::simtime_t recordTimestamp)
 
- Public Member Functions inherited from inet::IPv4Option
 IPv4Option ()
 
 IPv4Option (const IPv4Option &other)
 
virtual ~IPv4Option ()
 
IPv4Optionoperator= (const IPv4Option &other)
 
- Public Member Functions inherited from inet::TLVOptionBase
 TLVOptionBase ()
 
 TLVOptionBase (const TLVOptionBase &other)
 
virtual ~TLVOptionBase ()
 
TLVOptionBaseoperator= (const TLVOptionBase &other)
 
virtual short getType () const
 
virtual void setType (short type)
 
virtual short getLength () const
 
virtual void setLength (short length)
 

Protected Member Functions

bool operator== (const IPv4OptionTimestamp &)
 
- Protected Member Functions inherited from inet::IPv4Option
bool operator== (const IPv4Option &)
 
- Protected Member Functions inherited from inet::TLVOptionBase
bool operator== (const TLVOptionBase &)
 

Protected Attributes

int flag
 
short overflow
 
short nextIdx
 
IPv4AddressrecordAddress
 
unsigned int recordAddress_arraysize
 
::omnetpp::simtime_t * recordTimestamp
 
unsigned int recordTimestamp_arraysize
 
- Protected Attributes inherited from inet::TLVOptionBase
short type
 
short length
 

Private Member Functions

void copy (const IPv4OptionTimestamp &other)
 

Detailed Description

Class generated from inet/networklayer/ipv4/IPv4Datagram.msg:129 by nedtool.

//
// Option structure: Timestamp
//
class IPv4OptionTimestamp extends IPv4Option
{
    type = IPOPTION_TIMESTAMP;
    // length = 4 + 4 * getRecordAddressArraySize() + 4 * getRecordTimestampArraySize();
    int flag @enum(TimestampFlag);
    short overflow;
    short nextIdx;
    // pointer = 5 + (flag == IP_TIMESTAMP_TIMESTAMP_ONLY ? 4 : 8) * nextIdx
    // use either up to 4 addresses with timestamps or
    // only up to 9 timestamps, according to the flag
    IPv4Address recordAddress[];
    simtime_t recordTimestamp[];
}

Constructor & Destructor Documentation

inet::IPv4OptionTimestamp::IPv4OptionTimestamp ( )
inet::IPv4OptionTimestamp::IPv4OptionTimestamp ( const IPv4OptionTimestamp other)
virtual inet::IPv4OptionTimestamp::~IPv4OptionTimestamp ( )
virtual

Member Function Documentation

void inet::IPv4OptionTimestamp::copy ( const IPv4OptionTimestamp other)
private
virtual IPv4OptionTimestamp* inet::IPv4OptionTimestamp::dup ( ) const
inlineoverridevirtual

Reimplemented from inet::IPv4Option.

343 {return new IPv4OptionTimestamp(*this);}
virtual int inet::IPv4OptionTimestamp::getFlag ( ) const
virtual
virtual short inet::IPv4OptionTimestamp::getNextIdx ( ) const
virtual
virtual short inet::IPv4OptionTimestamp::getOverflow ( ) const
virtual
virtual IPv4Address& inet::IPv4OptionTimestamp::getRecordAddress ( unsigned int  k)
virtual
virtual const IPv4Address& inet::IPv4OptionTimestamp::getRecordAddress ( unsigned int  k) const
inlinevirtual

Referenced by getRecordAddress().

357 {return const_cast<IPv4OptionTimestamp*>(this)->getRecordAddress(k);}
virtual IPv4Address & getRecordAddress(unsigned int k)
const double k
Definition: QAM16Modulation.cc:24
virtual unsigned int inet::IPv4OptionTimestamp::getRecordAddressArraySize ( ) const
virtual
virtual ::omnetpp::simtime_t inet::IPv4OptionTimestamp::getRecordTimestamp ( unsigned int  k) const
virtual unsigned int inet::IPv4OptionTimestamp::getRecordTimestampArraySize ( ) const
virtual
IPv4OptionTimestamp& inet::IPv4OptionTimestamp::operator= ( const IPv4OptionTimestamp other)
bool inet::IPv4OptionTimestamp::operator== ( const IPv4OptionTimestamp )
protected
virtual void inet::IPv4OptionTimestamp::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::IPv4Option.

Referenced by inet::doParsimPacking().

virtual void inet::IPv4OptionTimestamp::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual

Reimplemented from inet::IPv4Option.

Referenced by inet::doParsimUnpacking().

virtual void inet::IPv4OptionTimestamp::setFlag ( int  flag)
virtual
virtual void inet::IPv4OptionTimestamp::setNextIdx ( short  nextIdx)
virtual
virtual void inet::IPv4OptionTimestamp::setOverflow ( short  overflow)
virtual
virtual void inet::IPv4OptionTimestamp::setRecordAddress ( unsigned int  k,
const IPv4Address recordAddress 
)
virtual
virtual void inet::IPv4OptionTimestamp::setRecordAddressArraySize ( unsigned int  size)
virtual
virtual void inet::IPv4OptionTimestamp::setRecordTimestamp ( unsigned int  k,
::omnetpp::simtime_t  recordTimestamp 
)
virtual
virtual void inet::IPv4OptionTimestamp::setRecordTimestampArraySize ( unsigned int  size)
virtual

Member Data Documentation

int inet::IPv4OptionTimestamp::flag
protected
short inet::IPv4OptionTimestamp::nextIdx
protected
short inet::IPv4OptionTimestamp::overflow
protected
IPv4Address* inet::IPv4OptionTimestamp::recordAddress
protected
unsigned int inet::IPv4OptionTimestamp::recordAddress_arraysize
protected
::omnetpp::simtime_t* inet::IPv4OptionTimestamp::recordTimestamp
protected
unsigned int inet::IPv4OptionTimestamp::recordTimestamp_arraysize
protected

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