This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Error 55 (ENOBUFS) with raw ethernet socket on Texas DaVinci

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);
...