[etherlab-dev] Problem to get VoE Data (Etherlab master patchset 20160804)

Gavin Lambert gavinl at compacsort.com
Thu Jan 19 23:34:14 CET 2017


On 20 January 2017 04:29, quoth Christoph Schroeder:
> On 01/19/2017 01:09 AM, Gavin Lambert wrote:
> > Try the following changes (sorry, can't generate a patch right now):
> >
> >    * voe_handler.c:372:  "mbox_coe_data" should be "mbox_voe_data".
> >
> >    * voe_handler.c:500:  add:
> >           memcpy(voe->datagram.data + EC_MBOX_HEADER_SIZE, data,
> > data_size);
> >
> >    * voe_handler.c:608:  same here.
> >
> that worked, I had to add some minor changes:
> memcpy(voe->datagram.data + EC_MBOX_HEADER_SIZE, data, data_size);
> => memcpy(voe->datagram.data + EC_MBOX_HEADER_SIZE, data, voe-
> >data_size + EC_VOE_HEADER_SIZE); The VoE header is taken into account
> here by ecrt_voe_handler_data and there is also
> ecrt_voe_handler_received_header so the VoE header has to be copied too.

Sorry, I meant rec_size rather than data_size.

rec_size == voe->data_size + EC_VOE_HEADER_SIZE already, since voe->data_size isn't actually assigned until that line.





More information about the Etherlab-dev mailing list