Ospfv3LsaHeader

Namespace inet::ospfv3

Ospfv3LsaHeader

class

Common LSA Header - this header is present in every LSA triplet {lsType, linkStateID, advertisingRouter} uniquely identify the LSA

Extends

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

Fields

Name Type Description
lsaAge unsigned short

[sec] 16 bits

options unsigned short

8 bits

lsaType unsigned short

8 bits

linkStateID Ipv4Address

32 bits

advertisingRouter Ipv4Address

32 bits

lsaSequenceNumber uint32_t

32 bits

lsaChecksum uint16_t

16 bits

lsCrcMode CrcMode
lsaLength uint16_t

Source code

//Common LSA Header - this header is present in every LSA
//triplet {lsType, linkStateID, advertisingRouter} uniquely identify the LSA
class Ospfv3LsaHeader extends cObject
{
    @packetData;
    unsigned short lsaAge;          // [sec] 16 bits
    unsigned short options;         // 8 bits
    unsigned short lsaType;         // 8 bits
    Ipv4Address linkStateID;        // 32 bits
    Ipv4Address advertisingRouter;  // 32 bits
    uint32_t lsaSequenceNumber;     // 32 bits
    uint16_t lsaChecksum;     // 16 bits
    CrcMode lsCrcMode = CRC_MODE_UNDEFINED;
    uint16_t lsaLength;
}

File: src/inet/routing/ospfv3/Ospfv3Packet.msg