]> git.ipfire.org Git - thirdparty/lldpd.git/commit
lldp: clear station bit if any other capability is enabled
authorSteven Webster <steven.webster@windriver.com>
Tue, 20 Jun 2017 20:04:38 +0000 (16:04 -0400)
committerVincent Bernat <vincent@bernat.im>
Tue, 11 Jul 2017 17:16:47 +0000 (19:16 +0200)
commit3cb4e08c266fde2f7eddf93d2033ec2252e6fbbf
tree052f6a4371eec0e5d5a3c4a0eec429f70a32d3e0
parenteeaaea00711abbee279ce592d513578ce83c8d13
lldp: clear station bit if any other capability is enabled

The 801.1AB spec states that the station only capability should
not be set in conjunction with any other (capability) bits.

It is possible for the lldpd interface update routine to set the
station bit, while the lldpd chassis update routine may, at a later
time, set the router capability bit. In this case the station bit
is not cleared.

This commit clears the station bit if any other capability is set.
src/daemon/lldpd.c