]> 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>
Sun, 19 Feb 2017 12:59:48 +0000 (13:59 +0100)
commit78346c890cfb3e2d53333d9c29ab89234ba52540
tree062ba2393fb9217c1eaa3cbc0b58115cdaef9a53
parent32f0deeebc9172c3f5f4a4d02aab32e6904947f6
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