Packet OSPFPacket

File: src/networklayer/ospfv2/OSPFPacket.msg

Represents an OSPF packet header

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.

Known subclasses:

Name Type Description
OSPFDatabaseDescriptionPacket packet

Represents an OSPF Database Description packet

OSPFHelloPacket packet

Represents an OSPF Hello packet

OSPFLinkStateAcknowledgementPacket packet

Represents an OSPF Link State Acknowledgement packet

OSPFLinkStateRequestPacket packet

Represents an OSPF Link State Request packet

OSPFLinkStateUpdatePacket packet

Represents an OSPF Link State Update packet

Fields:

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

Source code:

//
// Represents an OSPF packet header
//
packet OSPFPacket
{
    char version = 2;
    char type @enum(OSPFPacketType) = HelloPacket;
    short packetLength = 0;

    IPAddress routerID;
    IPAddress areaID;

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