mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-26 17:18:16 +00:00
Fix some build issues in older kernel demo projects.
Update to V2.0.7 of the TCP/IP stack:
+ Multiple security improvements and fixes in packet parsing routines, DNS
caching, and TCP sequence number and ID generation.
+ Disable NBNS and LLMNR by default.
+ Add TCP hang protection by default.
We thank Ori Karliner of Zimperium zLabs Team for reporting these issues.
This commit is contained in:
@@ -787,16 +787,11 @@ uint8_t *pucBuffer;
|
||||
}
|
||||
|
||||
/* Obtain the size of the packet and put it into the "usReceivedLength" variable. */
|
||||
|
||||
/* get received frame */
|
||||
if( xReceivedLength > 0ul )
|
||||
/* In order to make the code easier and faster, only packets in a single buffer
|
||||
will be accepted. This can be done by making the buffers large enough to
|
||||
hold a complete Ethernet packet (1536 bytes). */
|
||||
if( xReceivedLength > 0ul && xReceivedLength < ETH_RX_BUF_SIZE )
|
||||
{
|
||||
/* In order to make the code easier and faster, only packets in a single buffer
|
||||
will be accepted. This can be done by making the buffers large enough to
|
||||
hold a complete Ethernet packet (1536 bytes).
|
||||
Therefore, two sanity checks: */
|
||||
configASSERT( xReceivedLength <= ETH_RX_BUF_SIZE );
|
||||
|
||||
if( ( pxDMARxDescriptor->Status & ( ETH_DMARXDESC_CE | ETH_DMARXDESC_IPV4HCE | ETH_DMARXDESC_FT ) ) != ETH_DMARXDESC_FT )
|
||||
{
|
||||
/* Not an Ethernet frame-type or a checmsum error. */
|
||||
|
||||
Reference in New Issue
Block a user