privsep: Don't log a BPF error that network is down

The master process will catch this clean remove the BPF process.
This commit is contained in:
Roy Marples 2020-12-09 11:15:30 +00:00
parent 7c08f3777a
commit e99249b608

View File

@ -73,7 +73,8 @@ ps_bpf_recvbpf(void *arg)
if (len == -1) {
int error = errno;
logerr("%s: %s", psp->psp_ifname, __func__);
if (errno != ENETDOWN)
logerr("%s: %s", psp->psp_ifname, __func__);
if (error != ENXIO)
break;
/* If the interface has departed, close the BPF