Class IPControlInfo

File: Network/Contract/IPControlInfo.msg

C++ definition: click here

Control information for sending/receiving packets over IP.

To send a packet over IP, fill in an IPControlInfo object, attach it to the packet with the C++ method setControlInfo(), the send it to the IP module.

When IP delivers packets to higher layers, it also attaches similar IPControlInfo objects to them.

When sending, the following fields are required:

Optional fields:

Not supported:

Inheritance diagram:

The following diagram shows part of the inheritance hierarchy. Unresolved types are missing from the diagram. Click here to see the full picture.

IPControlInfo

Properties:

Name Value Description
omitGetVerb true
customize true

Fields:

Name Type Description
destAddr IPAddress

destination IP address

srcAddr IPAddress

source IP address

interfaceId int

interface on which dgram was received/should be sent (see InterfaceTable)

protocol short

encapsulated protocol

diffServCodePoint unsigned char

for QoS

timeToLive short

maximum hop count

dontFragment bool

"don't fragment" bit

Source code:

class IPControlInfo
{
    properties:
        omitGetVerb = true;
        customize = true;
    fields:
        IPAddress destAddr;   // destination IP address
        IPAddress srcAddr;    // source IP address
        int interfaceId = -1; // interface on which dgram was received/should
                              // be sent (see InterfaceTable)
        short protocol enum(IPProtocolId);  // encapsulated protocol
        unsigned char diffServCodePoint;  // for QoS
        short timeToLive;     // maximum hop count
        bool dontFragment;    // "don't fragment" bit
};