X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fofp-util.c;fp=lib%2Fofp-util.c;h=e0cdf707e53ca6d008b6b5db0edfec731c566e0a;hb=086d2b9710309f1054e6140065817c4f964ae5bf;hp=8f1625cd2251b5ef81fa697a310a32edffdbd7c5;hpb=8991649e6c2af1e18612367aafddd800d0e496a0;p=sliver-openvswitch.git diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 8f1625cd2..e0cdf707e 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -904,7 +904,7 @@ make_ofp_error_msg(int error, const struct ofp_header *oh) oem->code = htons(code); } else { struct ofp_error_msg *oem; - struct nx_vendor_error *ove; + struct nx_vendor_error *nve; uint32_t vendor_id; vendor_id = vendor_code_to_id(vendor); @@ -914,15 +914,15 @@ make_ofp_error_msg(int error, const struct ofp_header *oh) return NULL; } - oem = make_openflow_xid(len + sizeof *oem + sizeof *ove, + oem = make_openflow_xid(len + sizeof *oem + sizeof *nve, OFPT_ERROR, xid, &buf); oem->type = htons(NXET_VENDOR); oem->code = htons(NXVC_VENDOR_ERROR); - ove = ofpbuf_put_uninit(buf, sizeof *ove); - ove->vendor = htonl(vendor_id); - ove->type = htons(type); - ove->code = htons(code); + nve = ofpbuf_put_uninit(buf, sizeof *nve); + nve->vendor = htonl(vendor_id); + nve->type = htons(type); + nve->code = htons(code); } if (len) {