1 parent ee56b67 commit 37a517eCopy full SHA for 37a517e
1 file changed
args.c
@@ -426,6 +426,23 @@ int parse_args(int argc, char *argv[]) {
426
goto invalid_opt;
427
}
428
429
+ break;
430
+ case OPT_SYNFAKE:
431
+ if (strcmp(optarg, "1") == 0) {
432
+ sect_config->synfake = 1;
433
+ } else if (strcmp(optarg, "0") == 0) {
434
+ sect_config->synfake = 0;
435
+ } else {
436
+ goto invalid_opt;
437
+ }
438
+
439
440
+ case OPT_SYNFAKE_LEN:
441
+ num = parse_numeric_option(optarg);
442
+ if (errno != 0 || num < 0) {
443
444
445
+ sect_config->synfake_len = num;
446
break;
447
default:
448
goto error;
0 commit comments