[ovs-dev] [ofp-print 03/15] ofproto: Fix encoding of NXST_* replies.

Ben Pfaff blp at nicira.com
Tue Dec 14 20:23:17 UTC 2010


This only matter for NXST_AGGREGATE currently since NXST_FLOW has value 0.
---
 ofproto/ofproto.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c
index 5cd76df..5fef092 100644
--- a/ofproto/ofproto.c
+++ b/ofproto/ofproto.c
@@ -3258,7 +3258,7 @@ make_nxstats_reply(ovs_be32 xid, ovs_be32 subtype, size_t body_len)
     nsm->type = htons(OFPST_VENDOR);
     nsm->flags = htons(0);
     nsm->vendor = htonl(NX_VENDOR_ID);
-    nsm->subtype = htonl(subtype);
+    nsm->subtype = subtype;
     return msg;
 }
 
-- 
1.7.1





More information about the dev mailing list