]> git.ipfire.org Git - thirdparty/lldpd.git/commit
daemon/interfaces: fix management address selection when negative
authorVincent Bernat <vincent@bernat.ch>
Sat, 30 Aug 2025 07:56:30 +0000 (09:56 +0200)
committerVincent Bernat <vincent@bernat.ch>
Sat, 30 Aug 2025 07:56:30 +0000 (09:56 +0200)
commit668f529b6c7657e10d65c4a817547e4bfdf7d72b
tree1c68515080e83b8414c99402219021840ebf1f20
parent42c73ee1ea01b4778c82142c5a532096140a7a39
daemon/interfaces: fix management address selection when negative

When we had a negative IP address, and nothing positive, the address was
still selected as it didn't match an interface. When all negative, we
should only select an address if both IP and interface are allowed.

This mechanism is becoming a bit complex.
NEWS
src/daemon/interfaces.c
src/daemon/pattern.c
tests/integration/test_basic.py