MrpInLinkChange¶
Namespace: inet
class MrpInLinkChange
MRP_InLinkChange: MRP_InLinkDown or MRP_InLinkUp (depends on headerType). Sent by the Media Redundancy Interconnection Clients (MICs) to the Media Redundancy Interconnection Manager (MIM) to inform the MIM of any changes in the link status within the interconnection setup.
Usage diagram¶
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
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 |
||
rawBin |
string[] |
|
rawHex |
string[] |
|
regionTags |
||
headerType |
||
valueLength |
uint8_t |
|
chunkLength |
||
headerType |
INLINKDOWN or INLINKUP |
|
valueLength |
||
sa |
||
portRole |
uint16_t |
|
inID |
uint16_t |
|
interval |
uint16_t |
in milliseconds |
linkInfo |
uint16_t |
additional link info such as reason for failure |
Properties¶
Name |
Value |
Description |
|---|---|---|
beforeChange |
handleChange() |
|
descriptor |
readonly |
|
existingClass |
||
packetData |
Source code¶
//
// MRP_InLinkChange: MRP_InLinkDown or MRP_InLinkUp (depends on headerType).
// Sent by the Media Redundancy Interconnection Clients (MICs) to the Media
// Redundancy Interconnection Manager (MIM) to inform the MIM of any changes in
// the link status within the interconnection setup.
//
class MrpInLinkChange extends MrpTlvHeader
{
chunkLength = B(16);
headerType = INLINKDOWN; // INLINKDOWN or INLINKUP
valueLength = 14;
MacAddress sa;
uint16_t portRole;
uint16_t inID;
uint16_t interval; // in milliseconds
uint16_t linkInfo; // additional link info such as reason for failure
}