Ospfv2RouterLsa

Namespace: inet::ospfv2

class Ospfv2RouterLsa

Represents an OSPF Router LSA (RFC 1583 Section A.4.2.)

Usage diagram

Inheritance diagram

Extends

Name

Type

Description

Ospfv2Lsa

class

common ancestor type for all LSAs

Fields

Name

Type

Description

header

Ospfv2LsaHeader

reserved1

unsigned short

5 bit

V_VirtualLinkEndpoint

bool

E_ASBoundaryRouter

bool

B_AreaBorderRouter

bool

reserved2

unsigned short

8 bit

numberOfLinks

unsigned short

links

Ospfv2Link[]

Properties

Name

Value

Description

packetData

Source code

//
// Represents an OSPF Router LSA (RFC 1583 Section A.4.2.)
//
class Ospfv2RouterLsa extends Ospfv2Lsa
{
    // header.lsType = ROUTERLSA_TYPE;
    unsigned short reserved1 = 0;   // 5 bit
    bool V_VirtualLinkEndpoint = false;
    bool E_ASBoundaryRouter = false;
    bool B_AreaBorderRouter = false;
    unsigned short reserved2 = 0;   // 8 bit
    unsigned short numberOfLinks = 0;
    Ospfv2Link links[];
}

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