From 9a087fc6c9b771b98d61e52cb16696835197ca10 Mon Sep 17 00:00:00 2001 From: bol-van Date: Sat, 16 Nov 2024 09:46:08 +0300 Subject: [PATCH] nfqws: allow seqovl=0 to disable seqovl --- nfq/nfqws.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nfq/nfqws.c b/nfq/nfqws.c index f786467..da81369 100644 --- a/nfq/nfqws.c +++ b/nfq/nfqws.c @@ -1595,7 +1595,13 @@ int main(int argc, char **argv) dp->split_count++; break; 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"); exit_clean(1);