Class IPv4OptionRecordRoute

File: src/inet/networklayer/ipv4/IPv4Datagram.msg

C++ definition

Option structure: Record Route

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Extends:

Name Type Description
IPv4Option class (no description)

Fields:

Name Type Description
nextAddressIdx short

type = IPOPTION_RECORD_ROUTE; type = IPOPTION_LOOSE_SOURCE_ROUTING type = IPOPTION_STRICT_SOURCE_ROUTING length = 3 + 4 * getRecordAddressArraySize();

recordAddress IPv4Address[]

pointer = 4 + 4 * nextAddressIdx

type short
length short

total length of option

Source code:

//
// Option structure: Record Route
//
class IPv4OptionRecordRoute extends IPv4Option
{
    // type = IPOPTION_RECORD_ROUTE;
    // type = IPOPTION_LOOSE_SOURCE_ROUTING
    // type = IPOPTION_STRICT_SOURCE_ROUTING
    // length = 3 + 4 * getRecordAddressArraySize();
    short nextAddressIdx;
    // pointer = 4 + 4 * nextAddressIdx
    IPv4Address recordAddress[];    // max size is 9
}