Fix fragment parsing due to further `,` overload confusion.
authorMatt Corallo <git@bluematt.me>
Tue, 18 May 2021 15:13:00 +0000 (15:13 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 18 May 2021 15:13:00 +0000 (15:13 +0000)
Ondrej said "No, fragmentation-type is just a variant of bitmask."

genrules.py

index 8e58e9ac6de0259bcbdc3f67636a10882d8b0deb..37c533ea6832919253fdbd04d6d96887cfd8b7e4 100755 (executable)
@@ -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):