Home
last modified time | relevance | path

Searched refs:xRecvBuffer (Results 1 – 2 of 2) sorted by relevance

/FreeRTOS-Plus-TCP-v4.0.0/source/portable/NetworkInterface/linux/
HDNetworkInterface.c88 static StreamBuffer_t * xRecvBuffer = NULL; variable
305 if( xRecvBuffer == NULL ) in prvCreateThreadSafeBuffers()
307xRecvBuffer = ( StreamBuffer_t * ) malloc( sizeof( *xRecvBuffer ) - sizeof( xRecvBuffer->ucArray )… in prvCreateThreadSafeBuffers()
309 if( xRecvBuffer == NULL ) in prvCreateThreadSafeBuffers()
314 configASSERT( xRecvBuffer ); in prvCreateThreadSafeBuffers()
315 memset( xRecvBuffer, '\0', sizeof( *xRecvBuffer ) - sizeof( xRecvBuffer->ucArray ) ); in prvCreateThreadSafeBuffers()
316 xRecvBuffer->LENGTH = xRECV_BUFFER_SIZE + 1; in prvCreateThreadSafeBuffers()
775 …( uxStreamBufferGetSpace( xRecvBuffer ) >= ( ( ( size_t ) pkt_header->caplen ) + sizeof( *pkt_head… in pcap_callback()
785 prvStreamBufferAdd( xRecvBuffer, ( const uint8_t * ) pkt_header, sizeof( *pkt_header ) ); in pcap_callback()
786 … prvStreamBufferAdd( xRecvBuffer, ( const uint8_t * ) pkt_data, ( size_t ) pkt_header->caplen ); in pcap_callback()
[all …]
/FreeRTOS-Plus-TCP-v4.0.0/source/portable/NetworkInterface/WinPCap/
HDNetworkInterface.c166 static StreamBuffer_t * xRecvBuffer = NULL; variable
228 if( xRecvBuffer == NULL ) in prvCreateThreadSafeBuffers()
230xRecvBuffer = ( StreamBuffer_t * ) malloc( sizeof( *xRecvBuffer ) - sizeof( xRecvBuffer->ucArray )… in prvCreateThreadSafeBuffers()
231 configASSERT( xRecvBuffer ); in prvCreateThreadSafeBuffers()
232 memset( xRecvBuffer, '\0', sizeof( *xRecvBuffer ) - sizeof( xRecvBuffer->ucArray ) ); in prvCreateThreadSafeBuffers()
233 xRecvBuffer->LENGTH = xRECV_BUFFER_SIZE + 1; in prvCreateThreadSafeBuffers()
675 …( uxStreamBufferGetSpace( xRecvBuffer ) >= ( ( ( size_t ) pkt_header->caplen ) + sizeof( *pkt_head… in pcap_callback()
690 prvStreamBufferAdd( xRecvBuffer, ( const uint8_t * ) pkt_header, sizeof( *pkt_header ) ); in pcap_callback()
691 … prvStreamBufferAdd( xRecvBuffer, ( const uint8_t * ) pkt_data, ( size_t ) pkt_header->caplen ); in pcap_callback()
804 if( uxStreamBufferGetSize( xRecvBuffer ) > sizeof( xHeader ) ) in prvInterruptSimulatorTask()
[all …]