]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
bpf: on OpenBSD, invert the filter direction 0.7.4
authorVincent Bernat <bernat@luffy.cx>
Sat, 22 Jun 2013 10:15:47 +0000 (12:15 +0200)
committerVincent Bernat <bernat@luffy.cx>
Sat, 22 Jun 2013 10:15:47 +0000 (12:15 +0200)
From the manual page:

> Sets or gets the status of the `direction filter` flag.  If
> non-zero, packets matching the specified direction (either
> `BPF_DIRECTION_IN` or `BPF_DIRECTION_OUT`) will be ignored.

NEWS
src/daemon/priv.c

diff --git a/NEWS b/NEWS
index f72f7dbadce24e022edd96eba4ef3a65afe2593f..2315b74c6bb5936271834d0615b6e3c14e9d6d95 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ lldpd (0.7.4)
     + Segfault in lldpcli.
     + Memory leak in liblldpctl when using a custom log handler.
     + Fix some unaligned memory accesses.
+    + Fix frame reception on OpenBSD.
   * Features:
     + Allow to configure hold value from lldpcli (and hence the TTL).
     + Allow to configure pattern for valid interfaces from lldpcli.
index 2bbde48985ec06cca2feef260365dce8e18e8eb7..db1bda57340db518d71ec7762782be16ba22d6da 100644 (file)
@@ -479,7 +479,7 @@ asroot_iface_init()
 
        /* Don't see sent packets */
 #ifdef HOST_OS_OPENBSD
-       enable = BPF_DIRECTION_IN;
+       enable = BPF_DIRECTION_OUT;
        if (ioctl(fd, BIOCSDIRFILT, (caddr_t)&enable) < 0)
 #else
        enable = 0;