diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-07-12 22:58:38 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-07-13 16:14:37 +0900 |
commit | d73680f3039b468d763cd705b20c8a39f3fdac62 (patch) | |
tree | 0841835ec059ef8b91e39426f38ae4ba2beb5d60 | |
parent | 007d735ec1f6381dd5466805ad752a3a13081297 (diff) |
of1.2: fix OFPGroupMod serialize
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Reviewed-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | ryu/ofproto/ofproto_v1_2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ryu/ofproto/ofproto_v1_2.py b/ryu/ofproto/ofproto_v1_2.py index 89196115..559f50cc 100644 --- a/ryu/ofproto/ofproto_v1_2.py +++ b/ryu/ofproto/ofproto_v1_2.py @@ -384,7 +384,7 @@ OFPFF_CHECK_OVERLAP = 1 << 1 # Check for overlapping entries first. OFPFF_RESET_COUNT = 1 << 2 # Reset flow packet and byte counts. # struct ofp_group_mod -OFP_GROUP_MOD_PACK_STR = '!HBBI' +OFP_GROUP_MOD_PACK_STR = '!HBxI' OFP_GROUP_MOD_SIZE = 16 assert (calcsize(OFP_GROUP_MOD_PACK_STR) + OFP_HEADER_SIZE == OFP_GROUP_MOD_SIZE) @@ -523,7 +523,7 @@ OFP_BUCKET_COUNTER_SIZE = 16 assert calcsize(OFP_BUCKET_COUNTER_PACK_STR) == OFP_BUCKET_COUNTER_SIZE # struct ofp_group_desc_stats -OFP_GROUP_DESC_STATS_PACK_STR = '!HBBI' +OFP_GROUP_DESC_STATS_PACK_STR = '!HBxI' OFP_GROUP_DESC_STATS_SIZE = 8 assert calcsize(OFP_GROUP_DESC_STATS_PACK_STR) == OFP_GROUP_DESC_STATS_SIZE |