From 00f30da7591c36ab3489d60eddee15b991bd4693 Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Sun, 25 Jun 2023 17:48:12 +0200 Subject: [PATCH] Set repeat limit to 256, only last address octet is incremented. --- udpbench.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udpbench.c b/udpbench.c index 65f8f40..9e47c87 100644 --- a/udpbench.c +++ b/udpbench.c @@ -160,7 +160,7 @@ main(int argc, char *argv[]) errstr, optarg); break; case 'N': - repeat = strtonum(optarg, 0, 1000, &errstr); + repeat = strtonum(optarg, 0, 256, &errstr); if (errstr != NULL) errx(1, "repeat number is %s: %s", errstr, optarg);