/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_IPv6_ConfigDriverCheckChecksum/ |
HD | FreeRTOS_IPv6_ConfigDriverCheckChecksum_utest.c | 62 eFrameProcessingResult_t eResult; in test_prvAllowIPPacketIPv6_xCheckIPv6SizeFields_happy_path() local 66 eResult = prvAllowIPPacketIPv6( &pxIPPacket->xIPHeader, pxNetworkBuffer, 0U ); in test_prvAllowIPPacketIPv6_xCheckIPv6SizeFields_happy_path() 67 TEST_ASSERT_EQUAL( eProcessBuffer, eResult ); in test_prvAllowIPPacketIPv6_xCheckIPv6SizeFields_happy_path() 76 eFrameProcessingResult_t eResult; in test_prvAllowIPPacketIPv6_xCheckIPv6SizeFields_valid_ext_header_length() local 86 eResult = prvAllowIPPacketIPv6( &pxIPPacket->xIPHeader, pxNetworkBuffer, 0U ); in test_prvAllowIPPacketIPv6_xCheckIPv6SizeFields_valid_ext_header_length() 87 TEST_ASSERT_EQUAL( eProcessBuffer, eResult ); in test_prvAllowIPPacketIPv6_xCheckIPv6SizeFields_valid_ext_header_length() 96 eFrameProcessingResult_t eResult; in test_prvAllowIPPacketIPv6_xCheckIPv6SizeFields_buffer_length_less_than_ip_header() local 102 eResult = prvAllowIPPacketIPv6( &pxIPPacket->xIPHeader, pxNetworkBuffer, 0U ); in test_prvAllowIPPacketIPv6_xCheckIPv6SizeFields_buffer_length_less_than_ip_header() 103 TEST_ASSERT_EQUAL( eReleaseBuffer, eResult ); in test_prvAllowIPPacketIPv6_xCheckIPv6SizeFields_buffer_length_less_than_ip_header() 112 eFrameProcessingResult_t eResult; in test_prvAllowIPPacketIPv6_xCheckIPv6SizeFields_not_an_ipv6_packet() local [all …]
|
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_IPv6/ |
HD | FreeRTOS_IPv6_utest.c | 66 eFrameProcessingResult_t eResult; in test_prvAllowIPPacketIPv6_SourceUnspecifiedAddress() local 72 eResult = prvAllowIPPacketIPv6( &xIPv6Address, NULL, 0U ); in test_prvAllowIPPacketIPv6_SourceUnspecifiedAddress() 73 TEST_ASSERT_EQUAL( eReleaseBuffer, eResult ); in test_prvAllowIPPacketIPv6_SourceUnspecifiedAddress() 83 eFrameProcessingResult_t eResult; in test_prvAllowIPPacketIPv6_DestinationUnspecifiedAddress() local 89 eResult = prvAllowIPPacketIPv6( &xIPv6Address, NULL, 0U ); in test_prvAllowIPPacketIPv6_DestinationUnspecifiedAddress() 90 TEST_ASSERT_EQUAL( eReleaseBuffer, eResult ); in test_prvAllowIPPacketIPv6_DestinationUnspecifiedAddress() 99 eFrameProcessingResult_t eResult; in test_prvAllowIPPacketIPv6_HappyPath() local 106 eResult = prvAllowIPPacketIPv6( &pxTCPPacket->xIPHeader, pxNetworkBuffer, 0U ); in test_prvAllowIPPacketIPv6_HappyPath() 107 TEST_ASSERT_EQUAL( eProcessBuffer, eResult ); in test_prvAllowIPPacketIPv6_HappyPath() 115 eFrameProcessingResult_t eResult; in test_prvAllowIPPacketIPv6_MulticastAddress() local [all …]
|
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_IPv4/ |
HD | FreeRTOS_IPv4_utest.c | 124 eFrameProcessingResult_t eResult; in test_prvAllowIPPacketIPv4_LessHeaderLength() local 137 eResult = prvAllowIPPacketIPv4( pxIPPacket, pxNetworkBuffer, uxHeaderLength ); in test_prvAllowIPPacketIPv4_LessHeaderLength() 139 TEST_ASSERT_EQUAL( eReleaseBuffer, eResult ); in test_prvAllowIPPacketIPv4_LessHeaderLength() 149 eFrameProcessingResult_t eResult; in test_prvAllowIPPacketIPv4_FragmentedPacket() local 165 eResult = prvAllowIPPacketIPv4( pxIPPacket, pxNetworkBuffer, uxHeaderLength ); in test_prvAllowIPPacketIPv4_FragmentedPacket() 167 TEST_ASSERT_EQUAL( eReleaseBuffer, eResult ); in test_prvAllowIPPacketIPv4_FragmentedPacket() 177 eFrameProcessingResult_t eResult; in test_prvAllowIPPacketIPv4_MoreFragmentedPacket() local 193 eResult = prvAllowIPPacketIPv4( pxIPPacket, pxNetworkBuffer, uxHeaderLength ); in test_prvAllowIPPacketIPv4_MoreFragmentedPacket() 195 TEST_ASSERT_EQUAL( eReleaseBuffer, eResult ); in test_prvAllowIPPacketIPv4_MoreFragmentedPacket() 205 eFrameProcessingResult_t eResult; in test_prvAllowIPPacketIPv4_GreaterHeaderLength() local [all …]
|
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_ICMP/ |
HD | FreeRTOS_ICMP_utest.c | 70 eFrameProcessingResult_t eResult; in test_ProcessICMPPacket_CatchAssert() local 81 eFrameProcessingResult_t eResult; in test_ProcessICMPPacket_AllZeroData() local 93 eResult = ProcessICMPPacket( pxNetworkBuffer ); in test_ProcessICMPPacket_AllZeroData() 95 TEST_ASSERT_EQUAL( eReleaseBuffer, eResult ); in test_ProcessICMPPacket_AllZeroData() 100 eFrameProcessingResult_t eResult; in test_ProcessICMPPacket_EchoRequest() local 125 eResult = ProcessICMPPacket( pxNetworkBuffer ); in test_ProcessICMPPacket_EchoRequest() 127 TEST_ASSERT_EQUAL( eReturnEthernetFrame, eResult ); in test_ProcessICMPPacket_EchoRequest() 138 eFrameProcessingResult_t eResult; in test_ProcessICMPPacket_UnknownICMPPacket() local 154 eResult = ProcessICMPPacket( pxNetworkBuffer ); in test_ProcessICMPPacket_UnknownICMPPacket() 156 TEST_ASSERT_EQUAL( eReleaseBuffer, eResult ); in test_ProcessICMPPacket_UnknownICMPPacket() [all …]
|
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_IPv4_DiffConfig/ |
HD | FreeRTOS_IPv4_DiffConfig_utest.c | 82 eFrameProcessingResult_t eResult; in test_prvAllowIPPacketIPv4_BroadcastSourceIP() local 111 eResult = prvAllowIPPacketIPv4( pxIPPacket, pxNetworkBuffer, uxHeaderLength ); in test_prvAllowIPPacketIPv4_BroadcastSourceIP() 113 TEST_ASSERT_EQUAL( eReleaseBuffer, eResult ); in test_prvAllowIPPacketIPv4_BroadcastSourceIP() 123 eFrameProcessingResult_t eResult; in test_prvAllowIPPacketIPv4_BufferLengthLessThanMinimum() local 153 eResult = prvAllowIPPacketIPv4( pxIPPacket, pxNetworkBuffer, uxHeaderLength ); in test_prvAllowIPPacketIPv4_BufferLengthLessThanMinimum() 155 TEST_ASSERT_EQUAL( eReleaseBuffer, eResult ); in test_prvAllowIPPacketIPv4_BufferLengthLessThanMinimum() 165 eFrameProcessingResult_t eResult; in test_prvAllowIPPacketIPv4_UDPCheckSumZero() local 199 eResult = prvAllowIPPacketIPv4( pxIPPacket, pxNetworkBuffer, uxHeaderLength ); in test_prvAllowIPPacketIPv4_UDPCheckSumZero() 201 TEST_ASSERT_EQUAL( eReleaseBuffer, eResult ); in test_prvAllowIPPacketIPv4_UDPCheckSumZero() 210 eFrameProcessingResult_t eResult; in test_prvAllowIPPacketIPv4_UDP_HappyPath() local [all …]
|
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_IPv4_DiffConfig1/ |
HD | FreeRTOS_IPv4_DiffConfig1_utest.c | 82 eFrameProcessingResult_t eResult; in test_prvAllowIPPacketIPv4_BufferLengthLess() local 117 eResult = prvAllowIPPacketIPv4( pxIPPacket, pxNetworkBuffer, uxHeaderLength ); in test_prvAllowIPPacketIPv4_BufferLengthLess() 119 TEST_ASSERT_EQUAL( eReleaseBuffer, eResult ); in test_prvAllowIPPacketIPv4_BufferLengthLess() 130 eFrameProcessingResult_t eResult; in test_prvAllowIPPacketIPv4_HeaderLengthLess() local 163 eResult = prvAllowIPPacketIPv4( pxIPPacket, pxNetworkBuffer, uxHeaderLength ); in test_prvAllowIPPacketIPv4_HeaderLengthLess() 165 TEST_ASSERT_EQUAL( eReleaseBuffer, eResult ); in test_prvAllowIPPacketIPv4_HeaderLengthLess() 175 eFrameProcessingResult_t eResult; in test_prvAllowIPPacketIPv4_BufferLengthLessThan() local 208 eResult = prvAllowIPPacketIPv4( pxIPPacket, pxNetworkBuffer, uxHeaderLength ); in test_prvAllowIPPacketIPv4_BufferLengthLessThan() 210 TEST_ASSERT_EQUAL( eReleaseBuffer, eResult ); in test_prvAllowIPPacketIPv4_BufferLengthLessThan() 220 eFrameProcessingResult_t eResult; in test_prvAllowIPPacketIPv4_BufferLengthLessThanIPRequirement() local [all …]
|
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_ARP/ |
HD | FreeRTOS_ARP_utest.c | 42 eFrameProcessingResult_t eResult; in vResetARPClashCounter() local 63 eResult = eARPProcessPacket( &xNetworkBuffer ); in vResetARPClashCounter() 267 eFrameProcessingResult_t eResult; in test_eARPProcessPacket_DifferentHardwareAddress() local 278 eResult = eARPProcessPacket( pxNetworkBuffer ); in test_eARPProcessPacket_DifferentHardwareAddress() 279 TEST_ASSERT_EQUAL( eReleaseBuffer, eResult ); in test_eARPProcessPacket_DifferentHardwareAddress() 289 eFrameProcessingResult_t eResult; in test_eARPProcessPacket_DifferentProtocolType() local 301 eResult = eARPProcessPacket( pxNetworkBuffer ); in test_eARPProcessPacket_DifferentProtocolType() 302 TEST_ASSERT_EQUAL( eReleaseBuffer, eResult ); in test_eARPProcessPacket_DifferentProtocolType() 312 eFrameProcessingResult_t eResult; in test_eARPProcessPacket_DifferentHardwareLength() local 325 eResult = eARPProcessPacket( pxNetworkBuffer ); in test_eARPProcessPacket_DifferentHardwareLength() [all …]
|
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_IP/ |
HD | FreeRTOS_IP_utest.c | 1480 eFrameProcessingResult_t eResult; in test_eConsiderFrameForProcessing_NullBufferDescriptor() local 1482 eResult = eConsiderFrameForProcessing( NULL ); in test_eConsiderFrameForProcessing_NullBufferDescriptor() 1484 TEST_ASSERT_EQUAL( eReleaseBuffer, eResult ); in test_eConsiderFrameForProcessing_NullBufferDescriptor() 1494 eFrameProcessingResult_t eResult; in test_eConsiderFrameForProcessing_LocalMACMatch() local 1512 eResult = eConsiderFrameForProcessing( ucEthernetBuffer ); in test_eConsiderFrameForProcessing_LocalMACMatch() 1514 TEST_ASSERT_EQUAL( eProcessBuffer, eResult ); in test_eConsiderFrameForProcessing_LocalMACMatch() 1524 eFrameProcessingResult_t eResult; in test_eConsiderFrameForProcessing_LocalMACMatchInvalidFrameType() local 1542 eResult = eConsiderFrameForProcessing( ucEthernetBuffer ); in test_eConsiderFrameForProcessing_LocalMACMatchInvalidFrameType() 1544 TEST_ASSERT_EQUAL( eReleaseBuffer, eResult ); in test_eConsiderFrameForProcessing_LocalMACMatchInvalidFrameType() 1554 eFrameProcessingResult_t eResult; in test_eConsiderFrameForProcessing_LocalMACMatchInvalidFrameType1() local [all …]
|
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_ICMP_wo_assert/ |
HD | FreeRTOS_ICMP_wo_assert_utest.c | 63 eFrameProcessingResult_t eResult; in test_ProcessICMPPacket_PacketSizeSmall() local 69 eResult = ProcessICMPPacket( pxNetworkBuffer ); in test_ProcessICMPPacket_PacketSizeSmall() 71 TEST_ASSERT_EQUAL( eReleaseBuffer, eResult ); in test_ProcessICMPPacket_PacketSizeSmall()
|
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_ND/ |
HD | FreeRTOS_ND_utest.c | 113 eARPLookupResult_t eResult; in test_eNDGetCacheEntry_MulticastEndPoint() local 125 eResult = eNDGetCacheEntry( &xIPAddress, &xMACAddress, &pxEndPoint ); in test_eNDGetCacheEntry_MulticastEndPoint() 127 TEST_ASSERT_EQUAL( eARPCacheHit, eResult ); in test_eNDGetCacheEntry_MulticastEndPoint() 137 eARPLookupResult_t eResult; in test_eNDGetCacheEntry_Multicast_ValidEndPoint() local 155 eResult = eNDGetCacheEntry( &xIPAddress, &xMACAddress, &pxEndPoint ); in test_eNDGetCacheEntry_Multicast_ValidEndPoint() 157 TEST_ASSERT_EQUAL( eARPCacheHit, eResult ); in test_eNDGetCacheEntry_Multicast_ValidEndPoint() 167 eARPLookupResult_t eResult; in test_eNDGetCacheEntry_Multicast_InvalidEndPoint() local 176 eResult = eNDGetCacheEntry( &xIPAddress, &xMACAddress, ppxEndPoint ); in test_eNDGetCacheEntry_Multicast_InvalidEndPoint() 178 TEST_ASSERT_EQUAL( eARPCacheHit, eResult ); in test_eNDGetCacheEntry_Multicast_InvalidEndPoint() 191 eARPLookupResult_t eResult; in test_eNDGetCacheEntry_NDCacheLookupHit_InvalidEndPoint() local [all …]
|
/FreeRTOS-Plus-TCP-v4.0.0/test/cbmc/proofs/UDP/vProcessGeneratedUDPPacket_IPv6/ |
HD | vProcessGeneratedUDPPacket_IPv6_harness.c | 55 eARPLookupResult_t eResult; in eNDGetCacheEntry() local 60 return eResult; in eNDGetCacheEntry()
|
/FreeRTOS-Plus-TCP-v4.0.0/test/cbmc/proofs/UDP/vProcessGeneratedUDPPacket/ |
HD | vProcessGeneratedUDPPacket_harness.c | 73 eARPLookupResult_t eResult; in eARPGetCacheEntry() local 75 return eResult; in eARPGetCacheEntry()
|
/FreeRTOS-Plus-TCP-v4.0.0/tools/tcp_utilities/ |
HD | plus_tcp_demo_cli.c | 297 static const char * pcARPReturnType( eARPLookupResult_t eResult ) in pcARPReturnType() argument 301 switch( eResult ) in pcARPReturnType() 471 eARPLookupResult_t eResult = eARPCacheMiss; in handle_arpq() local 535 eResult = eARPGetCacheEntry( &ulLookUpIP, &xMACAddress, &pxEndPoint ); in handle_arpq() 537 …pcARPReturnType( eResult ), ( unsigned ) FreeRTOS_htonl( ulLookUpIP ), ( pxEndPoint != NULL ) ? "y… in handle_arpq() 543 … eResult = eNDGetCacheEntry( &( xLookupAddress.xIP_IPv6 ), &xMACAddress, &pxEndPoint ); in handle_arpq() 545 … pcARPReturnType( eResult ), xAddress.xIP_IPv6.ucBytes, ( pxEndPoint != NULL ) ? "yes" : "no" ) ); in handle_arpq() 555 if( ( eResult == eARPCacheMiss ) && ( pxEndPoint != NULL ) ) in handle_arpq() 617 eResult = eARPGetCacheEntry( &ulLookUpIP, &xMACAddress, &pxEndPoint ); in handle_arpq() 623 … eResult = eNDGetCacheEntry( &( xLookupAddress.xIP_IPv6 ), &xMACAddress, &pxEndPoint ); in handle_arpq() [all …]
|
/FreeRTOS-Plus-TCP-v4.0.0/source/ |
HD | FreeRTOS_IPv6.c | 626 eFrameProcessingResult_t eResult = eReleaseBuffer; in eHandleIPv6ExtensionHeaders() local 661 eResult = eProcessBuffer; in eHandleIPv6ExtensionHeaders() 671 ( eResult == eProcessBuffer ) ? "good" : "bad", in eHandleIPv6ExtensionHeaders() 676 return eResult; in eHandleIPv6ExtensionHeaders()
|
HD | FreeRTOS_TCP_Transmission_IPv4.c | 237 eARPLookupResult_t eResult; in prvTCPReturnPacket_IPV4() local 239 …eResult = eARPGetCacheEntry( &ulDestinationIPAddress, &xMACAddress, &( pxNetworkBuffer->pxEndPoint… in prvTCPReturnPacket_IPV4() 241 if( eResult == eARPCacheHit ) in prvTCPReturnPacket_IPV4()
|
HD | FreeRTOS_TCP_Transmission_IPv6.c | 233 eARPLookupResult_t eResult; in prvTCPReturnPacket_IPV6() local 235 …eResult = eNDGetCacheEntry( &xDestinationIPAddress, &xMACAddress, &( pxNetworkBuffer->pxEndPoint )… in prvTCPReturnPacket_IPV6() 237 if( eResult == eARPCacheHit ) in prvTCPReturnPacket_IPV6()
|
HD | FreeRTOS_ARP.c | 574 eARPLookupResult_t eResult; in xCheckRequiresARPResolution() local 578 eResult = eNDGetCacheEntry( pxIPAddress, &xMACAddress, &pxEndPoint ); in xCheckRequiresARPResolution() 579 …ckRequiresARPResolution: eResult %s with EP %s\n", ( eResult == eARPCacheMiss ) ? "Miss" : ( eResu… in xCheckRequiresARPResolution() 581 if( eResult == eARPCacheMiss ) in xCheckRequiresARPResolution()
|
HD | FreeRTOS_Routing.c | 1446 IPv6_Type_t eResult = eIPv6_Unknown; in xIPv6_GetIPType() local 1467 eResult = xIPCouples[ xIndex ].eType; in xIPv6_GetIPType() 1473 return eResult; in xIPv6_GetIPType()
|
HD | FreeRTOS_IP.c | 2086 eARPLookupResult_t eResult; in vReturnEthernetFrame() local 2132 …eResult = eARPGetCacheEntry( &ulDestinationIPAddress, &xMACAddress, &( pxNetworkBuffer->pxEndPoint… in vReturnEthernetFrame() 2134 if( eResult == eARPCacheHit ) in vReturnEthernetFrame()
|
/FreeRTOS-Plus-TCP-v4.0.0/source/portable/NetworkInterface/WinPCap/ |
HD | NetworkInterface.c | 795 eFrameProcessingResult_t eResult; in prvInterruptSimulatorTask() local 817 eResult = ipCONSIDER_FRAME_FOR_PROCESSING( pucPacketData ); in prvInterruptSimulatorTask() 821 eResult = eReleaseBuffer; in prvInterruptSimulatorTask() 824 if( eResult == eProcessBuffer ) in prvInterruptSimulatorTask()
|
/FreeRTOS-Plus-TCP-v4.0.0/source/portable/NetworkInterface/linux/ |
HD | NetworkInterface.c | 928 eFrameProcessingResult_t eResult; in prvInterruptSimulatorTask() local 950 eResult = ipCONSIDER_FRAME_FOR_PROCESSING( pucPacketData ); in prvInterruptSimulatorTask() 954 eResult = eReleaseBuffer; in prvInterruptSimulatorTask() 957 if( eResult == eProcessBuffer ) in prvInterruptSimulatorTask()
|
/FreeRTOS-Plus-TCP-v4.0.0/source/portable/NetworkInterface/LPC18xx/ |
HD | NetworkInterface.c | 678 eFrameProcessingResult_t eResult; in prvNetworkInterfaceInput() local 708 …eResult = ipCONSIDER_FRAME_FOR_PROCESSING( ( const uint8_t * const ) ( xDMARxDescriptors[ ulNextRx… in prvNetworkInterfaceInput() 710 if( eResult == eProcessBuffer ) in prvNetworkInterfaceInput()
|