aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_bsd.h
diff options
context:
space:
mode:
authorR3x <siddharth.muralee@gmail.com>2019-08-04 05:55:13 +0000
committerDmitry Vyukov <dvyukov@google.com>2019-08-08 15:23:39 +0200
commitbcc419e9414564fc64cdde076635d6295641f9a4 (patch)
treeddb503143b753f2c59836bfad8ede369cc9fff90 /executor/common_bsd.h
parent1bd538f42c8ec8512d864f739dd98dce3d41256a (diff)
executer/common_bsd.h: increase the number of tap/tun devices for NetBSD
Diffstat (limited to 'executor/common_bsd.h')
-rw-r--r--executor/common_bsd.h6
1 files changed, 6 insertions, 0 deletions
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"