diff options
| author | Lou Berger <lberger@labn.net> | 2022-10-19 11:50:41 +0000 |
|---|---|---|
| committer | Lou Berger <lberger@labn.net> | 2022-10-19 11:50:41 +0000 |
| commit | 0b91fce78b0bcd601e1c9eff44dbac1e847038cc (patch) | |
| tree | 15f1583255430caba32e9028cd2f387ebdf96ac2 | |
| parent | 1e75c40c1c0b2267fae461895e482b319c4f1b27 (diff) | |
ospfd: allow for zero length opaque LSAs (which is permitted per RFC 5250)
Signed-off-by: Lou Berger <lberger@labn.net>
| -rw-r--r-- | ospfd/ospf_opaque.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_opaque.h b/ospfd/ospf_opaque.h index 9c76877908..05fe6deac0 100644 --- a/ospfd/ospf_opaque.h +++ b/ospfd/ospf_opaque.h @@ -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)) \ |
