#include "vconn.h"
#include "vlog.h"
-VLOG_DEFINE_THIS_MODULE(status)
+VLOG_DEFINE_THIS_MODULE(status);
struct status_category {
struct list node;
int
switch_status_handle_request(struct switch_status *ss, struct rconn *rconn,
- struct nicira_header *request)
+ const struct ofp_header *oh)
{
+ const struct nicira_header *request = (const struct nicira_header *) oh;
struct status_category *c;
struct nicira_header *reply;
struct status_reply sr;
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) {