From a4b9108172887233126338a812d51c77c8cf0ed0 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 18 May 2021 15:13:00 +0000 Subject: [PATCH] Fix fragment parsing due to further `,` overload confusion. Ondrej said "No, fragmentation-type is just a variant of bitmask." --- genrules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genrules.py b/genrules.py index 8e58e9a..37c533e 100755 --- a/genrules.py +++ b/genrules.py @@ -199,7 +199,7 @@ def ip_to_rule(proto, inip, ty, offset): break;""" def fragment_to_rule(ipproto, rules): - ast = parse_ast(rules, parse_frag_expr, True) + ast = parse_ast(rules, parse_frag_expr, False) return "if (!( " + ast.write(ipproto) + " )) break;" def len_to_rule(rules): -- 2.30.2