Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

OSPFv2 Opaque LSA (ospfv2_opaque_lsa)

Reached from

Lower layerSelectorValue
ospfv2_lsals_type9 (0x09) – 11 (0x0b) (re-decodes this layer)

Fields

FieldTypeDefaultAutoDescription
ls_ageuint(16)0Time since the LSA was originated, in seconds (keep 0 for an exact Auto checksum).
optionsflags(8)0x42Optional capabilities (E, MC, N/P, L, DC, O, DN bits).
ls_typeenum(8)10 (area_opaque)Opaque LSA flooding scope (9 = link-local, 10 = area, 11 = AS).
opaque_typeenum(8)4 (router_information)Protocol number of the next layer (see Next layer)Opaque type (1 = TE, 4 = Router Information, 7 = Extended Prefix, 8 = Extended Link; Auto from the body layer).
opaque_iduint(24)0Opaque ID distinguishing LSAs of the same opaque type (24 bits).
advertising_routeripv4192.0.2.1Router ID of the router that originated the LSA.
ls_sequenceuint(32)2147483649LSA sequence number (0x80000001 = initial).
ls_checksumuint(16)Fletcher checksum over the header and everything after it; ls_age counted as zeroFletcher checksum of the LSA without LS age (Auto).
lengthuint(16)Length of the header and payload in octetsLength of the LSA including its header, in octets (Auto).

options

BitMaskName
01 (0x01)mt
12 (0x02)e
24 (0x04)mc
38 (0x08)np
416 (0x10)l
532 (0x20)dc
664 (0x40)o
7128 (0x80)dn

ls_type

ValueName
9 (0x09)link_local_opaque
10 (0x0a)area_opaque
11 (0x0b)as_opaque

opaque_type

ValueName
1 (0x01)traffic_engineering
4 (0x04)router_information
7 (0x07)extended_prefix
8 (0x08)extended_link

Next layer

The next layer is selected by opaque_type; when the field is Auto the builder writes the value of the protocol stacked above.

ValueProtocolNote
1 (0x01)ospfv2_te_lsa
4 (0x04)ospfv2_ri_lsa
7 (0x07)ospfv2_ext_prefix_lsa
8 (0x08)ospfv2_ext_link_lsa

Constraints

LevelRule
warningls_type within 9..11

Sample templates