changeset 5556:99bfd2eb77ab draft

privsep: Don't log a BPF error that network is down The master process will catch this clean remove the BPF process.
author Roy Marples <roy@marples.name>
date Wed, 09 Dec 2020 11:15:30 +0000
parents 0fff9309b86d
children e65d193a1960
files src/privsep-bpf.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/privsep-bpf.c	Tue Dec 08 16:15:28 2020 +0000
+++ b/src/privsep-bpf.c	Wed Dec 09 11:15:30 2020 +0000
@@ -73,7 +73,8 @@
 		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