Skip to content

Commit

Permalink
privsep: Sweep ELE_ERROR away for BPF
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rsmarples committed Jun 26, 2024
1 parent 4908d93 commit ea10a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/privsep-bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ea10a3d

Please sign in to comment.