mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-16 17:57:44 -04:00
Misc changes (#183)
This commit is contained in:
parent
07cf5e07e4
commit
a7fec906a4
3 changed files with 5 additions and 5 deletions
|
@ -537,7 +537,7 @@ TickType_t uxIdentifier = 0U;
|
||||||
{
|
{
|
||||||
if( pcHostName != NULL )
|
if( pcHostName != NULL )
|
||||||
{
|
{
|
||||||
size_t xLength = strlen( pcHostName ) + 1;
|
size_t xLength = strlen( pcHostName ) + 1U;
|
||||||
|
|
||||||
if( xLength <= ipconfigDNS_CACHE_NAME_LENGTH )
|
if( xLength <= ipconfigDNS_CACHE_NAME_LENGTH )
|
||||||
{
|
{
|
||||||
|
@ -1298,7 +1298,7 @@ BaseType_t xReturn = pdTRUE;
|
||||||
usNumARecordsStored++; /* Track # of A records stored */
|
usNumARecordsStored++; /* Track # of A records stored */
|
||||||
}
|
}
|
||||||
|
|
||||||
FreeRTOS_inet_ntop( FREERTOS_AF_INET, ( const void * ) &( ulIPAddress ), cBuffer, sizeof( cBuffer ) );
|
( void ) FreeRTOS_inet_ntop( FREERTOS_AF_INET, ( const void * ) &( ulIPAddress ), cBuffer, sizeof( cBuffer ) );
|
||||||
/* Show what has happened. */
|
/* Show what has happened. */
|
||||||
FreeRTOS_printf( ( "DNS[0x%04lX]: The answer to '%s' (%s) will%s be stored\n",
|
FreeRTOS_printf( ( "DNS[0x%04lX]: The answer to '%s' (%s) will%s be stored\n",
|
||||||
( UBaseType_t ) pxDNSMessageHeader->usIdentifier,
|
( UBaseType_t ) pxDNSMessageHeader->usIdentifier,
|
||||||
|
|
|
@ -1640,11 +1640,11 @@ eFrameProcessingResult_t eReturn = eProcessBuffer;
|
||||||
if( pxIPPacket->xIPHeader.ucProtocol == ( uint8_t ) ipPROTOCOL_UDP )
|
if( pxIPPacket->xIPHeader.ucProtocol == ( uint8_t ) ipPROTOCOL_UDP )
|
||||||
{
|
{
|
||||||
ProtocolPacket_t *pxProtPack;
|
ProtocolPacket_t *pxProtPack;
|
||||||
uint16_t *pusChecksum;
|
const uint16_t *pusChecksum;
|
||||||
|
|
||||||
/* pxProtPack will point to the offset were the protocols begin. */
|
/* pxProtPack will point to the offset were the protocols begin. */
|
||||||
pxProtPack = ipPOINTER_CAST( ProtocolPacket_t *, &( pxNetworkBuffer->pucEthernetBuffer[ uxHeaderLength - ipSIZE_OF_IPv4_HEADER ] ) );
|
pxProtPack = ipPOINTER_CAST( ProtocolPacket_t *, &( pxNetworkBuffer->pucEthernetBuffer[ uxHeaderLength - ipSIZE_OF_IPv4_HEADER ] ) );
|
||||||
pusChecksum = ( uint16_t * ) ( &( pxProtPack->xUDPPacket.xUDPHeader.usChecksum ) );
|
pusChecksum = ( const uint16_t * ) ( &( pxProtPack->xUDPPacket.xUDPHeader.usChecksum ) );
|
||||||
if( *pusChecksum == ( uint16_t ) 0U )
|
if( *pusChecksum == ( uint16_t ) 0U )
|
||||||
{
|
{
|
||||||
#if( ipconfigHAS_PRINTF != 0 )
|
#if( ipconfigHAS_PRINTF != 0 )
|
||||||
|
|
|
@ -434,7 +434,7 @@ from the FreeRTOSIPConfig.h configuration header file. */
|
||||||
#ifndef ipconfigDNS_CACHE_NAME_LENGTH
|
#ifndef ipconfigDNS_CACHE_NAME_LENGTH
|
||||||
/* Per https://tools.ietf.org/html/rfc1035, 253 is the maximum string length
|
/* Per https://tools.ietf.org/html/rfc1035, 253 is the maximum string length
|
||||||
of a DNS name. The following default accounts for a null terminator. */
|
of a DNS name. The following default accounts for a null terminator. */
|
||||||
#define ipconfigDNS_CACHE_NAME_LENGTH 254
|
#define ipconfigDNS_CACHE_NAME_LENGTH 254U
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ipconfigDNS_CACHE_ENTRIES
|
#ifndef ipconfigDNS_CACHE_ENTRIES
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue