]> git.ipfire.org Git - thirdparty/lldpd.git/commit
daemon/netlink: use a different socket for changes and queries
authorVincent Bernat <vincent@bernat.ch>
Mon, 4 Dec 2023 15:58:23 +0000 (16:58 +0100)
committerVincent Bernat <vincent@bernat.ch>
Mon, 4 Dec 2023 15:59:36 +0000 (16:59 +0100)
commit88fe3fa1dff2c875f6057e4bb77591f5f36560ef
treed2c36ea011a1bd19bc41e0eeff852eaf05e3bd45
parentf2d5c6fe8c15d187315f9dade9c181b010cfd6d1
daemon/netlink: use a different socket for changes and queries

There is a race condition when using the same socket for both. We need
to subscribe for changes before getting the current state as we don't
want to miss an update happening while we get the initial state, but if
there is such an update, the Netlink messages we receive may not be the
ones we expect.

Fix #611
NEWS
src/daemon/netlink.c