commit | 3005cf9f93374b77b3436fd35c5000d460612979 | [log] [tgz] |
---|---|---|
author | Rich Lane <rlane@bigswitch.com> | Wed May 01 12:33:35 2013 -0700 |
committer | Rich Lane <rlane@bigswitch.com> | Wed May 01 12:33:35 2013 -0700 |
tree | 0b88b4986dc5f7f9ff3396984b466b252c6e2d39 | |
parent | b00a75fb8b87a81013c8b49d6e911bdff0fd2205 [diff] [blame] |
pyloxi: support (only) empty 1.2/1.3 matches
diff --git a/py_gen/templates/_pack.py b/py_gen/templates/_pack.py index e853833..0c208f7 100644 --- a/py_gen/templates/_pack.py +++ b/py_gen/templates/_pack.py
@@ -57,3 +57,6 @@ length = sum([len(x) for x in packed]) packed[${length_member_index}] = ${length_member.oftype.gen_pack_expr('length')} :: #endif +:: if ofclass.name == 'of_match_v3': + packed.append('\x00' * ((length + 7)/8*8 - length)) +:: #endif