Ospfv3HelloPacket¶
Namespace: inet::ospfv3
class Ospfv3HelloPacket
OSPFv3 hello packet
Usage diagram¶
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
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 |
||
chunkLength |
||
version |
||
instanceID |
int8_t |
|
reserved |
uint8_t |
|
type |
||
interfaceID |
uint32_t |
32 bits |
routerPriority |
char |
8 bits |
options |
24 bits |
|
helloInterval |
uint16_t |
[sec] 16 bits |
deadInterval |
uint16_t |
[sec] 16 bits //TODO rename to routerDeadInterval |
designatedRouterID |
32 bits |
|
backupDesignatedRouterID |
32 bits |
|
neighborID |
N*32 bits |
Properties¶
Name |
Value |
Description |
|---|---|---|
beforeChange |
handleChange() |
|
descriptor |
readonly |
|
existingClass |
||
packetData |
Source code¶
//
// OSPFv3 hello packet
//
class Ospfv3HelloPacket extends Ospfv3Packet
{
type = ospf::HELLO_PACKET;
uint32_t interfaceID; // 32 bits
char routerPriority; // 8 bits
Ospfv3Options options; // 24 bits
uint16_t helloInterval; // [sec] 16 bits
uint16_t deadInterval; // [sec] 16 bits //TODO rename to routerDeadInterval
Ipv4Address designatedRouterID; // 32 bits
Ipv4Address backupDesignatedRouterID; // 32 bits
Ipv4Address neighborID[]; // N*32 bits
}