[ovs-dev] [PATCH] ofp-util: Fix offset when making Nicira extension error messages.

Justin Pettit jpettit at nicira.com
Wed Dec 8 06:02:57 UTC 2010


---
 lib/ofp-util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/ofp-util.c b/lib/ofp-util.c
index 2c525ba..f37b644 100644
--- a/lib/ofp-util.c
+++ b/lib/ofp-util.c
@@ -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);
-- 
1.7.1





More information about the dev mailing list