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. Click here to see the full picture.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram. Click here to see the full picture.

Known subclasses:

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
routerID IPAddress
areaID IPAddress
authentication char[8]
checksum short
type char
packetLength short
authenticationType short
version char

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