nfqws: allow seqovl=0 to disable seqovl

This commit is contained in:
bol-van 2024-11-16 09:46:08 +03:00
parent 3ad029efe0
commit 9a087fc6c9

View File

@ -1595,7 +1595,13 @@ int main(int argc, char **argv)
dp->split_count++; dp->split_count++;
break; break;
case 26: /* dpi-desync-split-seqovl */ case 26: /* dpi-desync-split-seqovl */
if (!parse_split_pos(optarg, &dp->seqovl)) if (!strcmp(optarg,"0"))
{
// allow zero = disable seqovl
dp->seqovl.marker=PM_ABS;
dp->seqovl.pos=0;
}
else if (!parse_split_pos(optarg, &dp->seqovl))
{ {
DLOG_ERR("Invalid argument for dpi-desync-split-seqovl\n"); DLOG_ERR("Invalid argument for dpi-desync-split-seqovl\n");
exit_clean(1); exit_clean(1);