From 319cfdc765530c90da3826e0ccf95452774b86c4 Mon Sep 17 00:00:00 2001 From: ylopez Date: Thu, 17 Nov 2022 19:39:02 +0100 Subject: [PATCH] ospfd: increase API maximum message size OSPF_MAX_LSA_SIZE does not represent the actual maximum size of LSA packets which may be larger than 1500 bytes. If relaying a large OSPF packet to the OSPF API, we do not allocate a big enough buffer to send over the API. This patch increases the maximum size of OSPF packets transmitted over the API. Signed-off-by: ylopez --- ospfd/ospf_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ospfd/ospf_api.h b/ospfd/ospf_api.h index 6f569e962d..fd741c3c48 100644 --- a/ospfd/ospf_api.h +++ b/ospfd/ospf_api.h @@ -298,7 +298,7 @@ struct apimsg { } u; }; -#define OSPF_API_MAX_MSG_SIZE (sizeof(struct apimsg) + OSPF_MAX_LSA_SIZE) +#define OSPF_API_MAX_MSG_SIZE (sizeof(struct apimsg) + OSPF_MAX_PACKET_SIZE) /* ----------------------------------------------------------- * Prototypes for specific messages -- 2.39.5