]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Ensure proper decoding of netlink message 15892/head
authorDonald Sharp <sharpd@nvidia.com>
Tue, 30 Apr 2024 14:53:48 +0000 (10:53 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 30 Apr 2024 18:46:08 +0000 (14:46 -0400)
commit26595e316275768ca32f3788b2bce2eb16cfc62d
treeb61ff5d73059fe28eb20dac1ad4b87b0779d4641
parent65c2593a12dcd2688e2d83eba6a39c0df519c4b1
zebra: Ensure proper decoding of netlink message

As part of the kernel netlink functionality, it is
possible that a bit of nested attributes can be
passed up.  This attribute has a type value which
is stored in the lower 8 bits and in the upper 8
bits are a couple control flags that can be used.
FRR can parse this data and then just throw away
the value unless we mask off the upper 8 bits.
Let's ensure that it can be properly parsed.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/fpm_listener.c
zebra/kernel_netlink.c