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 LSA (ospfv2_lsa)

Reached from

Lower layerSelectorValue
ospfv2_lsunum_lsas(any other value)

Fields

FieldTypeDefaultAutoDescription
ls_ageuint(16)0Time since the LSA was originated, in seconds (keep 0 for an exact Auto checksum).
optionsflags(8)0x2Optional capabilities (E, MC, N/P, L, DC, O, DN bits).
ls_typeenum(8)1 (router)Protocol number of the next layer (see Next layer)LSA type (Auto from the LSA body layer; 9 / 10 / 11 = opaque LSA).
link_state_idipv4192.0.2.1Link State ID identifying the described part of the network.
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
1 (0x01)router
2 (0x02)network
3 (0x03)summary_network
4 (0x04)summary_asbr
5 (0x05)as_external
7 (0x07)nssa_external
9 (0x09)link_local_opaque
10 (0x0a)area_opaque
11 (0x0b)as_opaque

Next layer

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

ValueProtocolNote
1 (0x01)ospfv2_router_lsa
2 (0x02)ospfv2_network_lsa
3 (0x03)ospfv2_summary_lsa
4 (0x04)ospfv2_summary_lsa
5 (0x05)ospfv2_external_lsa
7 (0x07)ospfv2_external_lsa
9 (0x09) – 11 (0x0b)ospfv2_opaque_lsare-decodes this layer

Sample templates