]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Allow tunneldump data to work properly on non-supported kernels 12067/head
authorDonald Sharp <sharpd@nvidia.com>
Tue, 4 Oct 2022 12:51:38 +0000 (08:51 -0400)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 6 Oct 2022 13:53:31 +0000 (13:53 +0000)
commitfab2713c532ce2b4e286d73ba62167eee59c3d68
treeb876b693bf61fc83e581a6121bd5c210810e3020
parentf05026875d93f26df1350beee505d4718ee83c0c
zebra: Allow tunneldump data to work properly on non-supported kernels

When zebra requests tunnel data it is sending a RTM_GETTUNNEL per
interface that is a VXLAN tunnel.  If the kernel that is being
used does not support the particular request type then zebra
will get a error message per tunnel request back.  Unfortunately
netlink_parse_info *stops* reading on the first error message.
Therefor one kernels that are returning an error message
let's gather all of those errors.  This will allow things
like route reads to actually work properly

Fixes: #12056
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit 451165eb57cd12795d8260ef927ce3d5ee4af9ed)
zebra/if_netlink.c