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. _______________________________________________ etherlab-dev mailing list etherlab-dev@etherlab.org http://lists.etherlab.org/mailman/listinfo/etherlab-dev