From f62a58290e2f1200a2b21f2707a9ff0394a2a724 Mon Sep 17 00:00:00 2001 From: Greg Steuck Date: Thu, 2 Sep 2021 14:47:10 +0200 Subject: executor: ifconfig destroy wants the interface (not device) name (#2739) At least on OpenBSD this is the behavior: % doas ifconfig tun5 create % doas ifconfig tun5 destroy % doas ifconfig tun5 create % doas ifconfig /dev/tun5 destroy ifconfig: SIOCIFDESTROY: Invalid argument --- executor/common_bsd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor/common_bsd.h') diff --git a/executor/common_bsd.h b/executor/common_bsd.h index 131ab0764..d250c5f29 100644 --- a/executor/common_bsd.h +++ b/executor/common_bsd.h @@ -209,7 +209,7 @@ static void initialize_tun(int tun_id) execute_command(0, "ifconfig %s destroy", tun_iface); execute_command(0, "ifconfig %s create", tun_iface); #else - execute_command(0, "ifconfig %s destroy", tun_device); + execute_command(0, "ifconfig %s destroy", tun_iface); #endif tunfd = open(tun_device, O_RDWR | O_NONBLOCK); -- cgit mrf-deployment