Ospfv2Packet

Namespace: inet::ospfv2

class Ospfv2Packet

Represents an OSPF packet header

Inheritance diagram

Extends

Name

Type

Description

OspfPacketBase

class

Represents an OSPF packet header

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

id

int

mutable

bool

complete

bool

correct

bool

properlyRepresented

bool

chunkLength

b

rawBin

string[]

rawHex

string[]

regionTags

SharingRegionTagSet::TagBaseRegionTag[]

chunkLength

version

short

1 byte

type

OspfPacketType

1 byte

packetLengthField

int

2 bytes

routerID

Ipv4Address

4 bytes

areaID

Ipv4Address

4 bytes

checksum

uint16_t

2 bytes

checksumMode

ChecksumMode

chunkLength

version

authenticationType

short

2 bytes

authentication

char[8]

8 bytes

Properties

Name

Value

Description

beforeChange

handleChange()

descriptor

readonly

existingClass

packetData

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