2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 05:47:55 +00:00

ofp-util: Fix offset when making Nicira extension error messages.

This commit is contained in:
Justin Pettit 2010-12-07 21:58:30 -08:00
parent 0bc9407dbb
commit 17764fb2ac

View File

@ -1988,7 +1988,7 @@ make_ofp_error_msg(int error, const struct ofp_header *oh)
oem->type = htons(NXET_VENDOR);
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->type = htons(type);
nve->code = htons(code);