summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_packet.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-09-14 19:13:32 +0200
committerDonald Sharp <sharpd@nvidia.com>2021-09-14 19:13:32 +0200
commit07a62e585db76d93487279d48b6d15e6b8e1a54a (patch)
treed472fe164f380e2413318965ead0cdac639f4e50 /ospfd/ospf_packet.c
parentospfd: Ensure we have some non header lsa data (diff)
downloadfrr-07a62e585db76d93487279d48b6d15e6b8e1a54a.tar.xz
frr-07a62e585db76d93487279d48b6d15e6b8e1a54a.zip
ospfd: Add some small doc to what each one is for future people
min lsa packet sizes are not always directly corresponding to the actual LSA. Add a bit of comments so it's easier for future people to figure out. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospfd/ospf_packet.c')
-rw-r--r--ospfd/ospf_packet.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c
index 7c32c18d4..44f547b36 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,
- OSPF_OPAQUE_LSA_MIN_SIZE,
- OSPF_OPAQUE_LSA_MIN_SIZE,
- OSPF_OPAQUE_LSA_MIN_SIZE,
+ 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() */