Hello,
I'm working with a raw ethernet socket on Texas DaVinci. I have an error 55 after a send call.
(Error 55: ENOBUFS Memory allocation failure while attempting to send data.)
I don't use dynamic memory allocation in my program so I can't find a memory leak or something similar.
I think the problem is related to the receive function (It works on the same socket). I think so because the error generally appear faster after an increase of the received packets.
Any Ideas?
Thank you in advance!
Simone Cilli
I'm using NDK 2.0 and DSP/BIOS 5.31.02. Here a snippet of my code:
...
raw_socket = socket(AF_RAWETH, SOCK_RAWETH, 0x1);
...
<receive with select>
...
bytes = (int)recvnc(sockd, (void **)&pBuf, 0, &hBuffer);
if(bytes>=0){
...
recvncfree(hBuffer);
}
...
<send:>
bytes = send(sockd, (void*)&socket_buffer, frame_length, 0);
...