MrpOption

Namespace: inet

class MrpOption

MRP_Option: Contains optional, vendor-specific extensions to the MRP messages.

Usage diagram

Inheritance diagram

Extends

Name

Type

Description

MrpTlvHeader

class

MRP_TLVHeader: Base class for all TLVs in MRP; contains the Type and Length fields of the TLV. Note that all TLVs (except for MRP_End) must be padded to a multiple of 32 bits.

Fields

Name

Type

Description

id

int

mutable

bool

complete

bool

correct

bool

properlyRepresented

bool

chunkLength

b

rawBin

string[]

rawHex

string[]

regionTags

SharingRegionTagSet::TagBaseRegionTag[]

headerType

TlvHeaderType

valueLength

uint8_t

chunkLength

headerType

valueLength

ouiType

MrpOuiType

suboption1

ed1Type

uint8_t

followed by ManufacturerData of length 2 for ed1Type 0x00 and length 26 for ed1Type 0x04 BytesChunk manufacturerData; subTlvHeader subOption2;

Properties

Name

Value

Description

beforeChange

handleChange()

descriptor

readonly

existingClass

packetData

Source code

//
// MRP_Option: Contains optional, vendor-specific extensions to the MRP messages.
//
class MrpOption extends MrpTlvHeader
{
    chunkLength = B(8);
    headerType = OPTION;
    valueLength = 4;
    MrpOuiType ouiType = IEC;
    //suboption1
    uint8_t ed1Type = 0xFF;
    //followed by ManufacturerData of length 2 for ed1Type 0x00 and length 26 for ed1Type 0x04
    //BytesChunk manufacturerData;
    //subTlvHeader subOption2;
}

File: src/inet/linklayer/mrp/MrpPdu.msg