Ospfv2Link

Namespace inet::ospfv2

Ospfv2Link

class

Router LSA Link section (RFC 1583 Section A.4.2.)

Extends

Name Type Description
cObject (unknown -- not in documented files)

Fields

Name Type Description
linkID Ipv4Address
linkData unsigned long
type LinkType
numberOfTOS unsigned char
linkCost unsigned long

TOS 0 metric

tosData Ospfv2TosData[]

Source code

// Router LSA Link section (RFC 1583 Section A.4.2.)
class Ospfv2Link extends cObject
{
    @packetData;
    Ipv4Address linkID;
    unsigned long linkData = 0;
    LinkType type = POINTTOPOINT_LINK;
    unsigned char numberOfTOS = 0;
    unsigned long linkCost = 1;     // TOS 0 metric
    Ospfv2TosData tosData[];
}

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