diff --git a/src/cli.c b/src/cli.c index e8e38e2c..e3ac508b 100644 --- a/src/cli.c +++ b/src/cli.c @@ -1201,6 +1201,7 @@ int main(int argc, char **argv) static const struct option longopts[] = {{"ech-key", required_argument, NULL, 0}, {"ech-configs", required_argument, NULL, 0}, {"disable-ecn", no_argument, NULL, 0}, + {"default-jumpstart", required_argument, NULL, 0}, {"max-jumpstart", required_argument, NULL, 0}, {NULL}}; while ((ch = getopt_long(argc, argv, "a:b:B:c:C:Dd:k:Ee:f:Gi:I:K:l:M:m:NnOp:P:Rr:S:s:u:U:Vvw:W:x:X:y:h", longopts, @@ -1213,6 +1214,11 @@ int main(int argc, char **argv) ech_setup_configs(optarg); } else if (strcmp(longopts[opt_index].name, "disable-ecn") == 0) { ctx.enable_ecn = 0; + } else if (strcmp(longopts[opt_index].name, "default-jumpstart") == 0) { + if (sscanf(optarg, "%" SCNu32, &ctx.default_jumpstart_cwnd_bytes) != 1) { + fprintf(stderr, "failed to parse default jumpstart size: %s\n", optarg); + exit(1); + } } else if (strcmp(longopts[opt_index].name, "max-jumpstart") == 0) { if (sscanf(optarg, "%" SCNu32, &ctx.max_jumpstart_cwnd_bytes) != 1) { fprintf(stderr, "failed to parse max jumpstart size: %s\n", optarg);