]> git.ipfire.org Git - thirdparty/lldpd.git/commit
lldp: attach remote TTL to port instead of chassis
authorVincent Bernat <vincent@bernat.im>
Mon, 13 Feb 2017 08:15:13 +0000 (09:15 +0100)
committerVincent Bernat <vincent@bernat.im>
Wed, 15 Feb 2017 07:53:14 +0000 (08:53 +0100)
commit717a0fdc86cb2f7efb038a18d80d422de19cca46
tree57ebe4eec1082edbeadbb33a2b338abed7730c97
parentdc39b0f2e9f8266eb900ef9eb864f1cd2ab0c670
lldp: attach remote TTL to port instead of chassis

When receiving a 0 TTL, we should trigger expiry of the remote port, not
the remote chassis. Therefore, TTL is moved to port, except for the
local chassis (we need it even when we don't have a port). So, for
remote ports, TTL is on the port. For local ports, it is on the
chassis. This fixes two cases:

 - a shutdown LLDPU should only expire one local port
 - when a port is refreshed, another port of the same chassis shouldn't
   be refreshed
16 files changed:
NEWS
src/client/display.c
src/daemon/event.c
src/daemon/protocols/cdp.c
src/daemon/protocols/edp.c
src/daemon/protocols/lldp.c
src/daemon/protocols/sonmp.c
src/lib/atoms/port.c
src/lib/lldpctl.h
src/lldpd-structs.c
src/lldpd-structs.h
tests/check_lldp.c
tests/decode.c
tests/integration/test_basic.py
tests/integration/test_lldpcli.py
tests/integration/test_pcap.py