]> git.ipfire.org Git - thirdparty/lldpd.git/commit
Fix for LLDP related netlink error messages 375/head
authorRadhika Mahankali <radhika@cumulusnetworks.com>
Mon, 9 Dec 2019 06:59:16 +0000 (22:59 -0800)
committerSam Tannous <stannous@cumulusnetworks.com>
Mon, 9 Dec 2019 18:10:11 +0000 (10:10 -0800)
commite512429c88d2dfa7d37fa39b2c6735d0c8f1042f
tree7a0c9637498dfb72df7f56e930475847a407796c
parente02913c2c5a312a99b0d320d3b47713cc0051d1e
Fix for LLDP related netlink error messages

Ticket: CM-27243
Reviewed By: CCR-9608
Testing Done: Unit tseting, PTM Smoke

Issue: Error messages "netlink: 8 bytes leftover after parsing attributes
in process `lldpd'"

Root cause: Root Cause: The length of the netlink message was not being set
properly for non-bridge family type messages. Same length was being used for
both type of messages even though bridge family type message has extra
attribute. This causes 8 extra bytes being left over in the non-bridge
family type netlink messages.

Fix: Calculating and setting the length separately for bridge and non-bridge
family type messages.
(cherry picked from commit aac76966539bf932d5923b165762db370990bf94)
src/daemon/netlink.c