Lines Matching refs:xARPCache

29 extern ARPCacheRow_t xARPCache[ ipconfigARP_CACHE_ENTRIES ];
713 memset( xARPCache, 0, sizeof( xARPCache ) ); in test_eARPProcessPacket_Request_GratuitousARP()
731 xARPCache[ 0 ].ulIPAddress = ulTargetIP; in test_eARPProcessPacket_Request_GratuitousARP()
732 xARPCache[ 0 ].ucAge = 1; in test_eARPProcessPacket_Request_GratuitousARP()
733 xARPCache[ 0 ].ucValid = pdTRUE; in test_eARPProcessPacket_Request_GratuitousARP()
734 … memset( xARPCache[ 0 ].xMACAddress.ucBytes, 0x34, sizeof( xARPCache[ 0 ].xMACAddress.ucBytes ) ); in test_eARPProcessPacket_Request_GratuitousARP()
735 xARPCache[ 0 ].pxEndPoint = &xEndPoint; in test_eARPProcessPacket_Request_GratuitousARP()
754 TEST_ASSERT_EQUAL( ulTargetIP, xARPCache[ 0 ].ulIPAddress ); in test_eARPProcessPacket_Request_GratuitousARP()
755 TEST_ASSERT_EQUAL( ipconfigMAX_ARP_AGE, xARPCache[ 0 ].ucAge ); in test_eARPProcessPacket_Request_GratuitousARP()
756 TEST_ASSERT_EQUAL( pdTRUE, xARPCache[ 0 ].ucValid ); in test_eARPProcessPacket_Request_GratuitousARP()
757 TEST_ASSERT_EQUAL( &xEndPoint, xARPCache[ 0 ].pxEndPoint ); in test_eARPProcessPacket_Request_GratuitousARP()
758 …rame.xARPHeader.xSenderHardwareAddress.ucBytes ), xARPCache[ 0 ].xMACAddress.ucBytes, sizeof( xARP… in test_eARPProcessPacket_Request_GratuitousARP()
778 memset( xARPCache, 0, sizeof( xARPCache ) ); in test_eARPProcessPacket_Request_GratuitousARP_MACUnchanged()
796 xARPCache[ 0 ].ulIPAddress = ulTargetIP; in test_eARPProcessPacket_Request_GratuitousARP_MACUnchanged()
797 xARPCache[ 0 ].ucAge = 1; in test_eARPProcessPacket_Request_GratuitousARP_MACUnchanged()
798 xARPCache[ 0 ].ucValid = pdTRUE; in test_eARPProcessPacket_Request_GratuitousARP_MACUnchanged()
799 … memset( xARPCache[ 0 ].xMACAddress.ucBytes, 0x22, sizeof( xARPCache[ 0 ].xMACAddress.ucBytes ) ); in test_eARPProcessPacket_Request_GratuitousARP_MACUnchanged()
800 xARPCache[ 0 ].pxEndPoint = &xEndPoint; in test_eARPProcessPacket_Request_GratuitousARP_MACUnchanged()
817 TEST_ASSERT_EQUAL( ulTargetIP, xARPCache[ 0 ].ulIPAddress ); in test_eARPProcessPacket_Request_GratuitousARP_MACUnchanged()
818 TEST_ASSERT_EQUAL( ipconfigMAX_ARP_AGE, xARPCache[ 0 ].ucAge ); in test_eARPProcessPacket_Request_GratuitousARP_MACUnchanged()
819 TEST_ASSERT_EQUAL( pdTRUE, xARPCache[ 0 ].ucValid ); in test_eARPProcessPacket_Request_GratuitousARP_MACUnchanged()
820 TEST_ASSERT_EQUAL( &xEndPoint, xARPCache[ 0 ].pxEndPoint ); in test_eARPProcessPacket_Request_GratuitousARP_MACUnchanged()
821 …rame.xARPHeader.xSenderHardwareAddress.ucBytes ), xARPCache[ 0 ].xMACAddress.ucBytes, sizeof( xARP… in test_eARPProcessPacket_Request_GratuitousARP_MACUnchanged()
839 memset( xARPCache, 0, sizeof( xARPCache ) ); in test_eARPProcessPacket_Request_GratuitousARP_OutOfSubnetIP()
858 xARPCache[ 0 ].ulIPAddress = ulTargetIP; in test_eARPProcessPacket_Request_GratuitousARP_OutOfSubnetIP()
859 xARPCache[ 0 ].ucAge = 1; in test_eARPProcessPacket_Request_GratuitousARP_OutOfSubnetIP()
860 xARPCache[ 0 ].ucValid = pdTRUE; in test_eARPProcessPacket_Request_GratuitousARP_OutOfSubnetIP()
861 … memset( xARPCache[ 0 ].xMACAddress.ucBytes, 0x22, sizeof( xARPCache[ 0 ].xMACAddress.ucBytes ) ); in test_eARPProcessPacket_Request_GratuitousARP_OutOfSubnetIP()
862 xARPCache[ 0 ].pxEndPoint = &xEndPoint; in test_eARPProcessPacket_Request_GratuitousARP_OutOfSubnetIP()
874 TEST_ASSERT_EQUAL( ulTargetIP, xARPCache[ 0 ].ulIPAddress ); in test_eARPProcessPacket_Request_GratuitousARP_OutOfSubnetIP()
875 TEST_ASSERT_EQUAL( 1, xARPCache[ 0 ].ucAge ); in test_eARPProcessPacket_Request_GratuitousARP_OutOfSubnetIP()
876 TEST_ASSERT_EQUAL( pdTRUE, xARPCache[ 0 ].ucValid ); in test_eARPProcessPacket_Request_GratuitousARP_OutOfSubnetIP()
877 TEST_ASSERT_EQUAL( &xEndPoint, xARPCache[ 0 ].pxEndPoint ); in test_eARPProcessPacket_Request_GratuitousARP_OutOfSubnetIP()
878 …rame.xARPHeader.xSenderHardwareAddress.ucBytes ), xARPCache[ 0 ].xMACAddress.ucBytes, sizeof( xARP… in test_eARPProcessPacket_Request_GratuitousARP_OutOfSubnetIP()
897 memset( xARPCache, 0, sizeof( xARPCache ) ); in test_eARPProcessPacket_Request_GratuitousARP_MACMatchesWithEndpoint()
909 memset( xEndPoint.xMACAddress.ucBytes, 0x22, sizeof( xARPCache[ 0 ].xMACAddress.ucBytes ) ); in test_eARPProcessPacket_Request_GratuitousARP_MACMatchesWithEndpoint()
917 xARPCache[ 0 ].ulIPAddress = ulTargetIP; in test_eARPProcessPacket_Request_GratuitousARP_MACMatchesWithEndpoint()
918 xARPCache[ 0 ].ucAge = 1; in test_eARPProcessPacket_Request_GratuitousARP_MACMatchesWithEndpoint()
919 xARPCache[ 0 ].ucValid = pdTRUE; in test_eARPProcessPacket_Request_GratuitousARP_MACMatchesWithEndpoint()
920 … memset( xARPCache[ 0 ].xMACAddress.ucBytes, 0x22, sizeof( xARPCache[ 0 ].xMACAddress.ucBytes ) ); in test_eARPProcessPacket_Request_GratuitousARP_MACMatchesWithEndpoint()
921 xARPCache[ 0 ].pxEndPoint = &xEndPoint; in test_eARPProcessPacket_Request_GratuitousARP_MACMatchesWithEndpoint()
933 TEST_ASSERT_EQUAL( ulTargetIP, xARPCache[ 0 ].ulIPAddress ); in test_eARPProcessPacket_Request_GratuitousARP_MACMatchesWithEndpoint()
934 TEST_ASSERT_EQUAL( 1, xARPCache[ 0 ].ucAge ); in test_eARPProcessPacket_Request_GratuitousARP_MACMatchesWithEndpoint()
935 TEST_ASSERT_EQUAL( pdTRUE, xARPCache[ 0 ].ucValid ); in test_eARPProcessPacket_Request_GratuitousARP_MACMatchesWithEndpoint()
936 TEST_ASSERT_EQUAL( &xEndPoint, xARPCache[ 0 ].pxEndPoint ); in test_eARPProcessPacket_Request_GratuitousARP_MACMatchesWithEndpoint()
937 …rame.xARPHeader.xSenderHardwareAddress.ucBytes ), xARPCache[ 0 ].xMACAddress.ucBytes, sizeof( xARP… in test_eARPProcessPacket_Request_GratuitousARP_MACMatchesWithEndpoint()
956 memset( xARPCache, 0, sizeof( xARPCache ) ); in test_eARPProcessPacket_Request_GratuitousARP_TargetHWAddressNotBroadcast()
968 memset( xEndPoint.xMACAddress.ucBytes, 0x22, sizeof( xARPCache[ 0 ].xMACAddress.ucBytes ) ); in test_eARPProcessPacket_Request_GratuitousARP_TargetHWAddressNotBroadcast()
977 xARPCache[ 0 ].ulIPAddress = ulTargetIP; in test_eARPProcessPacket_Request_GratuitousARP_TargetHWAddressNotBroadcast()
978 xARPCache[ 0 ].ucAge = 1; in test_eARPProcessPacket_Request_GratuitousARP_TargetHWAddressNotBroadcast()
979 xARPCache[ 0 ].ucValid = pdTRUE; in test_eARPProcessPacket_Request_GratuitousARP_TargetHWAddressNotBroadcast()
980 … memset( xARPCache[ 0 ].xMACAddress.ucBytes, 0x22, sizeof( xARPCache[ 0 ].xMACAddress.ucBytes ) ); in test_eARPProcessPacket_Request_GratuitousARP_TargetHWAddressNotBroadcast()
981 xARPCache[ 0 ].pxEndPoint = &xEndPoint; in test_eARPProcessPacket_Request_GratuitousARP_TargetHWAddressNotBroadcast()
993 TEST_ASSERT_EQUAL( ulTargetIP, xARPCache[ 0 ].ulIPAddress ); in test_eARPProcessPacket_Request_GratuitousARP_TargetHWAddressNotBroadcast()
994 TEST_ASSERT_EQUAL( 1, xARPCache[ 0 ].ucAge ); in test_eARPProcessPacket_Request_GratuitousARP_TargetHWAddressNotBroadcast()
995 TEST_ASSERT_EQUAL( pdTRUE, xARPCache[ 0 ].ucValid ); in test_eARPProcessPacket_Request_GratuitousARP_TargetHWAddressNotBroadcast()
996 TEST_ASSERT_EQUAL( &xEndPoint, xARPCache[ 0 ].pxEndPoint ); in test_eARPProcessPacket_Request_GratuitousARP_TargetHWAddressNotBroadcast()
997 …rame.xARPHeader.xSenderHardwareAddress.ucBytes ), xARPCache[ 0 ].xMACAddress.ucBytes, sizeof( xARP… in test_eARPProcessPacket_Request_GratuitousARP_TargetHWAddressNotBroadcast()
1020 memset( xARPCache, 0, sizeof( xARPCache ) ); in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingEndpoint()
1038 xARPCache[ 0 ].ulIPAddress = ulTargetIP; in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingEndpoint()
1039 xARPCache[ 0 ].ucAge = 1; in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingEndpoint()
1040 xARPCache[ 0 ].ucValid = pdTRUE; in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingEndpoint()
1041 … memset( xARPCache[ 0 ].xMACAddress.ucBytes, 0x34, sizeof( xARPCache[ 0 ].xMACAddress.ucBytes ) ); in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingEndpoint()
1042 xARPCache[ 0 ].pxEndPoint = &xEndPoint2; in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingEndpoint()
1058 TEST_ASSERT_EQUAL( ulTargetIP, xARPCache[ 0 ].ulIPAddress ); in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingEndpoint()
1059 TEST_ASSERT_EQUAL( 1, xARPCache[ 0 ].ucAge ); in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingEndpoint()
1060 TEST_ASSERT_EQUAL( pdTRUE, xARPCache[ 0 ].ucValid ); in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingEndpoint()
1061 TEST_ASSERT_EQUAL( &xEndPoint2, xARPCache[ 0 ].pxEndPoint ); in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingEndpoint()
1062 …TEST_ASSERT_EQUAL_MEMORY( ucMAC, xARPCache[ 0 ].xMACAddress.ucBytes, sizeof( xARPCache[ 0 ].xMACAd… in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingEndpoint()
1083 memset( xARPCache, 0, sizeof( xARPCache ) ); in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingIP()
1101 xARPCache[ 0 ].ulIPAddress = 0xAABBCCDF; in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingIP()
1102 xARPCache[ 0 ].ucAge = 1; in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingIP()
1103 xARPCache[ 0 ].ucValid = pdTRUE; in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingIP()
1104 … memset( xARPCache[ 0 ].xMACAddress.ucBytes, 0x34, sizeof( xARPCache[ 0 ].xMACAddress.ucBytes ) ); in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingIP()
1105 xARPCache[ 0 ].pxEndPoint = &xEndPoint2; in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingIP()
1121 TEST_ASSERT_EQUAL( 0xAABBCCDF, xARPCache[ 0 ].ulIPAddress ); in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingIP()
1122 TEST_ASSERT_EQUAL( 1, xARPCache[ 0 ].ucAge ); in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingIP()
1123 TEST_ASSERT_EQUAL( pdTRUE, xARPCache[ 0 ].ucValid ); in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingIP()
1124 TEST_ASSERT_EQUAL( &xEndPoint2, xARPCache[ 0 ].pxEndPoint ); in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingIP()
1125 …TEST_ASSERT_EQUAL_MEMORY( ucMAC, xARPCache[ 0 ].xMACAddress.ucBytes, sizeof( xARPCache[ 0 ].xMACAd… in test_eARPProcessPacket_Request_GratuitousARP_NonMatchingIP()
1138 memset( xARPCache, 0, sizeof( xARPCache ) ); in test_eARPProcessPacket_Reply_TargetIPSameAsLocalIP()
1185 memset( xARPCache, 0, sizeof( xARPCache ) ); in test_eARPProcessPacket_Reply_TargetIPNotSameAsLocalIP_ButEntryInCache()
1206 xARPCache[ 0 ].ulIPAddress = ulSenderProtocolAddress; in test_eARPProcessPacket_Reply_TargetIPNotSameAsLocalIP_ButEntryInCache()
1207 xARPCache[ 0 ].ucAge = 1; in test_eARPProcessPacket_Reply_TargetIPNotSameAsLocalIP_ButEntryInCache()
1208 xARPCache[ 0 ].ucValid = 1; in test_eARPProcessPacket_Reply_TargetIPNotSameAsLocalIP_ButEntryInCache()
1223 TEST_ASSERT_EQUAL( ipconfigMAX_ARP_AGE, xARPCache[ 0 ].ucAge ); in test_eARPProcessPacket_Reply_TargetIPNotSameAsLocalIP_ButEntryInCache()
1564 xARPCache[ x ].ulIPAddress = 0; in test_xIsIPInARPCache_NoMatchingIP()
1579 xARPCache[ x ].ulIPAddress = 0; in test_xIsIPInARPCache_MatchingIPButEntryInvalid()
1580 xARPCache[ x ].ucValid = ( uint8_t ) pdFALSE; in test_xIsIPInARPCache_MatchingIPButEntryInvalid()
1583 xARPCache[ 0 ].ulIPAddress = ulIPAddress; in test_xIsIPInARPCache_MatchingIPButEntryInvalid()
1597 xARPCache[ x ].ulIPAddress = 0; in test_xIsIPInARPCache_MatchingIP1()
1598 xARPCache[ x ].ucValid = ( uint8_t ) pdTRUE; in test_xIsIPInARPCache_MatchingIP1()
1601 xARPCache[ 0 ].ulIPAddress = ulIPAddress; in test_xIsIPInARPCache_MatchingIP1()
1615 xARPCache[ x ].ulIPAddress = 0; in test_xIsIPInARPCache_MatchingIP2()
1616 xARPCache[ x ].ucValid = ( uint8_t ) pdTRUE; in test_xIsIPInARPCache_MatchingIP2()
1619 xARPCache[ ipconfigARP_CACHE_ENTRIES - 1 ].ulIPAddress = ulIPAddress; in test_xIsIPInARPCache_MatchingIP2()
1791 xARPCache[ x ].ulIPAddress = 0; in test_xCheckRequiresARPResolution_OnLocalNetwork_NotInCache()
1833 xARPCache[ x ].ulIPAddress = pxIPHeader->ulSourceIPAddress; in test_xCheckRequiresARPResolution_OnLocalNetwork_InCache()
1834 xARPCache[ x ].ucValid = ( uint8_t ) pdTRUE; in test_xCheckRequiresARPResolution_OnLocalNetwork_InCache()
1851 uint8_t ucBuffer[ sizeof( xARPCache[ 0 ] ) ]; in test_ulARPRemoveCacheEntryByMac_NoMatch()
1860 xARPCache[ i ].ulIPAddress = 0xAABBCCDD; in test_ulARPRemoveCacheEntryByMac_NoMatch()
1861 memset( xARPCache[ i ].xMACAddress.ucBytes, 0x11, sizeof( xMACAddress.ucBytes ) ); in test_ulARPRemoveCacheEntryByMac_NoMatch()
1875 uint8_t ucBuffer[ sizeof( xARPCache[ 0 ] ) ]; in test_ulARPRemoveCacheEntryByMac_OneMatchingEntry()
1881 xARPCache[ i ].ulIPAddress = 0xAABBCCDD; in test_ulARPRemoveCacheEntryByMac_OneMatchingEntry()
1882 memset( xARPCache[ i ].xMACAddress.ucBytes, 0x11, sizeof( xMACAddress.ucBytes ) ); in test_ulARPRemoveCacheEntryByMac_OneMatchingEntry()
1886 xARPCache[ xEntryToCheck ].ulIPAddress = 0xAABBCCEE; in test_ulARPRemoveCacheEntryByMac_OneMatchingEntry()
1887 memset( xARPCache[ xEntryToCheck ].xMACAddress.ucBytes, 0xAA, sizeof( xMACAddress.ucBytes ) ); in test_ulARPRemoveCacheEntryByMac_OneMatchingEntry()
1888 memset( ucBuffer, 0, sizeof( xARPCache[ 0 ] ) ); in test_ulARPRemoveCacheEntryByMac_OneMatchingEntry()
1891 … TEST_ASSERT_EQUAL( 0, memcmp( ucBuffer, &xARPCache[ xEntryToCheck ], sizeof( xARPCache[ 0 ] ) ) ); in test_ulARPRemoveCacheEntryByMac_OneMatchingEntry()
1904 xARPCache[ i ].ulIPAddress = 0xAABBCCDD; in test_vARPRefreshCacheEntry_NULLMAC_NoMatchingEntry()
1905 xARPCache[ i ].ucAge = 255; in test_vARPRefreshCacheEntry_NULLMAC_NoMatchingEntry()
1906 xARPCache[ i ].ucValid = pdTRUE; in test_vARPRefreshCacheEntry_NULLMAC_NoMatchingEntry()
1916 TEST_ASSERT_EQUAL( xARPCache[ 0 ].ucAge, ( uint8_t ) ipconfigMAX_ARP_RETRANSMISSIONS ); in test_vARPRefreshCacheEntry_NULLMAC_NoMatchingEntry()
1917 TEST_ASSERT_EQUAL( xARPCache[ 0 ].ucValid, ( uint8_t ) pdFALSE ); in test_vARPRefreshCacheEntry_NULLMAC_NoMatchingEntry()
1932 xARPCache[ i ].ulIPAddress = 0xAABBCCDD; in test_vARPRefreshCacheEntry_NULLMAC_MatchingEntry()
1933 xARPCache[ i ].ucAge = 255; in test_vARPRefreshCacheEntry_NULLMAC_MatchingEntry()
1934 xARPCache[ i ].ucValid = pdTRUE; in test_vARPRefreshCacheEntry_NULLMAC_MatchingEntry()
1937 xARPCache[ 1 ].ulIPAddress = 0xAABBCCEE; in test_vARPRefreshCacheEntry_NULLMAC_MatchingEntry()
1946 TEST_ASSERT_EQUAL( xARPCache[ 1 ].ucAge, 255 ); in test_vARPRefreshCacheEntry_NULLMAC_MatchingEntry()
1947 TEST_ASSERT_EQUAL( xARPCache[ 1 ].ucValid, ( uint8_t ) pdTRUE ); in test_vARPRefreshCacheEntry_NULLMAC_MatchingEntry()
1962 xARPCache[ i ].ulIPAddress = 0xAABBCCDD; in test_vARPRefreshCacheEntry_MACWontMatch_IPWillMatch()
1963 xARPCache[ i ].ucAge = 255; in test_vARPRefreshCacheEntry_MACWontMatch_IPWillMatch()
1964 xARPCache[ i ].ucValid = pdTRUE; in test_vARPRefreshCacheEntry_MACWontMatch_IPWillMatch()
1965 memset( xARPCache[ i ].xMACAddress.ucBytes, 0x34, sizeof( xMACAddress.ucBytes ) ); in test_vARPRefreshCacheEntry_MACWontMatch_IPWillMatch()
1969 xARPCache[ xUseEntry ].ulIPAddress = 0xAABBCCEE; in test_vARPRefreshCacheEntry_MACWontMatch_IPWillMatch()
1980 TEST_ASSERT_EQUAL_MESSAGE( ipconfigMAX_ARP_AGE, xARPCache[ xUseEntry ].ucAge, "Test 3" ); in test_vARPRefreshCacheEntry_MACWontMatch_IPWillMatch()
1981 TEST_ASSERT_EQUAL( ( uint8_t ) pdTRUE, xARPCache[ xUseEntry ].ucValid ); in test_vARPRefreshCacheEntry_MACWontMatch_IPWillMatch()
1982 …TEST_ASSERT_EQUAL_MEMORY( xMACAddress.ucBytes, xARPCache[ xUseEntry ].xMACAddress.ucBytes, sizeof(… in test_vARPRefreshCacheEntry_MACWontMatch_IPWillMatch()
1997 xARPCache[ i ].ulIPAddress = 0xAABBCCDD; in test_vARPRefreshCacheEntry_MACAndIPWillMatch()
1998 xARPCache[ i ].ucAge = 255; in test_vARPRefreshCacheEntry_MACAndIPWillMatch()
1999 xARPCache[ i ].ucValid = pdFALSE; in test_vARPRefreshCacheEntry_MACAndIPWillMatch()
2000 memset( xARPCache[ i ].xMACAddress.ucBytes, 0x34, sizeof( xMACAddress.ucBytes ) ); in test_vARPRefreshCacheEntry_MACAndIPWillMatch()
2004 xARPCache[ xUseEntry ].ulIPAddress = 0xAABBCCEE; in test_vARPRefreshCacheEntry_MACAndIPWillMatch()
2006 memset( xARPCache[ xUseEntry ].xMACAddress.ucBytes, 0x11, sizeof( xMACAddress.ucBytes ) ); in test_vARPRefreshCacheEntry_MACAndIPWillMatch()
2017 TEST_ASSERT_EQUAL_MESSAGE( ipconfigMAX_ARP_AGE, xARPCache[ xUseEntry ].ucAge, "Test 4" ); in test_vARPRefreshCacheEntry_MACAndIPWillMatch()
2018 TEST_ASSERT_EQUAL( ( uint8_t ) pdTRUE, xARPCache[ xUseEntry ].ucValid ); in test_vARPRefreshCacheEntry_MACAndIPWillMatch()
2019 …TEST_ASSERT_EQUAL_MEMORY( xMACAddress.ucBytes, xARPCache[ xUseEntry ].xMACAddress.ucBytes, sizeof(… in test_vARPRefreshCacheEntry_MACAndIPWillMatch()
2035 xARPCache[ i ].ulIPAddress = 0xAABBCCDD; in test_vARPRefreshCacheEntry_IPOnADifferentSubnet()
2036 xARPCache[ i ].ucAge = 255; in test_vARPRefreshCacheEntry_IPOnADifferentSubnet()
2037 xARPCache[ i ].ucValid = pdFALSE; in test_vARPRefreshCacheEntry_IPOnADifferentSubnet()
2038 memset( xARPCache[ i ].xMACAddress.ucBytes, 0x34, sizeof( xMACAddress.ucBytes ) ); in test_vARPRefreshCacheEntry_IPOnADifferentSubnet()
2042 xARPCache[ xUseEntry ].ulIPAddress = 0xAABBCCEE; in test_vARPRefreshCacheEntry_IPOnADifferentSubnet()
2044 memset( xARPCache[ xUseEntry ].xMACAddress.ucBytes, 0x11, sizeof( xMACAddress.ucBytes ) ); in test_vARPRefreshCacheEntry_IPOnADifferentSubnet()
2059 TEST_ASSERT_EQUAL_MESSAGE( ipconfigMAX_ARP_AGE, xARPCache[ 0 ].ucAge, "Test 5" ); in test_vARPRefreshCacheEntry_IPOnADifferentSubnet()
2060 TEST_ASSERT_EQUAL( ( uint8_t ) pdTRUE, xARPCache[ 0 ].ucValid ); in test_vARPRefreshCacheEntry_IPOnADifferentSubnet()
2061 …TEST_ASSERT_EQUAL_MEMORY( xMACAddress.ucBytes, xARPCache[ 0 ].xMACAddress.ucBytes, sizeof( xMACAdd… in test_vARPRefreshCacheEntry_IPOnADifferentSubnet()
2076 xARPCache[ i ].ulIPAddress = 0xAABBCCDD; in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations()
2077 xARPCache[ i ].ucAge = i + 1; in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations()
2078 xARPCache[ i ].ucValid = pdFALSE; in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations()
2079 memset( xARPCache[ i ].xMACAddress.ucBytes, 0x34, sizeof( xMACAddress.ucBytes ) ); in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations()
2085 xARPCache[ xUseEntry ].ulIPAddress = 0xAABBCCEE; in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations()
2089 memset( xARPCache[ xUseEntry + 1 ].xMACAddress.ucBytes, 0x22, sizeof( xMACAddress.ucBytes ) ); in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations()
2099 TEST_ASSERT_EQUAL( xARPCache[ xUseEntry + 1 ].ulIPAddress, ulIPAddress ); in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations()
2100 TEST_ASSERT_EQUAL_MESSAGE( ipconfigMAX_ARP_AGE, xARPCache[ xUseEntry + 1 ].ucAge, "Test 9" ); in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations()
2101 TEST_ASSERT_EQUAL( ( uint8_t ) pdTRUE, xARPCache[ xUseEntry + 1 ].ucValid ); in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations()
2106 TEST_ASSERT_EQUAL_MEMORY( MemoryCompare, &xARPCache[ xUseEntry ], sizeof( ARPCacheRow_t ) ); in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations()
2121 xARPCache[ i ].ulIPAddress = 0xAABBCCDD; in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations1()
2122 xARPCache[ i ].ucAge = i + 1; in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations1()
2123 xARPCache[ i ].ucValid = pdFALSE; in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations1()
2124 memset( xARPCache[ i ].xMACAddress.ucBytes, 0x34, sizeof( xMACAddress.ucBytes ) ); in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations1()
2130 xARPCache[ xUseEntry ].ulIPAddress = 0xAABBCCEA; in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations1()
2134 memset( xARPCache[ xUseEntry + 1 ].xMACAddress.ucBytes, 0x22, sizeof( xMACAddress.ucBytes ) ); in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations1()
2144 TEST_ASSERT_EQUAL( xARPCache[ xUseEntry + 1 ].ulIPAddress, ulIPAddress ); in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations1()
2145 TEST_ASSERT_EQUAL_MESSAGE( ipconfigMAX_ARP_AGE, xARPCache[ xUseEntry + 1 ].ucAge, "Test 9" ); in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations1()
2146 TEST_ASSERT_EQUAL( ( uint8_t ) pdTRUE, xARPCache[ xUseEntry + 1 ].ucValid ); in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations1()
2174 xARPCache[ i ].ulIPAddress = 0xAABBCCDD; in test_eARPGetCacheEntryByMac_NullInterface()
2175 memset( xARPCache[ i ].xMACAddress.ucBytes, 0x11, sizeof( xMACAddress.ucBytes ) ); in test_eARPGetCacheEntryByMac_NullInterface()
2196 xARPCache[ i ].ulIPAddress = 0xAABBCCDD; in test_eARPGetCacheEntryByMac_NoMatchingEntries()
2197 memset( xARPCache[ i ].xMACAddress.ucBytes, 0x11, sizeof( xMACAddress.ucBytes ) ); in test_eARPGetCacheEntryByMac_NoMatchingEntries()
2218 xARPCache[ i ].ulIPAddress = 0xAABBCCDD; in test_eARPGetCacheEntryByMac_OneMatchingEntry()
2219 memset( xARPCache[ i ].xMACAddress.ucBytes, 0x11, sizeof( xMACAddress.ucBytes ) ); in test_eARPGetCacheEntryByMac_OneMatchingEntry()
2223 memset( xARPCache[ ulEntryToTest ].xMACAddress.ucBytes, 0x22, sizeof( xMACAddress.ucBytes ) ); in test_eARPGetCacheEntryByMac_OneMatchingEntry()
2224 xARPCache[ ulEntryToTest ].ulIPAddress = 0xAABBCCEE; in test_eARPGetCacheEntryByMac_OneMatchingEntry()
2227 TEST_ASSERT_EQUAL( xARPCache[ ulEntryToTest ].ulIPAddress, ulIPAddress ); in test_eARPGetCacheEntryByMac_OneMatchingEntry()
2231 TEST_ASSERT_EQUAL( xARPCache[ ulEntryToTest ].ulIPAddress, ulIPAddress ); in test_eARPGetCacheEntryByMac_OneMatchingEntry()
2233 xARPCache[ ulEntryToTest ].pxEndPoint = NULL; in test_eARPGetCacheEntryByMac_OneMatchingEntry()
2236 TEST_ASSERT_EQUAL( xARPCache[ ulEntryToTest ].ulIPAddress, ulIPAddress ); in test_eARPGetCacheEntryByMac_OneMatchingEntry()
2364 xARPCache[ 1 ].ulIPAddress = xNetworkAddressing.ulGatewayAddress; in test_eARPGetCacheEntry_MatchingInvalidEntry()
2366 xARPCache[ 1 ].ucValid = pdFALSE; in test_eARPGetCacheEntry_MatchingInvalidEntry()
2392 xARPCache[ 1 ].ulIPAddress = xNetworkAddressing.ulGatewayAddress; in test_eARPGetCacheEntry_MatchingValidEntry()
2394 xARPCache[ 1 ].ucValid = pdTRUE; in test_eARPGetCacheEntry_MatchingValidEntry()
2403 …TEST_ASSERT_EQUAL_MEMORY_MESSAGE( &xARPCache[ 1 ].xMACAddress, &xMACAddress, sizeof( xMACAddress )… in test_eARPGetCacheEntry_MatchingValidEntry()
2419 xARPCache[ i ].ucValid = ( uint8_t ) pdFALSE; in test_eARPGetCacheEntry_GatewayAddressZero()
2472 xARPCache[ i ].ulIPAddress = 0; in test_eARPGetCacheEntry_NoCacheHit()
2473 xARPCache[ i ].ucValid = ( uint8_t ) pdTRUE; in test_eARPGetCacheEntry_NoCacheHit()
2505 xARPCache[ i ].ucAge = 0; in test_vARPAgeCache()
2533 xARPCache[ ucEntryToCheck ].ucAge = 1; in test_vARPAgeCache()
2534 xARPCache[ ucEntryToCheck ].ucValid = pdFALSE; in test_vARPAgeCache()
2536 xARPCache[ ucEntryToCheck ].ulIPAddress = 0xAAAAAAAA; in test_vARPAgeCache()
2562 xARPCache[ ucEntryToCheck ].ucAge = 1; in test_vARPAgeCache()
2563 xARPCache[ ucEntryToCheck ].ucValid = pdTRUE; in test_vARPAgeCache()
2565 xARPCache[ ucEntryToCheck ].ulIPAddress = 0xAAAAAAAA; in test_vARPAgeCache()
2583 xARPCache[ ucEntryToCheck ].ucAge = 100; in test_vARPAgeCache()
2584 xARPCache[ ucEntryToCheck ].ucValid = pdTRUE; in test_vARPAgeCache()
2586 xARPCache[ ucEntryToCheck ].ulIPAddress = 0xAAAAAAAA; in test_vARPAgeCache()
2605 xARPCache[ ucEntryToCheck ].ucAge = 100; in test_vARPAgeCache()
2606 xARPCache[ ucEntryToCheck ].ucValid = pdTRUE; in test_vARPAgeCache()
2608 xARPCache[ ucEntryToCheck ].ulIPAddress = 0xAAAAAAAA; in test_vARPAgeCache()
2618 xARPCache[ ucEntryToCheck ].ucAge = 0; in test_vARPAgeCache()
2619 xARPCache[ ucEntryToCheck ].ucValid = pdTRUE; in test_vARPAgeCache()
2621 xARPCache[ ucEntryToCheck ].ulIPAddress = 0xAAAAAAAA; in test_vARPAgeCache()
2631 xARPCache[ ucEntryToCheck ].ucAge = 0; in test_vARPAgeCache()
2632 xARPCache[ ucEntryToCheck ].ucValid = pdTRUE; in test_vARPAgeCache()
2634 xARPCache[ ucEntryToCheck ].ulIPAddress = 0xAAAAAAAA; in test_vARPAgeCache()
2839 xARPCache[ i ].ulIPAddress = 0xAAAAAAAA; in test_xARPWaitResolution_GNWFailsNoTimeout()
2890 xARPCache[ i ].ulIPAddress = 0xAAAAAAAA; in test_xARPWaitResolution()
2940 xARPCache[ i ].ulIPAddress = 0xAAAAAAAA; in test_xARPWaitResolution()
3016 uint8_t ucArray[ sizeof( xARPCache ) ]; in test_FreeRTOS_ClearARP()
3018 memset( ucArray, 0, sizeof( xARPCache ) ); in test_FreeRTOS_ClearARP()
3021 TEST_ASSERT_EQUAL_MEMORY( ucArray, xARPCache, sizeof( xARPCache ) ); in test_FreeRTOS_ClearARP()
3027 uint8_t ucArray[ sizeof( xARPCache ) ]; in test_FreeRTOS_ClearARP_validEndPoint_Match()
3031 xARPCache[ 0 ].pxEndPoint = &xEndPoint; in test_FreeRTOS_ClearARP_validEndPoint_Match()
3032 memset( ucArray, 0, sizeof( xARPCache ) ); in test_FreeRTOS_ClearARP_validEndPoint_Match()
3035 TEST_ASSERT_EQUAL_MEMORY( ucArray, &xARPCache[ 0 ], sizeof( ARPCacheRow_t ) ); in test_FreeRTOS_ClearARP_validEndPoint_Match()
3041 uint8_t ucArray[ sizeof( xARPCache ) ]; in test_FreeRTOS_ClearARP_validEndPoint_NoMatch()
3043 memset( ucArray, 0, sizeof( xARPCache ) ); in test_FreeRTOS_ClearARP_validEndPoint_NoMatch()
3046 TEST_ASSERT_EQUAL_MEMORY( ucArray, xARPCache, sizeof( xARPCache ) ); in test_FreeRTOS_ClearARP_validEndPoint_NoMatch()
3056 xARPCache[ x ].ulIPAddress = 0xAA; in test_FreeRTOS_PrintARPCache()
3058 xARPCache[ x ].ucAge = x; in test_FreeRTOS_PrintARPCache()
3067 xARPCache[ x ].ulIPAddress = 0x00; in test_FreeRTOS_PrintARPCache()
3069 xARPCache[ x ].ucAge = x; in test_FreeRTOS_PrintARPCache()
3093 memset( xARPCache, 0, sizeof( xARPCache ) ); in test_vARPRefreshCacheEntryAge_MatchIPMaychMAC()
3095 xARPCache[ xHitCacheIndex ].ulIPAddress = ulTargetIPAddress; in test_vARPRefreshCacheEntryAge_MatchIPMaychMAC()
3096 …memcpy( xARPCache[ xHitCacheIndex ].xMACAddress.ucBytes, xTargetMACAddress.ucBytes, sizeof( MACAdd… in test_vARPRefreshCacheEntryAge_MatchIPMaychMAC()
3097 xARPCache[ xHitCacheIndex ].ucAge = ipconfigMAX_ARP_AGE - 1U; in test_vARPRefreshCacheEntryAge_MatchIPMaychMAC()
3101 TEST_ASSERT_EQUAL_UINT16( ipconfigMAX_ARP_AGE, xARPCache[ xHitCacheIndex ].ucAge ); in test_vARPRefreshCacheEntryAge_MatchIPMaychMAC()
3113 memset( xARPCache, 0, sizeof( xARPCache ) ); in test_vARPRefreshCacheEntryAge_NotFound()
3115 xARPCache[ 0 ].ulIPAddress = ulTargetIPAddress; in test_vARPRefreshCacheEntryAge_NotFound()
3117 memcpy( xARPCache[ 1 ].xMACAddress.ucBytes, xTargetMACAddress.ucBytes, sizeof( MACAddress_t ) ); in test_vARPRefreshCacheEntryAge_NotFound()
3123 TEST_ASSERT_EQUAL_UINT16( 0, xARPCache[ xCacheIndex ].ucAge ); in test_vARPRefreshCacheEntryAge_NotFound()