]> git.ipfire.org Git - thirdparty/lldpd.git/commit
interfaces: listen to all incoming packets on Linux, not just LLDP ones fix/missed-lldp-packets 414/head
authorVincent Bernat <vincent@bernat.ch>
Tue, 27 Oct 2020 17:31:22 +0000 (18:31 +0100)
committerVincent Bernat <vincent@bernat.ch>
Tue, 27 Oct 2020 17:31:22 +0000 (18:31 +0100)
commit8b50be7f61ad20ebae15372a509f7e778da2cc6f
tree85a76bd4e9f85c1a89449a0cf026255d75733e53
parent1d06c55cab1eea7e825e5ac65f951f2ca0e0d4e5
interfaces: listen to all incoming packets on Linux, not just LLDP ones

This mostly reverts fc5526dae75f. Listening only on ETH_P_LLDP makes
us miss incoming packets on enslaved interfaces to an Open vSwitch.
Therefore, prefer listening to ETH_P_ALL instead of ETH_P_LLDP. It is
likely that enslaved interfaces do not fully process Ethernet packets
and `type` is not correctly filled.

Fix #413
NEWS
src/daemon/interfaces-bpf.c
src/daemon/interfaces-linux.c
src/daemon/lldpd.h
src/daemon/priv-bsd.c
src/daemon/priv-linux.c
src/daemon/priv.c