mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-18 09:08:33 -04: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:
parent
fb9de58f56
commit
bdb088e66f
68 changed files with 5322 additions and 3910 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue