From: Roy Marples Date: Wed, 26 Jun 2024 11:30:42 +0000 (+0100) Subject: privsep: Sweep ELE_ERROR away for BPF X-Git-Tag: v10.0.9~15 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=ea10a3d887ea7d3c631b45f708c030e7f92891fd;p=thirdparty%2Fdhcpcd.git privsep: Sweep ELE_ERROR away for BPF It's just noise and we'll handle NETDOWN in the loop. We sometimes see it on Linux when a wireless interface "roams" in fake testing. --- diff --git a/src/privsep-bpf.c b/src/privsep-bpf.c index 74286535..032e6d1a 100644 --- a/src/privsep-bpf.c +++ b/src/privsep-bpf.c @@ -67,7 +67,7 @@ ps_bpf_recvbpf(void *arg, unsigned short events) .ps_cmd = psp->psp_id.psi_cmd, }; - if (events != ELE_READ) + if (!(events & (ELE_READ | ELE_ERROR))) logerrx("%s: unexpected event 0x%04x", __func__, events); bpf->bpf_flags &= ~BPF_EOF;