X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=flowspec-xdp;a=blobdiff_plain;f=genrules.py;h=37c533ea6832919253fdbd04d6d96887cfd8b7e4;hp=8e58e9ac6de0259bcbdc3f67636a10882d8b0deb;hb=a4b9108172887233126338a812d51c77c8cf0ed0;hpb=c9cc1ccad026928d22628ab8f5f82b3520b85a61 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):