Packet OSPFPacket

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

C++ definition

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
routerID IPv4Address
areaID IPv4Address
authenticationType short
authentication char[8]

Source code:

//
// Represents an OSPF packet header
//
packet OSPFPacket
{
    char version = 2;
    char type @enum(OSPFPacketType) = HELLO_PACKET;

    IPv4Address routerID;
    IPv4Address areaID;

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