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

Ben Pfaff blp at nicira.com
Wed Dec 8 17:56:09 UTC 2010


[adding Natasha because this probably fixes a bug that she reported to
me last week]

Looks good, please push.

On Tue, Dec 07, 2010 at 10:02:57PM -0800, Justin Pettit wrote:
> ---
>  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
> 
> 
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev_openvswitch.org




More information about the dev mailing list