summaryrefslogtreecommitdiff
path: root/zebra/rt_netlink.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-02-22 16:20:37 -0500
committerDonald Sharp <sharpd@nvidia.com>2024-08-21 10:15:55 -0400
commitdb87ab3d861a2da9720317762b6990b2295e7afd (patch)
tree9900389b462b12c2cc8e164435313ec730899f2a /zebra/rt_netlink.c
parentd9775c690cb6f3d5fcc91805c3ada83aaa8f4835 (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