mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 13:58:14 +00:00
ofp-util: Fix offset when making Nicira extension error messages.
This commit is contained in:
@@ -1988,7 +1988,7 @@ make_ofp_error_msg(int error, const struct ofp_header *oh)
|
|||||||
oem->type = htons(NXET_VENDOR);
|
oem->type = htons(NXET_VENDOR);
|
||||||
oem->code = htons(NXVC_VENDOR_ERROR);
|
oem->code = htons(NXVC_VENDOR_ERROR);
|
||||||
|
|
||||||
nve = ofpbuf_put_uninit(buf, sizeof *nve);
|
nve = (struct nx_vendor_error *)oem->data;
|
||||||
nve->vendor = htonl(vendor_id);
|
nve->vendor = htonl(vendor_id);
|
||||||
nve->type = htons(type);
|
nve->type = htons(type);
|
||||||
nve->code = htons(code);
|
nve->code = htons(code);
|
||||||
|
Reference in New Issue
Block a user