]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: increase API maximum message size 12334/head
authorylopez <yoann.lopez@gmail.com>
Thu, 17 Nov 2022 18:39:02 +0000 (19:39 +0100)
committerylopez <yoann.lopez@gmail.com>
Fri, 18 Nov 2022 08:30:09 +0000 (09:30 +0100)
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 <yoann.lopez@gmail.com>
ospfd/ospf_api.h

index 6f569e962d93ee3c1f6e71265edfd5e9003fb62c..fd741c3c484c3edcab13f61b33d28b0972c7ff42 100644 (file)
@@ -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