diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-07-01 10:26:23 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-07-03 04:54:25 +0900 |
commit | ea53420924198686847228b84d709cb481529a3a (patch) | |
tree | 9fb3f21c40eb593a1c14b30ac964f3171e91e7c0 | |
parent | b5613079b1ea23499a48fef848aa092f058e9609 (diff) |
of1.2: add missing struct ofp_bucket definition
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/ofproto/ofproto_v1_2.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ryu/ofproto/ofproto_v1_2.py b/ryu/ofproto/ofproto_v1_2.py index f15db825..89196115 100644 --- a/ryu/ofproto/ofproto_v1_2.py +++ b/ryu/ofproto/ofproto_v1_2.py @@ -406,6 +406,11 @@ OFPGT_INDIRECT = 2 # Indirect group. OFPGT_FF = 3 # Fast failover group. # struct ofp_bucket +OFP_BUCKET_PACK_STR = '!HHII4x' +OFP_BUCKET_SIZE = 16 +assert calcsize(OFP_BUCKET_PACK_STR) == OFP_BUCKET_SIZE + +# struct ofp_port_mod OFP_PORT_MOD_PACK_STR = '!I4x' + OFP_ETH_ALEN_STR + 's' + '2xIII4x' OFP_PORT_MOD_SIZE = 40 assert calcsize(OFP_PORT_MOD_PACK_STR) + OFP_HEADER_SIZE == OFP_PORT_MOD_SIZE |