Ospfv2Packet¶
Namespace: inet::ospfv2
class Ospfv2Packet
Represents an OSPF packet header
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
class |
Represents an OSPF packet header |
Known subclasses¶
Name |
Type |
Description |
|---|---|---|
class |
Represents an OSPF Database Description packet |
|
class |
Represents an OSPF Hello packet |
|
class |
Represents an OSPF Link State Acknowledgement packet |
|
class |
Represents an OSPF Link State Request packet |
|
class |
Represents an OSPF Link State Update 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 |
||
chunkLength |
||
version |
||
authenticationType |
short |
2 bytes |
authentication |
char[8] |
8 bytes |
Properties¶
Name |
Value |
Description |
|---|---|---|
beforeChange |
handleChange() |
|
descriptor |
readonly |
|
existingClass |
||
packetData |
Source code¶
//
// Represents an OSPF packet header
//
class Ospfv2Packet extends ospf::OspfPacketBase
{
chunkLength = B(24);
version = 2;
short authenticationType = 0; // 2 bytes
char authentication[8]; // 8 bytes
}