diff options
| author | ylopez <yoann.lopez@gmail.com> | 2022-11-17 19:39:02 +0100 | 
|---|---|---|
| committer | ylopez <yoann.lopez@gmail.com> | 2022-11-18 09:30:09 +0100 | 
| commit | 319cfdc765530c90da3826e0ccf95452774b86c4 (patch) | |
| tree | 9b4e004c7a31f7af79119591ac3970af633a2176 /ospfd/ospf_api.h | |
| parent | b7de3fe8a9907d37f9f7726a87e488de7f1f9ec4 (diff) | |
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 <yoann.lopez@gmail.com>
Diffstat (limited to 'ospfd/ospf_api.h')
| -rw-r--r-- | ospfd/ospf_api.h | 2 | 
1 files changed, 1 insertions, 1 deletions
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  | 
