]> 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>
Sun, 9 Jun 2019 06:37:51 +0000 (08:37 +0200)
commitf4cd9dec86fa8b3c2cef1902f0cb88011411f47e
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