Signed-off-by: OHMURA Kei <[email protected]>
---
 ryu/ofproto/ofproto_v1_0.py |   21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/ryu/ofproto/ofproto_v1_0.py b/ryu/ofproto/ofproto_v1_0.py
index 685cc71..ca6e384 100644
--- a/ryu/ofproto/ofproto_v1_0.py
+++ b/ryu/ofproto/ofproto_v1_0.py
@@ -598,6 +598,11 @@ NXFF_NXM = 2
 NXPIF_OPENFLOW10 = 0
 NXPIF_NXM = 1
 
+# enum nx_stats_types
+NXST_FLOW = 0
+NXST_AGGREGATE = 1
+NXST_FLOW_MONITOR = 2
+
 NICIRA_HEADER_PACK_STR = '!II'
 NICIRA_HEADER_SIZE = 16
 assert (calcsize(NICIRA_HEADER_PACK_STR) +
@@ -648,6 +653,22 @@ NX_CONTROLLER_ID_SIZE = 24
 assert (calcsize(NX_CONTROLLER_ID_PACK_STR) +
         NICIRA_HEADER_SIZE == NX_CONTROLLER_ID_SIZE)
 
+NX_STATS_MSG_PACK_STR = '!I4x'
+NX_STATS_MSG0_SIZE = 8
+assert calcsize(NX_STATS_MSG_PACK_STR) == NX_STATS_MSG0_SIZE
+NX_STATS_MSG_SIZE = 24
+assert (calcsize(NX_STATS_MSG_PACK_STR) + OFP_VENDOR_STATS_MSG_SIZE ==
+        NX_STATS_MSG_SIZE)
+
+NX_FLOW_STATS_REQUEST_PACK_STR = '!2HB3x'
+NX_FLOW_STATS_REQUEST_SIZE = 8
+assert (calcsize(NX_FLOW_STATS_REQUEST_PACK_STR) ==
+        NX_FLOW_STATS_REQUEST_SIZE)
+
+NX_FLOW_STATS_PACK_STR = '!HBxIIHHHHHHQQQ'
+NX_FLOW_STATS_SIZE = 48
+assert calcsize(NX_FLOW_STATS_PACK_STR) == NX_FLOW_STATS_SIZE
+
 
 def nxm_header__(vendor, field, hasmask, length):
     return (vendor << 16) | (field << 9) | (hasmask << 8) | length
-- 
1.7.9.5


------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to