]> git.ipfire.org Git - thirdparty/lldpd.git/commit
interfaces: detect interface index changes fix/port-remove-add 492/head
authorVincent Bernat <vincent@bernat.ch>
Sun, 12 Dec 2021 13:25:13 +0000 (14:25 +0100)
committerVincent Bernat <vincent@bernat.ch>
Sun, 12 Dec 2021 13:25:13 +0000 (14:25 +0100)
commit0ffff892a64df19419705c6dfb7606078a0fe358
tree42f6ac26283b37e887530df50d5a28a4e92a56a8
parent575c586ca09339bf13c4ba0fc5512c66e2b12670
interfaces: detect interface index changes

When an interface is deleted and recreated, we didn't detect any
change and just updated its index. However, the handles we had on this
interface are now invalid. Ensure the interface is correctly
reinitialized in this case.

Fix #490.
NEWS
src/daemon/interfaces-linux.c
src/daemon/interfaces.c
src/daemon/lldpd.c
src/lldpd-structs.h
tests/integration/test_interfaces.py