Home
last modified time | relevance | path

Searched refs:ucVersionHeaderLength (Results 1 – 22 of 22) sorted by relevance

/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_IPv4_Utils/
HDFreeRTOS_IPv4_Utils_utest.c75 uint8_t ucVersionHeaderLength = 20; in test_prvChecksumIPv4Checks_IPLengthLessThanHeaderLength() local
76 uint16_t usLength = ucVersionHeaderLength - 1; in test_prvChecksumIPv4Checks_IPLengthLessThanHeaderLength()
85 xIPPacket.xIPHeader.ucVersionHeaderLength = ( ucVersionHeaderLength >> 2 ); in test_prvChecksumIPv4Checks_IPLengthLessThanHeaderLength()
103 uint8_t ucVersionHeaderLength = 20; in test_prvChecksumIPv4Checks_BufferLessIPPacket() local
104 uint16_t usLength = ucVersionHeaderLength; in test_prvChecksumIPv4Checks_BufferLessIPPacket()
113 xIPPacket.xIPHeader.ucVersionHeaderLength = ( ucVersionHeaderLength >> 2 ); in test_prvChecksumIPv4Checks_BufferLessIPPacket()
131 uint8_t ucVersionHeaderLength = 24; in test_prvChecksumIPv4Checks_BufferLessIPHeaderLength() local
132 uint16_t usLength = ucVersionHeaderLength; in test_prvChecksumIPv4Checks_BufferLessIPHeaderLength()
134 size_t uxBufferLength = ipSIZE_OF_ETH_HEADER + ucVersionHeaderLength - 1; in test_prvChecksumIPv4Checks_BufferLessIPHeaderLength()
141 xIPPacket.xIPHeader.ucVersionHeaderLength = ( ucVersionHeaderLength >> 2 ); in test_prvChecksumIPv4Checks_BufferLessIPHeaderLength()
[all …]
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_IP_Utils/
HDFreeRTOS_IP_Utils_utest.c727 uint8_t ucVersionHeaderLength = 20; in test_usGenerateProtocolChecksum_UnknownProtocol() local
735 …pxProtPack = ( ProtocolPacket_t * ) &( pucEthernetBuffer[ ucVersionHeaderLength - ipSIZE_OF_IPv4_H… in test_usGenerateProtocolChecksum_UnknownProtocol()
739 pxIPPacket->xIPHeader.ucVersionHeaderLength = ( ucVersionHeaderLength >> 2 ); in test_usGenerateProtocolChecksum_UnknownProtocol()
784 uint8_t ucVersionHeaderLength = 20; in test_usGenerateProtocolChecksum_UDPInvalidLength() local
786 uint16_t usLength = ucVersionHeaderLength; in test_usGenerateProtocolChecksum_UDPInvalidLength()
787 size_t uxBufferLength = ucVersionHeaderLength + ipSIZE_OF_ETH_HEADER + ipSIZE_OF_UDP_HEADER - 1; in test_usGenerateProtocolChecksum_UDPInvalidLength()
792 pxIPPacket->xIPHeader.ucVersionHeaderLength = ( ucVersionHeaderLength >> 2 ); in test_usGenerateProtocolChecksum_UDPInvalidLength()
815 uint8_t ucVersionHeaderLength = 20; in test_usGenerateProtocolChecksum_UDPWrongCRCIncomingPacket() local
817 uint16_t usLength = ucVersionHeaderLength + ipSIZE_OF_UDP_HEADER + TEST_UDP_PAYLOAD_LENGTH; in test_usGenerateProtocolChecksum_UDPWrongCRCIncomingPacket()
818 size_t uxBufferLength = ucVersionHeaderLength + ipSIZE_OF_ETH_HEADER + ipSIZE_OF_UDP_HEADER; in test_usGenerateProtocolChecksum_UDPWrongCRCIncomingPacket()
[all …]
HDFreeRTOS_IP_Utils_stubs.c131 pxSet->uxIPHeaderLength = ( pxIPPacket->xIPHeader.ucVersionHeaderLength & 0x0F ) * 4; in prvChecksumIPv4Checks_Valid()
/FreeRTOS-Plus-TCP-v4.0.0/source/
HDFreeRTOS_IPv4.c79 uint16_t ucVersionHeaderLength; in xCheckIPv4SizeFields() local
98 ucVersionHeaderLength = pxIPPacket->xIPHeader.ucVersionHeaderLength; in xCheckIPv4SizeFields()
102 if( ( ucVersionHeaderLength < ipIPV4_VERSION_HEADER_LENGTH_MIN ) || in xCheckIPv4SizeFields()
103 ( ucVersionHeaderLength > ipIPV4_VERSION_HEADER_LENGTH_MAX ) ) in xCheckIPv4SizeFields()
109ucVersionHeaderLength = ( uint16_t ) ( ( ucVersionHeaderLength & ( uint8_t ) 0x0FU ) << 2U ); in xCheckIPv4SizeFields()
110 uxIPHeaderLength = ( UBaseType_t ) ucVersionHeaderLength; in xCheckIPv4SizeFields()
257 else if( ( pxIPHeader->ucVersionHeaderLength < ipIPV4_VERSION_HEADER_LENGTH_MIN ) || in prvAllowIPPacketIPv4()
258 ( pxIPHeader->ucVersionHeaderLength > ipIPV4_VERSION_HEADER_LENGTH_MAX ) ) in prvAllowIPPacketIPv4()
330 …if( usGenerateChecksum( 0U, ( const uint8_t * ) &( pxIPHeader->ucVersionHeaderLength ), ( size_t )… in prvAllowIPPacketIPv4()
438 size_t uxLength = ( size_t ) pxIPHeader->ucVersionHeaderLength; in prvCheckIP4HeaderOptions()
[all …]
HDFreeRTOS_IPv4_Utils.c94 ucVersion = pxSet->pxIPPacket->xIPHeader.ucVersionHeaderLength & ( uint8_t ) 0x0FU; in prvChecksumIPv4Checks()
HDFreeRTOS_ICMP.c177 …erChecksum = usGenerateChecksum( 0U, ( uint8_t * ) &( pxIPHeader->ucVersionHeaderLength ), uxIPHea… in prvProcessICMPEchoRequest()
HDFreeRTOS_TCP_Transmission_IPv4.c215 …erChecksum = usGenerateChecksum( 0U, ( uint8_t * ) &( pxIPHeader->ucVersionHeaderLength ), uxIPHea… in prvTCPReturnPacket_IPV4()
418 pxIPHeader->ucVersionHeaderLength = 0x45U; in prvTCPPrepareConnect_IPV4()
HDFreeRTOS_DNS_Parser.c922 … ( uxIPHeaderLength == ipSIZE_OF_IPv6_HEADER ) && ( ( pxIPHeader->ucVersionHeaderLength & 0xf0U ) … in prepareReplyDNSMessage()
986 if( ( pxIPHeader->ucVersionHeaderLength & 0xf0U ) != 0x60U ) in prepareReplyDNSMessage()
991 …erChecksum = usGenerateChecksum( 0U, ( uint8_t * ) &( pxIPHeader->ucVersionHeaderLength ), uxIPHea… in prepareReplyDNSMessage()
HDFreeRTOS_UDP_IPv4.c235 …erChecksum = usGenerateChecksum( 0U, ( uint8_t * ) &( pxIPHeader->ucVersionHeaderLength ), uxIPHea… in vProcessGeneratedUDPPacket_IPv4()
HDFreeRTOS_IP.c1838 size_t uxLength = ( size_t ) pxIPHeader->ucVersionHeaderLength; in prvProcessIPPacket()
1860 …ffer->pucEthernetBuffer[ 0 - ( BaseType_t ) ipIP_TYPE_OFFSET ] = pxIPHeader->ucVersionHeaderLength; in prvProcessIPPacket()
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_IPv4_DiffConfig1/
HDFreeRTOS_IPv4_DiffConfig1_utest.c103 pxIPHeader->ucVersionHeaderLength = 0x46; in test_prvAllowIPPacketIPv4_BufferLengthLess()
108 …pxIPHeader->usLength = FreeRTOS_htons( ( ( pxIPHeader->ucVersionHeaderLength & 0x0F ) << 2 ) + siz… in test_prvAllowIPPacketIPv4_BufferLengthLess()
152 pxIPHeader->ucVersionHeaderLength = 0x45 - 2; in test_prvAllowIPPacketIPv4_HeaderLengthLess()
157 …pxIPHeader->usLength = FreeRTOS_htons( ( ( pxIPHeader->ucVersionHeaderLength & 0x0F ) << 2 ) + siz… in test_prvAllowIPPacketIPv4_HeaderLengthLess()
197 pxIPHeader->ucVersionHeaderLength = 0x4F + 2; in test_prvAllowIPPacketIPv4_BufferLengthLessThan()
202 …pxIPHeader->usLength = FreeRTOS_htons( ( ( pxIPHeader->ucVersionHeaderLength & 0x0F ) << 2 ) + siz… in test_prvAllowIPPacketIPv4_BufferLengthLessThan()
241 pxIPHeader->ucVersionHeaderLength = 0x4F; in test_prvAllowIPPacketIPv4_BufferLengthLessThanIPRequirement()
242 pxNetworkBuffer->xDataLength = ( ( pxIPHeader->ucVersionHeaderLength & 0x0F ) << 2 ); in test_prvAllowIPPacketIPv4_BufferLengthLessThanIPRequirement()
247 …pxIPHeader->usLength = FreeRTOS_htons( ( ( pxIPHeader->ucVersionHeaderLength & 0x0F ) << 2 ) + siz… in test_prvAllowIPPacketIPv4_BufferLengthLessThanIPRequirement()
286 pxIPHeader->ucVersionHeaderLength = 0x4F; in test_prvAllowIPPacketIPv4_IPPacketLengthMoreThanTotalLength()
[all …]
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_IPv4/
HDFreeRTOS_IPv4_utest.c135 pxIPPacket->xIPHeader.ucVersionHeaderLength = ipIPV4_VERSION_HEADER_LENGTH_MIN - 1; in test_prvAllowIPPacketIPv4_LessHeaderLength()
219 pxIPHeader->ucVersionHeaderLength = 0xFF; in test_prvAllowIPPacketIPv4_GreaterHeaderLength()
252 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacketIPv4_NotMatchingIP()
289 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacketIPv4_SourceIPBrdCast_DestIPMatch()
328 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacketIPv4_SourceIPBrdCast_DestIPBrdCast()
367 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacketIPv4_SourceIPBrdCast_DestIPLLMNR()
402 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacketIPv4_SourceIPBrdCast_NoLocalIP()
438 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacketIPv4_DestMACBrdCast_DestIPUnicast()
474 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacketIPv4_SrcMACBrdCast()
510 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacketIPv4_SrcMACBrdCastDestMACBrdCast()
[all …]
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_IPv4_DiffConfig/
HDFreeRTOS_IPv4_DiffConfig_utest.c101 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacketIPv4_BroadcastSourceIP()
143 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacketIPv4_BufferLengthLessThanMinimum()
186 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacketIPv4_UDPCheckSumZero()
191 …pxIPHeader->usLength = FreeRTOS_htons( ( ( pxIPHeader->ucVersionHeaderLength & 0x0F ) << 2 ) + siz… in test_prvAllowIPPacketIPv4_UDPCheckSumZero()
232 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacketIPv4_UDP_HappyPath()
237 …pxIPHeader->usLength = FreeRTOS_htons( ( ( pxIPHeader->ucVersionHeaderLength & 0x0F ) << 2 ) + siz… in test_prvAllowIPPacketIPv4_UDP_HappyPath()
284 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacketIPv4_TCP_HappyPath()
289 …pxIPHeader->usLength = FreeRTOS_htons( ( ( pxIPHeader->ucVersionHeaderLength & 0x0F ) << 2 ) + siz… in test_prvAllowIPPacketIPv4_TCP_HappyPath()
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_IP/
HDFreeRTOS_IP_utest.c2016 pxIPHeader->ucVersionHeaderLength = 0xF0; in test_prvProcessEthernetPacket_IPv4FrameType_AptData()
2044 pxIPHeader->ucVersionHeaderLength = 0xF0; in test_prvProcessIPPacket_HeaderLengthSmaller()
2072 pxIPHeader->ucVersionHeaderLength = 0xFF; in test_prvProcessIPPacket_HeaderLengthGreater()
2133 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvProcessIPPacket_ValidHeader_ARPResolutionReqd()
2135 …tIPv4_ExpectAndReturn( pxIPPacket, pxNetworkBuffer, ( pxIPHeader->ucVersionHeaderLength & 0x0FU ) … in test_prvProcessIPPacket_ValidHeader_ARPResolutionReqd()
2169 pxIPHeader->ucVersionHeaderLength = 0x46; in test_prvProcessIPPacket_ARPResolutionNotReqd_InvalidProt()
2172 …tIPv4_ExpectAndReturn( pxIPPacket, pxNetworkBuffer, ( pxIPHeader->ucVersionHeaderLength & 0x0FU ) … in test_prvProcessIPPacket_ARPResolutionNotReqd_InvalidProt()
2208 pxIPHeader->ucVersionHeaderLength = 0x46; in test_prvProcessIPPacket_ARPResolutionNotReqd_ICMPRelease()
2211 …tIPv4_ExpectAndReturn( pxIPPacket, pxNetworkBuffer, ( pxIPHeader->ucVersionHeaderLength & 0x0FU ) … in test_prvProcessIPPacket_ARPResolutionNotReqd_ICMPRelease()
2248 pxIPHeader->ucVersionHeaderLength = 0x46; in test_prvProcessIPPacket_ARPResolutionNotReqd_ICMPProcess()
[all …]
/FreeRTOS-Plus-TCP-v4.0.0/test/cbmc/proofs/IPUtils/usGenerateProtocolChecksum/
HDusGenerateProtocolChecksum_harness.c69 usHeaderLength = pxIPPacket->xIPHeader.ucVersionHeaderLength & ( uint8_t ) 0x0FU; in harness()
/FreeRTOS-Plus-TCP-v4.0.0/source/include/
HDFreeRTOS_IPv4_Private.h70 …uint8_t ucVersionHeaderLength; /**< The version field + internet header length 0 + 1 = 1 */ member
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_DNS_Parser/
HDFreeRTOS_DNS_Parser_utest.c518 pxIPHeader->ucVersionHeaderLength = 0x0; in test_prepareReplyDNSMessage_success()
561 pxIPHeader->ucVersionHeaderLength = 0x0; in test_prepareReplyDNSMessage_success_MDNS()
605 pxIPHeader->ucVersionHeaderLength = 0x0; in test_prepareReplyDNSMessage_NullEndPoint()
654 pxIPHeader->ucVersionHeaderLength = 0x60U; in test_prepareReplyDNSMessage_IPv6success()
691 pxIPHeader->ucVersionHeaderLength = 0x0; in test_prepareReplyDNSMessage_IPv6Fail()
696 pxIPHeader->ucVersionHeaderLength = 0x0U; in test_prepareReplyDNSMessage_IPv6Fail()
2338 pxIPHeader->ucVersionHeaderLength = 0x0; in test_DNS_ParseDNSReply_ansswer_lmmnr_reply_valid_new_netbuffer()
2429 pxIPHeader->ucVersionHeaderLength = 0x0; in test_DNS_ParseDNSReply_ansswer_lmmnr_reply_valid_new_netbuffer2()
2520 pxIPHeader->ucVersionHeaderLength = 0x0; in test_DNS_ParseDNSReply_ansswer_lmmnr_reply_valid_new_netbuffer3()
/FreeRTOS-Plus-TCP-v4.0.0/source/portable/NetworkInterface/Zynq/
HDx_emacpsif_dma.c452 … if( ( pxIPHeader->ucVersionHeaderLength < 0x45 ) || ( pxIPHeader->ucVersionHeaderLength > 0x4F ) ) in xMayAcceptPacket()
/FreeRTOS-Plus-TCP-v4.0.0/source/portable/NetworkInterface/ATSAM4E/
HDNetworkInterface.c434 …erChecksum = usGenerateChecksum( 0U, ( uint8_t * ) &( pxIPHeader->ucVersionHeaderLength ), ipSIZE_… in vGMACGenerateChecksum()
/FreeRTOS-Plus-TCP-v4.0.0/source/portable/NetworkInterface/STM32Fxx/
HDNetworkInterface.c987 … if( ( pxIPHeader->ucVersionHeaderLength < 0x45 ) || ( pxIPHeader->ucVersionHeaderLength > 0x4F ) ) in xMayAcceptPacket()
/FreeRTOS-Plus-TCP-v4.0.0/tools/tcp_utilities/
HDtcp_dump_packets.c391 size_t uxLength = ( size_t ) pxIPHeader->ucVersionHeaderLength; in vAddProtocolTags()
/FreeRTOS-Plus-TCP-v4.0.0/source/portable/NetworkInterface/DriverSAM/
HDNetworkInterface.c927 …erChecksum = usGenerateChecksum( 0U, ( uint8_t * ) &( pxIPHeader->ucVersionHeaderLength ), ipSIZE_… in vGMACGenerateChecksum()