diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-10-29 13:37:09 +0300 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-29 13:37:09 +0300 | 
| commit | a1a8fb4ddd1e39252cd039244c8eca3e1d8b2bad (patch) | |
| tree | 81d49fbd33094bfb49c099af497723ec43c3fa8a /ospfd/ospf_opaque.h | |
| parent | 9f2589103724de7716b75de09a8d0554ea56c870 (diff) | |
| parent | 07a62e585db76d93487279d48b6d15e6b8e1a54a (diff) | |
Merge pull request #9368 from donaldsharp/ospf_ensure_lsa_length
ospfd: Ensure we have some non header lsa data
Diffstat (limited to 'ospfd/ospf_opaque.h')
| -rw-r--r-- | ospfd/ospf_opaque.h | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/ospfd/ospf_opaque.h b/ospfd/ospf_opaque.h index bded32215b..b26bc1e10c 100644 --- a/ospfd/ospf_opaque.h +++ b/ospfd/ospf_opaque.h @@ -77,6 +77,8 @@  #define OPAQUE_TYPE_RANGE_RESERVED(type) (127 < (type) && (type) <= 255) +#define OSPF_OPAQUE_LSA_MIN_SIZE 4U +  #define VALID_OPAQUE_INFO_LEN(lsahdr)                                          \  	((ntohs((lsahdr)->length) >= sizeof(struct lsa_header))                \  	 && ((ntohs((lsahdr)->length) < OSPF_MAX_LSA_SIZE))                    \  | 
