OspfPacketBase¶
Namespace: inet::ospf
class OspfPacketBase
Represents an OSPF packet header
Usage diagram¶
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
class |
(no description) |
Known subclasses¶
Name |
Type |
Description |
|---|---|---|
class |
Represents an OSPF packet header |
|
class |
Common OSPFv3 packet header - this header is present in every OSPFv3 packet |
Fields¶
Name |
Type |
Description |
|---|---|---|
id |
int |
|
mutable |
bool |
|
complete |
bool |
|
correct |
bool |
|
properlyRepresented |
bool |
|
chunkLength |
||
rawBin |
string[] |
|
rawHex |
string[] |
|
regionTags |
||
chunkLength |
||
version |
short |
1 byte |
type |
1 byte |
|
packetLengthField |
int |
2 bytes |
routerID |
4 bytes |
|
areaID |
4 bytes |
|
checksum |
uint16_t |
2 bytes |
checksumMode |
Properties¶
Name |
Value |
Description |
|---|---|---|
beforeChange |
handleChange() |
|
descriptor |
readonly |
|
existingClass |
||
packetData |
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 checksum = 0; // 2 bytes
ChecksumMode checksumMode = CHECKSUM_MODE_UNDEFINED;
}