]> git.ipfire.org Git - thirdparty/lldpd.git/commit
netlink: handle blocking read from netlink socket
authorVincent Bernat <vincent@bernat.ch>
Sun, 9 Jun 2019 06:13:06 +0000 (08:13 +0200)
committerVincent Bernat <vincent@bernat.ch>
Wed, 12 Jun 2019 19:50:58 +0000 (21:50 +0200)
commit6c3697f21295e06d32c2ebe808a0ec45f92e5436
treea9beb92568c667d43363b467fd0e7cd2214f9e06
parent8ca3da075bfc6d6b1b0592d24b6e5376b041f34e
netlink: handle blocking read from netlink socket

It seems it is possible to run into a condition where the netlink
socket is not available for read. Set the MSG_DONTWAIT flag and fetch
an error if there is any.

Fix #333
NEWS
src/daemon/event.c
src/daemon/interfaces-linux.c
src/daemon/lldpd.h
src/daemon/netlink.c