summaryrefslogtreecommitdiffstats
path: root/src/privsep-bpf.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-12-09 11:15:30 +0000
committerRoy Marples <roy@marples.name>2020-12-09 11:15:30 +0000
commite99249b6083c5f1b2f58c6b2a8fdee080d6998bd (patch)
tree7f6edfac359d92c318bef782c06640ff8d3ec975 /src/privsep-bpf.c
parent7c08f3777a69c69e87a149bb35681ce2ed2f0490 (diff)
downloaddhcpcd-e99249b6083c5f1b2f58c6b2a8fdee080d6998bd.tar.xz
privsep: Don't log a BPF error that network is down
The master process will catch this clean remove the BPF process.
Diffstat (limited to 'src/privsep-bpf.c')
-rw-r--r--src/privsep-bpf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/privsep-bpf.c b/src/privsep-bpf.c
index 23da9a07..79c4696d 100644
--- a/src/privsep-bpf.c
+++ b/src/privsep-bpf.c
@@ -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