Ospfv2Packet

Ospfv2Packet

class

C++ definition

Represents an OSPF packet header

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Extends

Name Type Description
ospf::OspfPacketBase (unknown -- not in documented files)

Known subclasses

Name Type Description
Ospfv2DatabaseDescriptionPacket class

Represents an OSPF Database Description packet

Ospfv2HelloPacket class

Represents an OSPF Hello packet

Ospfv2LinkStateAcknowledgementPacket class

Represents an OSPF Link State Acknowledgement packet

Ospfv2LinkStateRequestPacket class

Represents an OSPF Link State Request packet

Ospfv2LinkStateUpdatePacket class

Represents an OSPF Link State Update packet

Fields

Name Type Description
chunkLength
version
authenticationType short

2 bytes

authentication char[8]

8 bytes

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
}

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