diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-02-22 16:20:37 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-08-21 10:15:55 -0400 |
| commit | db87ab3d861a2da9720317762b6990b2295e7afd (patch) | |
| tree | 9900389b462b12c2cc8e164435313ec730899f2a /zebra/rt_netlink.c | |
| parent | d9775c690cb6f3d5fcc91805c3ada83aaa8f4835 (diff) | |
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>
Diffstat (limited to 'zebra/rt_netlink.c')
0 files changed, 0 insertions, 0 deletions
