From bcc419e9414564fc64cdde076635d6295641f9a4 Mon Sep 17 00:00:00 2001 From: R3x Date: Sun, 4 Aug 2019 05:55:13 +0000 Subject: executer/common_bsd.h: increase the number of tap/tun devices for NetBSD --- executor/common_bsd.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'executor') diff --git a/executor/common_bsd.h b/executor/common_bsd.h index e483a41d1..95f08bcc5 100644 --- a/executor/common_bsd.h +++ b/executor/common_bsd.h @@ -51,8 +51,14 @@ static int tunfd = -1; // Rest of the packet (if any) will be silently truncated which is fine. #define SYZ_TUN_MAX_PACKET_SIZE 1000 +#if GOOS_netbsd +// Increased number of tap and tun devices if image script is used +#define MAX_TUN 64 + +#else // Maximum number of tun devices in the default install. #define MAX_TUN 4 +#endif // All patterns are non-expanding given values < MAX_TUN. #define TUN_IFACE "tap%d" -- cgit mrf-deployment