ofproto: Fix encoding of NXST_* replies.
authorBen Pfaff <blp@nicira.com>
Tue, 14 Dec 2010 00:21:43 +0000 (16:21 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 15 Dec 2010 17:48:18 +0000 (09:48 -0800)
This only matter for NXST_AGGREGATE currently since NXST_FLOW has value 0.

ofproto/ofproto.c

index 5cd76df..5fef092 100644 (file)
@@ -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;
 }