]> git.ipfire.org Git - thirdparty/lldpd.git/commit
interfaces: on Linux, clear socket error queue on error fix/epollerrr 216/head
authorVincent Bernat <vincent@bernat.im>
Fri, 30 Dec 2016 22:03:34 +0000 (23:03 +0100)
committerVincent Bernat <vincent@bernat.im>
Sat, 31 Dec 2016 10:24:20 +0000 (11:24 +0100)
commit54cccdd42e85ca00cc74b029b449cee0408f6e71
treedea128a9bd0c00f1392a8b1603a69e17d218a24d
parent462ef2ce2e324b6c97ecd0da149ad2621d5d8bc2
interfaces: on Linux, clear socket error queue on error

With AF_PACKET, it is possible to get an error in the error queue even
when we didn't ask to receive them (in contrast with AF_INET where we
have to set IP_RECVERR socket option). Currently, the only error we can
receive is SOL_PACKET/PACKET_TX_TIMESTAMP, but we just want to clear any
error in the socket queue to be able to read packets (otherwise, poll()
will always return POLLERR).

Fix #215.
NEWS
src/daemon/interfaces-linux.c