]> git.proxmox.com Git - mirror_frr.git/commit - zebra/kernel_netlink.c
zebra: Fix extended ack error message parsing
authorStephen Worley <sworley@cumulusnetworks.com>
Tue, 26 Mar 2019 05:03:06 +0000 (01:03 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Tue, 26 Mar 2019 05:20:29 +0000 (01:20 -0400)
commit4cebb2b6f66466e916de9c5171ce13cb6dbb3447
tree8d4c476f54827e573ebb9305cc33a1c3fe630f39
parentdfff60ed3163a184b32adcadf559a09652ecccee
zebra: Fix extended ack error message parsing

Fix the macros for reading NLA attribute info
from an extended error ack. We were processing the data
using route attributes (rtattr) which is identical in size
to nlattr but probably should not be used.

Further, we were incorrectly calculating the length of the
inner netlink message that cause the error. We have to read
passed that in order to access all the nlattr's.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/kernel_netlink.c