From 13812178217165eb1acf35fe852b04dd2165bf0c Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 22 Jun 2013 12:15:47 +0200 Subject: [PATCH] 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. --- NEWS | 1 + src/daemon/priv.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5