Ipv4OptionRecordRoute¶
Namespace: inet
class Ipv4OptionRecordRoute
Option structure: Record Route
Usage diagram¶
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
class |
(no description) |
Fields¶
Name |
Type |
Description |
|---|---|---|
type |
short |
|
length |
short |
total length of option |
nextAddressIdx |
short |
pointer = 4 + 4 * nextAddressIdx |
recordAddress |
max size is 9 |
Properties¶
Name |
Value |
Description |
|---|---|---|
packetData |
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
}