| Lower layer | Selector | Value |
ospfv2_lsu | num_lsas | (any other value) |
| 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) | 0x2 | | Optional capabilities (E, MC, N/P, L, DC, O, DN bits). |
ls_type | enum(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_id | ipv4 | 192.0.2.1 | | Link State ID identifying the described part of the network. |
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 |
| 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 |
The next layer is selected by ls_type; when the field is Auto the builder writes the value of the protocol stacked above.