]> git.ipfire.org Git - thirdparty/lldpd.git/commit
core: optimize BPF filter
authorVincent Bernat <bernat@luffy.cx>
Mon, 2 Jan 2012 07:27:43 +0000 (08:27 +0100)
committerVincent Bernat <bernat@luffy.cx>
Mon, 2 Jan 2012 07:38:17 +0000 (08:38 +0100)
commita2606cac2d73695d937ed686fbedd6deebb5c6f4
treeb8cd70bcaa7d680b04bb2af21b8a30948e6bc2fa
parentab2d1c1f1ffa85ee6bee0a16ec2fbcb83b4740ba
core: optimize BPF filter

When monitoring high trafic interfaces, the BPF filter can become
quite important. We optimize it a bit by first checking if the
ethernet address is a multicast one. If it is not, we only have to
check for EDP.
CHANGELOG
src/interfaces.c