- Layer: L3 (network)
- Header: variable length
| Lower layer | Selector | Value |
ospfv2_lsa | ls_type | 1 (0x01) |
| Field | Type | Default | Auto | Description |
flags | flags(8) | 0x0 | | Router-LSA flags (V = virtual link endpoint, E = ASBR, B = ABR). |
reserved | uint(8) | 0 | | |
num_links | uint(16) | | Number of items of links | Number of router links described. |
links | list<struct> — rest of the PDU | 1 items | | Router links (link ID, link data, type, TOS count, metric). |
| Bit | Mask | Name |
| 2 | 4 (0x04) | v |
| 1 | 2 (0x02) | e |
| 0 | 1 (0x01) | b |
Each item is a group of the fields below.
| Field | Type | Default | Auto | Description |
link_id | ipv4 | | | |
link_data | ipv4 | | | |
type | enum(8) | | | |
num_tos | uint(8) | | | |
metric | uint(16) | | | |
| Value | Name |
| 1 (0x01) | point_to_point |
| 2 (0x02) | transit |
| 3 (0x03) | stub |
| 4 (0x04) | virtual_link |