]> git.ipfire.org Git - thirdparty/lldpd.git/commit
interfaces: detect interface index changes
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:45:27 +0000 (14:45 +0100)
commit3d916d6d89a6f4483d6931f495eee570363d16e7
tree86a3778db4cc27e0980fa1da3e0920b93671f89f
parent9f370881d17d74ff89d061872556555f8315864c
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