Ospfv2HelloPacket

Ospfv2HelloPacket

class

C++ definition

Represents an OSPF Hello packet

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
Ospfv2Packet class

Represents an OSPF packet header

Fields

Name Type Description
type
networkMask Ipv4Address
helloInterval short
options Ospfv2Options
routerPriority char
routerDeadInterval long
designatedRouter Ipv4Address
backupDesignatedRouter Ipv4Address
neighbor Ipv4Address[]
chunkLength
version
authenticationType short

2 bytes

authentication char[8]

8 bytes

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[];
}

File: src/inet/routing/ospfv2/Ospfv2Packet.msg