diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2021-10-29 12:37:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-29 12:37:09 +0200 |
commit | a1a8fb4ddd1e39252cd039244c8eca3e1d8b2bad (patch) | |
tree | 81d49fbd33094bfb49c099af497723ec43c3fa8a /ospfd/ospf_packet.c | |
parent | Merge pull request #9851 from sartura/isis_unpack_item_ext_subtlvs_fixes (diff) | |
parent | ospfd: Add some small doc to what each one is for future people (diff) | |
download | frr-a1a8fb4ddd1e39252cd039244c8eca3e1d8b2bad.tar.xz frr-a1a8fb4ddd1e39252cd039244c8eca3e1d8b2bad.zip |
Merge pull request #9368 from donaldsharp/ospf_ensure_lsa_length
ospfd: Ensure we have some non header lsa data
Diffstat (limited to 'ospfd/ospf_packet.c')
-rw-r--r-- | ospfd/ospf_packet.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c index ca4bb0a2b..1ebb14f2a 100644 --- a/ospfd/ospf_packet.c +++ b/ospfd/ospf_packet.c @@ -99,18 +99,18 @@ static const uint16_t ospf_packet_minlen[] = { /* Minimum (besides OSPF_LSA_HEADER_SIZE) lengths for LSAs of particular types, offset is the "LSA type" field. */ static const uint16_t ospf_lsa_minlen[] = { - 0, - OSPF_ROUTER_LSA_MIN_SIZE, - OSPF_NETWORK_LSA_MIN_SIZE, - OSPF_SUMMARY_LSA_MIN_SIZE, - OSPF_SUMMARY_LSA_MIN_SIZE, - OSPF_AS_EXTERNAL_LSA_MIN_SIZE, - 0, - OSPF_AS_EXTERNAL_LSA_MIN_SIZE, - 0, - 0, - 0, - 0, + 0, /* OSPF_UNKNOWN_LSA */ + OSPF_ROUTER_LSA_MIN_SIZE, /* OSPF_ROUTER_LSA */ + OSPF_NETWORK_LSA_MIN_SIZE, /* OSPF_NETWORK_LSA */ + OSPF_SUMMARY_LSA_MIN_SIZE, /* OSPF_SUMMARY_LSA */ + OSPF_SUMMARY_LSA_MIN_SIZE, /* OSPF_ASBR_SUMMARY_LSA */ + OSPF_AS_EXTERNAL_LSA_MIN_SIZE, /* OSPF_AS_EXTERNAL_LSA */ + 0, /* Unsupported, OSPF_GROUP_MEMBER_LSA */ + OSPF_AS_EXTERNAL_LSA_MIN_SIZE, /* OSPF_AS_NSSA_LSA */ + 0, /* Unsupported, OSPF_EXTERNAL_ATTRIBURES_LSA */ + OSPF_OPAQUE_LSA_MIN_SIZE, /* OSPF_OPAQUE_LINK_LSA */ + OSPF_OPAQUE_LSA_MIN_SIZE, /* OSPF_OPAQUE_AREA_LSA */ + OSPF_OPAQUE_LSA_MIN_SIZE, /* OSPF_OPAQUE_AS_LSA */ }; /* for ospf_check_auth() */ |