Ospfv2HelloPacket¶
Namespace: inet::ospfv2
class Ospfv2HelloPacket
Represents an OSPF Hello packet
Usage diagram¶
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
class |
Represents an OSPF packet header |
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 |
type |
||
networkMask |
||
helloInterval |
short |
|
options |
||
routerPriority |
char |
|
routerDeadInterval |
long |
|
designatedRouter |
||
backupDesignatedRouter |
||
neighbor |
Properties¶
Name |
Value |
Description |
|---|---|---|
beforeChange |
handleChange() |
|
descriptor |
readonly |
|
existingClass |
||
packetData |
Source code¶
//
// Represents an OSPF Hello packet
//
class Ospfv2HelloPacket extends Ospfv2Packet
{
type = HELLO_PACKET;
Ipv4Address networkMask;
short helloInterval = 5;
Ospfv2Options options;
char routerPriority = 0;
long routerDeadInterval = 0;
Ipv4Address designatedRouter;
Ipv4Address backupDesignatedRouter;
Ipv4Address neighbor[];
}