| Lower layer | Selector | Value |
ospfv2_lsa | ls_type | 9 (0x09) – 11 (0x0b) (re-decodes this layer) |
| Field | Type | Default | Auto | Description |
ls_age | uint(16) | 0 | | Time since the LSA was originated, in seconds (keep 0 for an exact Auto checksum). |
options | flags(8) | 0x42 | | Optional capabilities (E, MC, N/P, L, DC, O, DN bits). |
ls_type | enum(8) | 10 (area_opaque) | | Opaque LSA flooding scope (9 = link-local, 10 = area, 11 = AS). |
opaque_type | enum(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_id | uint(24) | 0 | | Opaque ID distinguishing LSAs of the same opaque type (24 bits). |
advertising_router | ipv4 | 192.0.2.1 | | Router ID of the router that originated the LSA. |
ls_sequence | uint(32) | 2147483649 | | LSA sequence number (0x80000001 = initial). |
ls_checksum | uint(16) | | Fletcher checksum over the header and everything after it; ls_age counted as zero | Fletcher checksum of the LSA without LS age (Auto). |
length | uint(16) | | Length of the header and payload in octets | Length of the LSA including its header, in octets (Auto). |
| Bit | Mask | Name |
| 0 | 1 (0x01) | mt |
| 1 | 2 (0x02) | e |
| 2 | 4 (0x04) | mc |
| 3 | 8 (0x08) | np |
| 4 | 16 (0x10) | l |
| 5 | 32 (0x20) | dc |
| 6 | 64 (0x40) | o |
| 7 | 128 (0x80) | dn |
| Value | Name |
| 9 (0x09) | link_local_opaque |
| 10 (0x0a) | area_opaque |
| 11 (0x0b) | as_opaque |
| Value | Name |
| 1 (0x01) | traffic_engineering |
| 4 (0x04) | router_information |
| 7 (0x07) | extended_prefix |
| 8 (0x08) | extended_link |
The next layer is selected by opaque_type; when the field is Auto the builder writes the value of the protocol stacked above.
| Level | Rule |
| warning | ls_type within 9..11 |