Skip to content

Commit

Permalink
Set repeat limit to 256, only last address octet is incremented.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluhm committed Jun 25, 2023
1 parent 109a3cb commit 00f30da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion udpbench.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 00f30da

Please sign in to comment.