mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 15:23:39 +00:00
zebra: Ensure we cannot send invalid range to kernel
The linux kernel adds 1 upon receipt of a weight, if you send a 255 it gets unhappy. Let's Limit range to 254 as that kernel does not like sending of 255. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
d9775c690c
commit
db87ab3d86
@ -343,7 +343,7 @@ void zebra_router_init(bool asic_offload, bool notify_on_ack,
|
|||||||
#endif
|
#endif
|
||||||
zrouter.asic_notification_nexthop_control = false;
|
zrouter.asic_notification_nexthop_control = false;
|
||||||
|
|
||||||
zrouter.nexthop_weight_scale_value = 255;
|
zrouter.nexthop_weight_scale_value = 254;
|
||||||
|
|
||||||
#ifdef HAVE_SCRIPTING
|
#ifdef HAVE_SCRIPTING
|
||||||
zebra_script_init();
|
zebra_script_init();
|
||||||
|
Loading…
Reference in New Issue
Block a user