Message OSPFPacket

File: Network/OSPFv2/OSPFPacket.msg

C++ definition: click here

Represents an OSPF packet header

Inheritance diagram:

The following diagram shows part of the inheritance hierarchy. Unresolved types are missing from the diagram. Click here to see the full picture.

Known subclasses:

OSPFHelloPacket

Represents an OSPF Hello packet

OSPFDatabaseDescriptionPacket

Represents an OSPF Database Description packet

OSPFLinkStateRequestPacket

Represents an OSPF Link State Request packet

OSPFLinkStateUpdatePacket

Represents an OSPF Link State Update packet

OSPFLinkStateAcknowledgementPacket

Represents an OSPF Link State Acknowledgement packet

Fields:

Name Type Description
version char
type char
packetLength short
routerID IPAddress
areaID IPAddress
checksum short
authenticationType short
authentication char[8]

Source code:

message OSPFPacket
{
    fields:
        char   version = 2;
        char   type enum(OSPFPacketType) = HelloPacket;
        short  packetLength = 0; 

        IPAddress routerID;
        IPAddress areaID;

        short  checksum = 0;
        short  authenticationType = 0;
        char   authentication[8];
};