From: Matt Corallo Date: Tue, 18 May 2021 15:13:00 +0000 (+0000) Subject: Fix fragment parsing due to further `,` overload confusion. X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=a4b9108172887233126338a812d51c77c8cf0ed0;p=flowspec-xdp Fix fragment parsing due to further `,` overload confusion. Ondrej said "No, fragmentation-type is just a variant of bitmask." --- 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):