Ospfv2HelloPacket

Namespace: inet::ospfv2

class Ospfv2HelloPacket

Represents an OSPF Hello packet

Usage diagram

Inheritance diagram

Extends

Name

Type

Description

Ospfv2Packet

class

Represents an OSPF packet header

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

type

networkMask

Ipv4Address

helloInterval

short

options

Ospfv2Options

routerPriority

char

routerDeadInterval

long

designatedRouter

Ipv4Address

backupDesignatedRouter

Ipv4Address

neighbor

Ipv4Address[]

Properties

Name

Value

Description

beforeChange

handleChange()

descriptor

readonly

existingClass

packetData

Source code

//
// Represents an OSPF Hello packet
//
class Ospfv2HelloPacket extends Ospfv2Packet
{
    type = HELLO_PACKET;
    Ipv4Address networkMask;

    short helloInterval = 5;

    Ospfv2Options options;

    char routerPriority = 0;
    long routerDeadInterval = 0;

    Ipv4Address designatedRouter;
    Ipv4Address backupDesignatedRouter;
    Ipv4Address neighbor[];
}

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