Home
last modified time | relevance | path

Searched refs:uxIPHeaderLength (Results 1 – 8 of 8) sorted by relevance

/FreeRTOS-Plus-TCP-v4.0.0/source/
HDFreeRTOS_IPv4_Utils.c95 pxSet->uxIPHeaderLength = ( size_t ) ucVersion; in prvChecksumIPv4Checks()
96 pxSet->uxIPHeaderLength *= 4U; in prvChecksumIPv4Checks()
98 if( usLength < pxSet->uxIPHeaderLength ) in prvChecksumIPv4Checks()
117 if( uxBufferLength < ( ipSIZE_OF_ETH_HEADER + pxSet->uxIPHeaderLength ) ) in prvChecksumIPv4Checks()
148 …colHeaders = ( ( ProtocolHeaders_t * ) &( pucEthernetBuffer[ pxSet->uxIPHeaderLength + ipSIZE_OF_E… in prvChecksumIPv4Checks()
150 pxSet->usProtocolBytes = ( uint16_t ) ( pxSet->usPayloadLength - pxSet->uxIPHeaderLength ); in prvChecksumIPv4Checks()
HDFreeRTOS_IPv4.c76 UBaseType_t uxIPHeaderLength; in xCheckIPv4SizeFields() local
110 uxIPHeaderLength = ( UBaseType_t ) ucVersionHeaderLength; in xCheckIPv4SizeFields()
113 if( uxBufferLength < ( ipSIZE_OF_ETH_HEADER + uxIPHeaderLength ) ) in xCheckIPv4SizeFields()
136 uxMinimumLength = uxIPHeaderLength + ipSIZE_OF_ETH_HEADER + ipSIZE_OF_UDP_HEADER; in xCheckIPv4SizeFields()
140 uxMinimumLength = uxIPHeaderLength + ipSIZE_OF_ETH_HEADER + ipSIZE_OF_TCP_HEADER; in xCheckIPv4SizeFields()
145 uxMinimumLength = uxIPHeaderLength + ipSIZE_OF_ETH_HEADER + ipSIZE_OF_ICMPv4_HEADER; in xCheckIPv4SizeFields()
161 uxLength -= ( ( uint16_t ) uxIPHeaderLength ); /* normally, minus 20. */ in xCheckIPv4SizeFields()
164 ( uxLength > ( ( size_t ) ipconfigNETWORK_MTU - ( size_t ) uxIPHeaderLength ) ) ) in xCheckIPv4SizeFields()
HDFreeRTOS_IPv6_Utils.c83 pxSet->uxIPHeaderLength = ipSIZE_OF_IPv6_HEADER; in prvChecksumIPv6Checks()
155 if( uxBufferLength < ( ipSIZE_OF_ETH_HEADER + pxSet->uxIPHeaderLength + xICMPLength ) ) in prvChecksumICMPv6Checks()
HDFreeRTOS_DNS_Parser.c915 const size_t uxIPHeaderLength = uxIPHeaderSizePacket( pxNetworkBuffer ); in prepareReplyDNSMessage() local
922 …if( ( ( uxIPHeaderLength == ipSIZE_OF_IPv6_HEADER ) && ( ( pxIPHeader->ucVersionHeaderLength & 0xf… in prepareReplyDNSMessage()
948 uxIPHeaderLength + in prepareReplyDNSMessage()
979 …uxDataLength = ( ( size_t ) lNetLength ) + uxIPHeaderLength + ipSIZE_OF_UDP_HEADER + ipSIZE_OF_ETH… in prepareReplyDNSMessage()
991 …= usGenerateChecksum( 0U, ( uint8_t * ) &( pxIPHeader->ucVersionHeaderLength ), uxIPHeaderLength ); in prepareReplyDNSMessage()
HDFreeRTOS_IP_Utils.c396 … ( uxBufferLength < ( ipSIZE_OF_ETH_HEADER + pxSet->uxIPHeaderLength + ipSIZE_OF_UDP_HEADER ) ) ) in prvChecksumProtocolChecks()
415 … ( uxBufferLength < ( ipSIZE_OF_ETH_HEADER + pxSet->uxIPHeaderLength + ipSIZE_OF_TCP_HEADER ) ) ) in prvChecksumProtocolChecks()
448 …( uxBufferLength < ( ipSIZE_OF_ETH_HEADER + pxSet->uxIPHeaderLength + ipSIZE_OF_ICMPv4_HEADER ) ) ) in prvChecksumProtocolChecks()
504 ulMaxLength -= ( uint32_t ) pxSet->uxIPHeaderLength; in prvChecksumProtocolMTUCheck()
567 …teChecksum( 0U, &( pucEthernetBuffer[ ipSIZE_OF_ETH_HEADER + pxSet->uxIPHeaderLength ] ), ( size_t… in prvChecksumProtocolCalculate()
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_IP_Utils/
HDFreeRTOS_IP_Utils_stubs.c111 pxSet->uxIPHeaderLength = ipSIZE_OF_IPv6_HEADER; in prvChecksumIPv6Checks_Valid()
131 pxSet->uxIPHeaderLength = ( pxIPPacket->xIPHeader.ucVersionHeaderLength & 0x0F ) * 4; in prvChecksumIPv4Checks_Valid()
134 …= ( ProtocolHeaders_t * ) &( pucEthernetBuffer[ ipSIZE_OF_ETH_HEADER + pxSet->uxIPHeaderLength ] ); in prvChecksumIPv4Checks_Valid()
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_IPv6_Utils/
HDFreeRTOS_IPv6_Utils_utest.c255 xSet.uxIPHeaderLength = ipSIZE_OF_IPv6_HEADER; in test_prvChecksumICMPv6Checks_Default_InvalidLength()
278 xSet.uxIPHeaderLength = ipSIZE_OF_IPv6_HEADER; in test_prvChecksumICMPv6Checks_Default_ValidLength()
302 xSet.uxIPHeaderLength = ipSIZE_OF_IPv6_HEADER; in test_prvChecksumICMPv6Checks_PingReq_InvalidLength()
326 xSet.uxIPHeaderLength = ipSIZE_OF_IPv6_HEADER; in test_prvChecksumICMPv6Checks_PingReq_ValidLength()
350 xSet.uxIPHeaderLength = ipSIZE_OF_IPv6_HEADER; in test_prvChecksumICMPv6Checks_PingReply_InvalidLength()
374 xSet.uxIPHeaderLength = ipSIZE_OF_IPv6_HEADER; in test_prvChecksumICMPv6Checks_PingReply_ValidLength()
398 xSet.uxIPHeaderLength = ipSIZE_OF_IPv6_HEADER; in test_prvChecksumICMPv6Checks_RS_InvalidLength()
422 xSet.uxIPHeaderLength = ipSIZE_OF_IPv6_HEADER; in test_prvChecksumICMPv6Checks_RS_ValidLength()
/FreeRTOS-Plus-TCP-v4.0.0/source/include/
HDFreeRTOS_IP_Private.h251 size_t uxIPHeaderLength; /**< Either 40 or 20, depending on the IP-type */ member