diff options
author | Donald Sharp <sharpd@nvidia.com> | 2024-10-07 18:40:46 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2024-10-08 15:26:57 +0200 |
commit | 9f8968fc5ae700a95867010bc69a51319027bd71 (patch) | |
tree | e159ddde07cbe9fadeeb44e2a51481893a6089ac /zebra/zapi_msg.c | |
parent | Merge pull request #15903 from y-bharath14/srib-topotests-v1 (diff) | |
download | frr-9f8968fc5ae700a95867010bc69a51319027bd71.tar.xz frr-9f8968fc5ae700a95867010bc69a51319027bd71.zip |
*: Allow 16 bit size for nexthops
Currently FRR is limiting the nexthop count to a uint8_t not a
uint16_t. This leads to issues when the nexthop count is 256
which results in the count to overflow to 0 causing problems
in the code.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zapi_msg.c')
-rw-r--r-- | zebra/zapi_msg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c index b13d58f99..7dae75bac 100644 --- a/zebra/zapi_msg.c +++ b/zebra/zapi_msg.c @@ -517,7 +517,7 @@ int zsend_redistribute_route(int cmd, struct zserv *client, struct zapi_nexthop *api_nh; struct nexthop *nexthop; const struct prefix *p, *src_p; - uint8_t count = 0; + uint16_t count = 0; afi_t afi; size_t stream_size = MAX(ZEBRA_MAX_PACKET_SIZ, sizeof(struct zapi_route)); |