|
INET Framework for OMNeT++/OMNEST
|
#include <IPDatagram_m.h>
Public Member Functions | |
| IPDatagram (const char *name=NULL, int kind=0) | |
| IPDatagram (const IPDatagram &other) | |
| virtual | ~IPDatagram () |
| IPDatagram & | operator= (const IPDatagram &other) |
| virtual IPDatagram * | dup () const |
| virtual void | parsimPack (cCommBuffer *b) |
| virtual void | parsimUnpack (cCommBuffer *b) |
| virtual short | getVersion () const |
| virtual void | setVersion (short version) |
| virtual short | getHeaderLength () const |
| virtual void | setHeaderLength (short headerLength) |
| virtual IPAddress & | getSrcAddress () |
| virtual const IPAddress & | getSrcAddress () const |
| virtual void | setSrcAddress (const IPAddress &srcAddress) |
| virtual IPAddress & | getDestAddress () |
| virtual const IPAddress & | getDestAddress () const |
| virtual void | setDestAddress (const IPAddress &destAddress) |
| virtual int | getTransportProtocol () const |
| virtual void | setTransportProtocol (int transportProtocol) |
| virtual short | getTimeToLive () const |
| virtual void | setTimeToLive (short timeToLive) |
| virtual int | getIdentification () const |
| virtual void | setIdentification (int identification) |
| virtual bool | getMoreFragments () const |
| virtual void | setMoreFragments (bool moreFragments) |
| virtual bool | getDontFragment () const |
| virtual void | setDontFragment (bool dontFragment) |
| virtual int | getFragmentOffset () const |
| virtual void | setFragmentOffset (int fragmentOffset) |
| virtual unsigned char | getDiffServCodePoint () const |
| virtual void | setDiffServCodePoint (unsigned char diffServCodePoint) |
| virtual int | getOptionCode () const |
| virtual void | setOptionCode (int optionCode) |
| virtual IPRecordRouteOption & | getRecordRoute () |
| virtual const IPRecordRouteOption & | getRecordRoute () const |
| virtual void | setRecordRoute (const IPRecordRouteOption &recordRoute) |
| virtual IPTimestampOption & | getTimestampOption () |
| virtual const IPTimestampOption & | getTimestampOption () const |
| virtual void | setTimestampOption (const IPTimestampOption ×tampOption) |
| virtual IPSourceRoutingOption & | getSourceRoutingOption () |
| virtual const IPSourceRoutingOption & | getSourceRoutingOption () const |
| virtual void | setSourceRoutingOption (const IPSourceRoutingOption &sourceRoutingOption) |
Protected Member Functions | |
| bool | operator== (const IPDatagram &) |
Protected Attributes | |
| short | version_var |
| short | headerLength_var |
| IPAddress | srcAddress_var |
| IPAddress | destAddress_var |
| int | transportProtocol_var |
| short | timeToLive_var |
| int | identification_var |
| bool | moreFragments_var |
| bool | dontFragment_var |
| int | fragmentOffset_var |
| unsigned char | diffServCodePoint_var |
| int | optionCode_var |
| IPRecordRouteOption | recordRoute_var |
| IPTimestampOption | timestampOption_var |
| IPSourceRoutingOption | sourceRoutingOption_var |
Private Member Functions | |
| void | copy (const IPDatagram &other) |
Class generated from networklayer/ipv4/IPDatagram.msg by opp_msgc.
packet IPDatagram { short version = 4; short headerLength = IP_HEADER_BYTES;
IPAddress srcAddress; IPAddress destAddress;
int transportProtocol enum(IPProtocolId) = IP_PROT_NONE;
short timeToLive;
int identification;
bool moreFragments;
bool dontFragment;
int fragmentOffset;
unsigned char diffServCodePoint;int optionCode enum(IPOption) = IPOPTION_NO_OPTION;
IPRecordRouteOption recordRoute; IPTimestampOption timestampOption; IPSourceRoutingOption sourceRoutingOption; }
Definition at line 277 of file IPDatagram_m.h.
| IPDatagram::IPDatagram | ( | const char * | name = NULL, |
| int | kind = 0 |
||
| ) |
Referenced by dup().
| IPDatagram::IPDatagram | ( | const IPDatagram & | other | ) |
| virtual IPDatagram::~IPDatagram | ( | ) | [virtual] |
| void IPDatagram::copy | ( | const IPDatagram & | other | ) | [private] |
| virtual IPDatagram* IPDatagram::dup | ( | ) | const [inline, virtual] |
Definition at line 308 of file IPDatagram_m.h.
Referenced by IP::fragmentAndSend(), and IP::routeMulticastPacket().
{return new IPDatagram(*this);}
| virtual IPAddress& IPDatagram::getDestAddress | ( | ) | [virtual] |
Referenced by IPFragBuf::addFragment(), IP::decapsulateIP(), IP::encapsulate(), WeightedFairQueue::enqueue(), DscpTtlCorrector::handleMessage(), ExtInterface::handleMessage(), IP::handleMessageFromHL(), AnsaIP::handlePacketFromNetwork(), IP::handlePacketFromNetwork(), TCPDumper::ipDump(), SimpleClassifier::lookupLabel(), LDP::lookupLabel(), ANSAQOS::Flow::parseFromMsg(), UDP::processICMPError(), AnsaUDP::processICMPError(), ARP::processOutboundPacket(), acl::processPacket(), AclContainer::processPacket(), IP::routeMulticastPacket(), IP::routePacket(), ICMP::sendErrorMessage(), IPSerializer::serialize(), TCPDumper::tcpDump(), and TCPDumper::udpDump().
| virtual const IPAddress& IPDatagram::getDestAddress | ( | ) | const [inline, virtual] |
Definition at line 321 of file IPDatagram_m.h.
Referenced by getDestAddress().
{return const_cast<IPDatagram*>(this)->getDestAddress();}
| virtual unsigned char IPDatagram::getDiffServCodePoint | ( | ) | const [virtual] |
| virtual bool IPDatagram::getDontFragment | ( | ) | const [virtual] |
Referenced by IP::fragmentAndSend().
| virtual int IPDatagram::getFragmentOffset | ( | ) | const [virtual] |
Referenced by IPFragBuf::addFragment(), IP::reassembleAndDeliver(), and IPSerializer::serialize().
| virtual short IPDatagram::getHeaderLength | ( | ) | const [virtual] |
| virtual int IPDatagram::getIdentification | ( | ) | const [virtual] |
Referenced by IPFragBuf::addFragment(), and IPSerializer::serialize().
| virtual bool IPDatagram::getMoreFragments | ( | ) | const [virtual] |
Referenced by IPFragBuf::addFragment(), AnsaIP::handlePacketFromNetwork(), and IP::reassembleAndDeliver().
| virtual int IPDatagram::getOptionCode | ( | ) | const [virtual] |
| virtual IPRecordRouteOption& IPDatagram::getRecordRoute | ( | ) | [virtual] |
| virtual const IPRecordRouteOption& IPDatagram::getRecordRoute | ( | ) | const [inline, virtual] |
Definition at line 340 of file IPDatagram_m.h.
Referenced by getRecordRoute().
{return const_cast<IPDatagram*>(this)->getRecordRoute();}
| virtual IPSourceRoutingOption& IPDatagram::getSourceRoutingOption | ( | ) | [virtual] |
| virtual const IPSourceRoutingOption& IPDatagram::getSourceRoutingOption | ( | ) | const [inline, virtual] |
Definition at line 346 of file IPDatagram_m.h.
Referenced by getSourceRoutingOption().
{return const_cast<IPDatagram*>(this)->getSourceRoutingOption();}
| virtual IPAddress& IPDatagram::getSrcAddress | ( | ) | [virtual] |
Referenced by IPFragBuf::addFragment(), IP::decapsulateIP(), WeightedFairQueue::enqueue(), DscpTtlCorrector::handleMessage(), ExtInterface::handleMessage(), TCPDumper::ipDump(), SimpleClassifier::lookupLabel(), ANSAQOS::Flow::parseFromMsg(), UDP::processICMPError(), AnsaUDP::processICMPError(), acl::processPacket(), AclContainer::processPacket(), IP::routeMulticastPacket(), IP::routePacket(), ICMP::sendErrorMessage(), IPSerializer::serialize(), TCPDumper::tcpDump(), and TCPDumper::udpDump().
| virtual const IPAddress& IPDatagram::getSrcAddress | ( | ) | const [inline, virtual] |
Definition at line 318 of file IPDatagram_m.h.
Referenced by getSrcAddress().
{return const_cast<IPDatagram*>(this)->getSrcAddress();}
| virtual IPTimestampOption& IPDatagram::getTimestampOption | ( | ) | [virtual] |
| virtual const IPTimestampOption& IPDatagram::getTimestampOption | ( | ) | const [inline, virtual] |
Definition at line 343 of file IPDatagram_m.h.
Referenced by getTimestampOption().
{return const_cast<IPDatagram*>(this)->getTimestampOption();}
| virtual short IPDatagram::getTimeToLive | ( | ) | const [virtual] |
| virtual int IPDatagram::getTransportProtocol | ( | ) | const [virtual] |
Referenced by IP::decapsulateIP(), WeightedFairQueue::enqueue(), DscpTtlCorrector::handleMessage(), ExtInterface::handleMessage(), AnsaIP::handlePacketFromNetwork(), IP::handleReceivedICMP(), SimpleClassifier::lookupLabel(), LDP::lookupLabel(), IPSerializer::parse(), ANSAQOS::Flow::parseFromMsg(), acl::processPacket(), AclContainer::processPacket(), MPLS::processPacketFromL3(), IP::reassembleAndDeliver(), ICMP::sendErrorMessage(), and IPSerializer::serialize().
| virtual short IPDatagram::getVersion | ( | ) | const [virtual] |
Referenced by IPSerializer::serialize().
| IPDatagram& IPDatagram::operator= | ( | const IPDatagram & | other | ) |
| bool IPDatagram::operator== | ( | const IPDatagram & | ) | [protected] |
| virtual void IPDatagram::parsimPack | ( | cCommBuffer * | b | ) | [virtual] |
Referenced by doPacking().
| virtual void IPDatagram::parsimUnpack | ( | cCommBuffer * | b | ) | [virtual] |
Referenced by doUnpacking().
| virtual void IPDatagram::setDestAddress | ( | const IPAddress & | destAddress | ) | [virtual] |
Referenced by IP::encapsulate(), IPSerializer::parse(), and IP::routeMulticastPacket().
| virtual void IPDatagram::setDiffServCodePoint | ( | unsigned char | diffServCodePoint | ) | [virtual] |
Referenced by IP::encapsulate(), DscpTtlCorrector::handleMessage(), and IPSerializer::parse().
| virtual void IPDatagram::setDontFragment | ( | bool | dontFragment | ) | [virtual] |
Referenced by IP::encapsulate(), and IPSerializer::parse().
| virtual void IPDatagram::setFragmentOffset | ( | int | fragmentOffset | ) | [virtual] |
Referenced by IPFragBuf::addFragment(), IP::encapsulate(), IP::fragmentAndSend(), and IPSerializer::parse().
| virtual void IPDatagram::setHeaderLength | ( | short | headerLength | ) | [virtual] |
Referenced by IPSerializer::parse().
| virtual void IPDatagram::setIdentification | ( | int | identification | ) | [virtual] |
Referenced by IP::encapsulate(), and IPSerializer::parse().
| virtual void IPDatagram::setMoreFragments | ( | bool | moreFragments | ) | [virtual] |
Referenced by IPFragBuf::addFragment(), IP::encapsulate(), IP::fragmentAndSend(), and IPSerializer::parse().
| virtual void IPDatagram::setOptionCode | ( | int | optionCode | ) | [virtual] |
| virtual void IPDatagram::setRecordRoute | ( | const IPRecordRouteOption & | recordRoute | ) | [virtual] |
| virtual void IPDatagram::setSourceRoutingOption | ( | const IPSourceRoutingOption & | sourceRoutingOption | ) | [virtual] |
| virtual void IPDatagram::setSrcAddress | ( | const IPAddress & | srcAddress | ) | [virtual] |
Referenced by IP::encapsulate(), IPSerializer::parse(), IP::routeMulticastPacket(), and IP::routePacket().
| virtual void IPDatagram::setTimestampOption | ( | const IPTimestampOption & | timestampOption | ) | [virtual] |
| virtual void IPDatagram::setTimeToLive | ( | short | timeToLive | ) | [virtual] |
| virtual void IPDatagram::setTransportProtocol | ( | int | transportProtocol | ) | [virtual] |
Referenced by IP::encapsulate(), and IPSerializer::parse().
| virtual void IPDatagram::setVersion | ( | short | version | ) | [virtual] |
Referenced by IPSerializer::parse().
IPAddress IPDatagram::destAddress_var [protected] |
Definition at line 283 of file IPDatagram_m.h.
unsigned char IPDatagram::diffServCodePoint_var [protected] |
Definition at line 290 of file IPDatagram_m.h.
bool IPDatagram::dontFragment_var [protected] |
Definition at line 288 of file IPDatagram_m.h.
int IPDatagram::fragmentOffset_var [protected] |
Definition at line 289 of file IPDatagram_m.h.
short IPDatagram::headerLength_var [protected] |
Definition at line 281 of file IPDatagram_m.h.
int IPDatagram::identification_var [protected] |
Definition at line 286 of file IPDatagram_m.h.
bool IPDatagram::moreFragments_var [protected] |
Definition at line 287 of file IPDatagram_m.h.
int IPDatagram::optionCode_var [protected] |
Definition at line 291 of file IPDatagram_m.h.
IPRecordRouteOption IPDatagram::recordRoute_var [protected] |
Definition at line 292 of file IPDatagram_m.h.
Definition at line 294 of file IPDatagram_m.h.
IPAddress IPDatagram::srcAddress_var [protected] |
Definition at line 282 of file IPDatagram_m.h.
IPTimestampOption IPDatagram::timestampOption_var [protected] |
Definition at line 293 of file IPDatagram_m.h.
short IPDatagram::timeToLive_var [protected] |
Definition at line 285 of file IPDatagram_m.h.
int IPDatagram::transportProtocol_var [protected] |
Definition at line 284 of file IPDatagram_m.h.
short IPDatagram::version_var [protected] |
Definition at line 280 of file IPDatagram_m.h.