OspfPacketBase
classRepresents an OSPF packet header
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 |
---|---|---|
FieldsChunk | class | (no description) |
Fields
Name | Type | Description |
---|---|---|
chunkLength | b | |
version | short |
1 byte |
type | OspfPacketType |
1 byte |
packetLengthField | int |
2 bytes |
routerID | Ipv4Address |
4 bytes |
areaID | Ipv4Address |
4 bytes |
crc | uint16_t |
2 bytes |
crcMode | CrcMode | |
mutable | bool | |
complete | bool | |
correct | bool | |
properlyRepresented | bool | |
rawBin | string[] | |
rawHex | string[] | |
tags | RegionTagSet::cObjectRegionTag[] |
Source code
// // Represents an OSPF packet header // class OspfPacketBase extends FieldsChunk { chunkLength = B(14); short version = -1; // 1 byte OspfPacketType type = static_cast<OspfPacketType>(-1); // 1 byte int packetLengthField; // 2 bytes Ipv4Address routerID; // 4 bytes Ipv4Address areaID; // 4 bytes uint16_t crc = 0; // 2 bytes CrcMode crcMode = CRC_MODE_UNDEFINED; }File: src/inet/routing/ospf_common/OspfPacketBase.msg