]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: allow for zero length opaque LSAs (which is permitted per RFC 5250)
authorLou Berger <lberger@labn.net>
Wed, 19 Oct 2022 11:50:41 +0000 (11:50 +0000)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Fri, 21 Oct 2022 15:23:52 +0000 (15:23 +0000)
Signed-off-by: Lou Berger <lberger@labn.net>
(cherry picked from commit 0b91fce78b0bcd601e1c9eff44dbac1e847038cc)

ospfd/ospf_opaque.h

index 9c768779086388a9c5248ce11ef83661ca783dd3..05fe6deac09a49ada2dbf8c46cac36314d9b67b4 100644 (file)
@@ -77,7 +77,7 @@
 
 #define OPAQUE_TYPE_RANGE_RESERVED(type) (127 < (type) && (type) <= 255)
 
-#define OSPF_OPAQUE_LSA_MIN_SIZE 4U
+#define OSPF_OPAQUE_LSA_MIN_SIZE 0 /* RFC5250 imposes no minimum */
 
 #define VALID_OPAQUE_INFO_LEN(lsahdr)                                          \
        ((ntohs((lsahdr)->length) >= sizeof(struct lsa_header))                \