# HG changeset patch # User Roy Marples # Date 1589980530 -3600 # Node ID 0281af78918f4228e784876cd74e03779eb74686 # Parent 4507bcbe200deccd4515abc627ca9d4212ecfa77 privsep: Add comment about BPF returing EPERM on OpenBSD. Looks like an OpenBSD bug. diff -r 4507bcbe200d -r 0281af78918f src/privsep-bpf.c --- a/src/privsep-bpf.c Wed May 20 14:07:36 2020 +0100 +++ b/src/privsep-bpf.c Wed May 20 14:15:30 2020 +0100 @@ -106,6 +106,13 @@ { struct ps_process *psp = arg; + /* + * OpenBSD-6.6 at least will return EPERM here for every + * BOOTP sent except for the first one. + * However with wih EPERM, the BOOTP message is *still* sent. + * This means the BPF write filter isn't working as it should. + * On FreeBSD it works fine. + */ if (ps_recvpsmsg(psp->psp_ctx, psp->psp_fd, ps_bpf_recvmsgcb, arg) == -1) logerr(__func__);