Class IPTimestampOption

File: src/networklayer/ipv4/IPDatagram.msg

Option structure: Timestamp

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram. Click here to see the full picture.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram. Click here to see the full picture.

Fields:

Name Type Description
flag int
nextAddressPtr short
overflow short
recordAddress IPAddress[MAX_TIMESTAMP_OPTION_ENTRIES]

use either up to 4 addresses with timestamps or only up to 9 timestamps, according to the flag

recordTimestamp simtime_t[MAX_IPADDR_OPTION_ENTRIES]

Source code:

//
// Option structure: Timestamp
//
class IPTimestampOption
{
    int flag @enum(TimestampFlag);
    short overflow;
    short nextAddressPtr;

    // use either up to 4 addresses with timestamps or
    // only up to 9 timestamps, according to the flag
    IPAddress recordAddress[MAX_TIMESTAMP_OPTION_ENTRIES];
    simtime_t recordTimestamp[MAX_IPADDR_OPTION_ENTRIES];
}