]> git.ipfire.org Git - thirdparty/lldpd.git/commit
lldp: don't discard the whole LLDPDU when only one TLV is invalid
authorVincent Bernat <vincent@bernat.ch>
Thu, 21 Nov 2019 19:13:38 +0000 (20:13 +0100)
committerVincent Bernat <vincent@bernat.ch>
Thu, 21 Nov 2019 19:13:38 +0000 (20:13 +0100)
commit314ca2736599323f90201ec1db1d565006abe750
treeb310f5e557f2445eaa8fe2c68a4a470752483717
parent69362215b2fbaf7617c989ef2538d01ad8130db2
lldp: don't discard the whole LLDPDU when only one TLV is invalid

IEEE802.1AB-2005 says:

> If TLV_type_value is in the range of reserved TLV types in Table
> 9-1, the TLV is unrecognized and may be a basic TLV from a later
> LLDP version. The statsTLVsUnrecognizedTotal counter shall be
> incremented, and the TLV shall be assumed to be validated.

Fix #323
src/daemon/protocols/lldp.c