X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fstatus.c;h=b5bc33a6362b7c150ffa687d24361aa2046f23d2;hb=66642cb40b12594c62f3d3037f1e4efa528416b7;hp=27db4980fadb6c132fd4f8a232293fcb37de5598;hpb=d98e60075528c3065ad453f7add4b30f22edcde3;p=openvswitch diff --git a/ofproto/status.c b/ofproto/status.c index 27db4980..b5bc33a6 100644 --- a/ofproto/status.c +++ b/ofproto/status.c @@ -77,10 +77,8 @@ switch_status_handle_request(struct switch_status *ss, struct rconn *rconn, c->cb(&sr, c->aux); } } - reply = make_openflow_xid(sizeof *reply + sr.output.length, - OFPT_VENDOR, request->header.xid, &b); - reply->vendor = htonl(NX_VENDOR_ID); - reply->subtype = htonl(NXT_STATUS_REPLY); + reply = make_nxmsg_xid(sizeof *reply + sr.output.length, + NXT_STATUS_REPLY, request->header.xid, &b); memcpy(reply + 1, sr.output.string, sr.output.length); retval = rconn_send(rconn, b, NULL); if (retval && retval != EAGAIN) {