]> git.ipfire.org Git - thirdparty/lldpd.git/commit
priv: lock BPF interface on BSD
authorVincent Bernat <vincent.bernat@dailymotion.com>
Mon, 14 Jan 2013 09:21:13 +0000 (10:21 +0100)
committerVincent Bernat <bernat@luffy.cx>
Mon, 14 Jan 2013 19:48:42 +0000 (20:48 +0100)
commite735a3196e177977b539cce211cade3da4a30af7
tree1be0d9fb40e58d1e3b2dd53e9a5014fca8c4ba7e
parent72706acd815f18f1e6a3bfc8f1861ca91bc06891
priv: lock BPF interface on BSD

We move all BPF setup in the monitor process. When the socket is
configured, we lock it. This works for both OpenBSD and FreeBSD. This
feature does not seem to exist on Linux. However, for consistency, we
also move BPF filter setup in priv.c for Linux.
NEWS
src/daemon/interfaces-bsd.c
src/daemon/interfaces-linux.c
src/daemon/interfaces.c
src/daemon/lldpd.h
src/daemon/priv.c