Skip to content

Commit 37a517e

Browse files
committed
Fix #155 synfake option deleted but present in openwrt
1 parent ee56b67 commit 37a517e

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

args.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,23 @@ int parse_args(int argc, char *argv[]) {
426426
goto invalid_opt;
427427
}
428428

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+
break;
440+
case OPT_SYNFAKE_LEN:
441+
num = parse_numeric_option(optarg);
442+
if (errno != 0 || num < 0) {
443+
goto invalid_opt;
444+
}
445+
sect_config->synfake_len = num;
429446
break;
430447
default:
431448
goto error;

0 commit comments

Comments
 (0)