From: Ben Pfaff Date: Tue, 14 Dec 2010 00:21:43 +0000 (-0800) Subject: ofproto: Fix encoding of NXST_* replies. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5f2379be2c4dad9a2fdda6ab28d30856aa782da;p=openvswitch ofproto: Fix encoding of NXST_* replies. This only matter for NXST_AGGREGATE currently since NXST_FLOW has value 0. --- diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 5cd76df8..5fef0922 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; }