]> git.ipfire.org Git - thirdparty/lldpd.git/commit - NEWS
snmp: implement lldpRemOrgDefInfoTable for remote custom TLVs
authorVincent Bernat <vincent@bernat.ch>
Wed, 29 May 2019 16:58:09 +0000 (18:58 +0200)
committerVincent Bernat <vincent@bernat.ch>
Mon, 3 Jun 2019 16:11:08 +0000 (18:11 +0200)
commit8ca3da075bfc6d6b1b0592d24b6e5376b041f34e
tree6ecde970905fe0aef08b980533912d2ecfe0095b
parent10da5bcb106b42ec6a81cca5af7ebe4d2ba30320
snmp: implement lldpRemOrgDefInfoTable for remote custom TLVs

As a simplification, lldpRemOrgDefInfoIndex is 1 for the first custom
TLV of a given port and is increased by 1 for each new TLV. This is
not what is encouraged in the MIB:

> An agent is encouraged to assign monotonically increasing index
> values to new entries, starting with one, after each reboot. It is
> considered unlikely that the lldpRemOrgDefInfoIndex will wrap
> between reboots.

However, it is simpler to implement it this way as we don't need to
record the index inside the `lldpd_custom` structure. Also, the index
will increase even for a different OUI or subtype as we do not want to
sort the custom TLVs.

Fix #330.
NEWS
src/daemon/agent.c
tests/check_snmp.c