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 Router-LSA (ospfv2_router_lsa)

  • Layer: L3 (network)
  • Header: variable length

Reached from

Lower layerSelectorValue
ospfv2_lsals_type1 (0x01)

Fields

FieldTypeDefaultAutoDescription
flagsflags(8)0x0Router-LSA flags (V = virtual link endpoint, E = ASBR, B = ABR).
reserveduint(8)0
num_linksuint(16)Number of items of linksNumber of router links described.
linkslist<struct> — rest of the PDU1 itemsRouter links (link ID, link data, type, TOS count, metric).

flags

BitMaskName
24 (0x04)v
12 (0x02)e
01 (0x01)b

Each item is a group of the fields below.

FieldTypeDefaultAutoDescription
link_idipv4
link_dataipv4
typeenum(8)
num_tosuint(8)
metricuint(16)
ValueName
1 (0x01)point_to_point
2 (0x02)transit
3 (0x03)stub
4 (0x04)virtual_link

Sample templates