From: Vincent Bernat Date: Sat, 22 Jun 2013 10:15:47 +0000 (+0200) Subject: bpf: on OpenBSD, invert the filter direction X-Git-Tag: 0.7.4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13812178217165eb1acf35fe852b04dd2165bf0c;p=thirdparty%2Flldpd.git bpf: on OpenBSD, invert the filter direction 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. --- diff --git a/NEWS b/NEWS index f72f7dba..2315b74c 100644 --- 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. diff --git a/src/daemon/priv.c b/src/daemon/priv.c index 2bbde489..db1bda57 100644 --- a/src/daemon/priv.c +++ b/src/daemon/priv.c @@ -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;