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

Justin Pettit jpettit at nicira.com
Wed Dec 8 17:59:30 UTC 2010


Thanks.  Pushed.

--Justin


On Dec 8, 2010, at 9:56 AM, Ben Pfaff wrote:

> [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