From 0ba5442094edaa61f8969a358369123ecab89233 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 23 Dec 2021 16:06:14 +0000 Subject: all: create 8 tun devices for OpenBSD Currently only 4 are created by default. This limits the maximum number of simultaneously running syz-executors. --- executor/common_bsd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'executor') diff --git a/executor/common_bsd.h b/executor/common_bsd.h index 7c6ad8efd..2bfce1826 100644 --- a/executor/common_bsd.h +++ b/executor/common_bsd.h @@ -130,12 +130,12 @@ static int tunfd = -1; #if GOOS_netbsd // Increased number of tap and tun devices if image script is used #define MAX_TUN 64 - #elif GOOS_freebsd // The maximum number of tun devices is limited by the way IP addresses // are assigned. Based on this, the limit is 256. #define MAX_TUN 256 - +#elif GOOS_openbsd +#define MAX_TUN 8 #else // Maximum number of tun devices in the default install. #define MAX_TUN 4 -- cgit mrf-deployment