aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/generated.go
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@freebsd.org>2021-12-31 19:18:08 +0100
committerGitHub <noreply@github.com>2021-12-31 19:18:08 +0100
commite1768e9c12f6025bdcfe8a957808608d499692b8 (patch)
treead5f7bff14bcd0e2a0f92cacb5e0e09599f4e110 /pkg/csource/generated.go
parent36bd2e4865254b8f17e4ab00a89d976d6f71d04b (diff)
executor: bump on FreeBSD the maximum number of tun devices to 256 (#2956)
syz-execprog now uses twice the number of CPU cores as the number of processes. Each process might use a tun device. So bump the maximum number of tun devices to the maximum of 256, which allows syz-execprog to run with default settings on systems with up to 128 cores.
Diffstat (limited to 'pkg/csource/generated.go')
-rw-r--r--pkg/csource/generated.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go
index 519b2fdd5..7c30d01e6 100644
--- a/pkg/csource/generated.go
+++ b/pkg/csource/generated.go
@@ -1668,6 +1668,9 @@ static int tunfd = -1;
#if GOOS_netbsd
#define MAX_TUN 64
+#elif GOOS_freebsd
+#define MAX_TUN 256
+
#else
#define MAX_TUN 4
#endif