|
INET Framework for OMNeT++/OMNEST
|
Control information for sending/receiving packets over IPv4. More...
#include <IPv4ControlInfo.h>
Public Member Functions | |
| IPv4ControlInfo () | |
| virtual | ~IPv4ControlInfo () |
| IPv4ControlInfo (const IPv4ControlInfo &other) | |
| IPv4ControlInfo & | operator= (const IPv4ControlInfo &other) |
| virtual IPv4ControlInfo * | dup () const override |
| virtual int | getDiffServCodePoint () const override |
| Returns bits 0-5 of the Type of Service field, a value in the 0..63 range. More... | |
| virtual void | setDiffServCodePoint (int dscp) override |
| Sets bits 0-5 of the Type of Service field; expects a value in the 0..63 range. More... | |
| virtual int | getExplicitCongestionNotification () const override |
| Returns bits 6-7 of the Type of Service field, a value in the range 0..3. More... | |
| virtual void | setExplicitCongestionNotification (int ecn) override |
| Sets bits 6-7 of the Type of Service; expects a value in the 0..3 range. More... | |
| virtual void | setOrigDatagram (IPv4Datagram *d) |
| virtual IPv4Datagram * | getOrigDatagram () const |
| virtual IPv4Datagram * | removeOrigDatagram () |
| virtual short | getTransportProtocol () const override |
| virtual void | setTransportProtocol (short protocol) override |
| virtual L3Address | getSourceAddress () const override |
| virtual void | setSourceAddress (const L3Address &address) override |
| virtual L3Address | getDestinationAddress () const override |
| virtual void | setDestinationAddress (const L3Address &address) override |
| virtual int | getInterfaceId () const override |
| virtual void | setInterfaceId (int interfaceId) override |
| virtual short | getHopLimit () const override |
| virtual void | setHopLimit (short hopLimit) override |
Public Member Functions inherited from inet::IPv4ControlInfo_Base | |
| virtual | ~IPv4ControlInfo_Base () |
| virtual void | parsimPack (omnetpp::cCommBuffer *b) const override |
| virtual void | parsimUnpack (omnetpp::cCommBuffer *b) override |
| virtual IPv4Address & | getDestAddr () |
| virtual const IPv4Address & | getDestAddr () const |
| virtual void | setDestAddr (const IPv4Address &destAddr) |
| virtual IPv4Address & | getSrcAddr () |
| virtual const IPv4Address & | getSrcAddr () const |
| virtual void | setSrcAddr (const IPv4Address &srcAddr) |
| virtual bool | getMulticastLoop () const |
| virtual void | setMulticastLoop (bool multicastLoop) |
| virtual short | getProtocol () const |
| virtual void | setProtocol (short protocol) |
| virtual unsigned char | getTypeOfService () const |
| virtual void | setTypeOfService (unsigned char typeOfService) |
| virtual short | getTimeToLive () const |
| virtual void | setTimeToLive (short timeToLive) |
| virtual bool | getDontFragment () const |
| virtual void | setDontFragment (bool dontFragment) |
Public Member Functions inherited from inet::INetworkProtocolControlInfo | |
| virtual | ~INetworkProtocolControlInfo () |
Protected Attributes | |
| IPv4Datagram * | dgram |
Protected Attributes inherited from inet::IPv4ControlInfo_Base | |
| IPv4Address | destAddr |
| IPv4Address | srcAddr |
| int | interfaceId |
| bool | multicastLoop |
| short | protocol |
| unsigned char | typeOfService |
| short | timeToLive |
| bool | dontFragment |
Private Member Functions | |
| void | copy (const IPv4ControlInfo &other) |
| void | clean () |
Additional Inherited Members | |
Protected Member Functions inherited from inet::IPv4ControlInfo_Base | |
| bool | operator== (const IPv4ControlInfo_Base &) |
| IPv4ControlInfo_Base () | |
| IPv4ControlInfo_Base (const IPv4ControlInfo_Base &other) | |
| IPv4ControlInfo_Base & | operator= (const IPv4ControlInfo_Base &other) |
Control information for sending/receiving packets over IPv4.
See the IPv4ControlInfo.msg file for more info.
|
inline |
|
virtual |
|
inline |
|
private |
Referenced by operator=(), and ~IPv4ControlInfo().
|
private |
Referenced by operator=().
|
inlineoverridevirtual |
Reimplemented from inet::IPv4ControlInfo_Base.
|
inlineoverridevirtual |
Implements inet::INetworkProtocolControlInfo.
|
inlineoverridevirtual |
Returns bits 0-5 of the Type of Service field, a value in the 0..63 range.
Implements inet::IPv4ControlInfo_Base.
|
inlineoverridevirtual |
Returns bits 6-7 of the Type of Service field, a value in the range 0..3.
Implements inet::IPv4ControlInfo_Base.
|
inlineoverridevirtual |
Implements inet::INetworkProtocolControlInfo.
|
inlineoverridevirtual |
Implements inet::INetworkProtocolControlInfo.
Referenced by inet::IPv4::handlePacketFromHL(), inet::PIMDM::processAssertPacket(), inet::PIMSM::processAssertPacket(), inet::PIMDM::processGraftPacket(), inet::PIMBase::processHelloPacket(), inet::IGMPv2::processIgmpMessage(), inet::PIMDM::processJoinPrunePacket(), inet::PIMSM::processJoinPrunePacket(), inet::ospf::MessageHandler::processPacket(), inet::PIMSplitter::processPIMPacket(), inet::IGMPv3::processQuery(), inet::IGMPv3::processReport(), inet::PIMDM::processStateRefreshPacket(), inet::UDP::processUDPPacket(), inet::ICMP::sendErrorMessage(), and inet::PIMDM::sendGraftAckPacket().
|
inlinevirtual |
|
inlineoverridevirtual |
Implements inet::INetworkProtocolControlInfo.
|
inlineoverridevirtual |
Implements inet::INetworkProtocolControlInfo.
| IPv4ControlInfo & inet::IPv4ControlInfo::operator= | ( | const IPv4ControlInfo & | other | ) |
|
virtual |
Referenced by inet::ICMP::sendErrorMessage().
|
inlineoverridevirtual |
Implements inet::INetworkProtocolControlInfo.
|
inlineoverridevirtual |
Sets bits 0-5 of the Type of Service field; expects a value in the 0..63 range.
Implements inet::IPv4ControlInfo_Base.
|
inlineoverridevirtual |
Sets bits 6-7 of the Type of Service; expects a value in the 0..3 range.
Implements inet::IPv4ControlInfo_Base.
|
inlineoverridevirtual |
Implements inet::INetworkProtocolControlInfo.
|
inlineoverridevirtual |
Implements inet::INetworkProtocolControlInfo.
Referenced by inet::IPv4::decapsulate(), inet::PIMSM::forwardMulticastData(), inet::ICMP::processEchoRequest(), inet::UDP::sendDown(), inet::PIMBase::sendHelloPacket(), inet::ospf::MessageHandler::sendPacket(), inet::PIMDM::sendToIP(), and inet::PIMSM::sendToIP().
|
virtual |
Referenced by inet::IPv4::decapsulate().
|
inlineoverridevirtual |
Implements inet::INetworkProtocolControlInfo.
|
inlineoverridevirtual |
Implements inet::INetworkProtocolControlInfo.
|
protected |
Referenced by clean(), copy(), removeOrigDatagram(), and setOrigDatagram().