Lines Matching refs:xMACAddress
952 const MACAddress_t xMACAddress = { 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA }; in test_ulARPRemoveCacheEntryByMac_NoMatch() local
965 memset( xARPCache[ i ].xMACAddress.ucBytes, 0x11, sizeof( xMACAddress.ucBytes ) ); in test_ulARPRemoveCacheEntryByMac_NoMatch()
968 ulResult = ulARPRemoveCacheEntryByMac( &xMACAddress ); in test_ulARPRemoveCacheEntryByMac_NoMatch()
976 const MACAddress_t xMACAddress = { 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA }; in test_ulARPRemoveCacheEntryByMac_OneMatchingEntry() local
986 memset( xARPCache[ i ].xMACAddress.ucBytes, 0x11, sizeof( xMACAddress.ucBytes ) ); in test_ulARPRemoveCacheEntryByMac_OneMatchingEntry()
991 memset( xARPCache[ xEntryToCheck ].xMACAddress.ucBytes, 0xAA, sizeof( xMACAddress.ucBytes ) ); in test_ulARPRemoveCacheEntryByMac_OneMatchingEntry()
993 ulResult = ulARPRemoveCacheEntryByMac( &xMACAddress ); in test_ulARPRemoveCacheEntryByMac_OneMatchingEntry()
1000 MACAddress_t xMACAddress; in test_vARPRefreshCacheEntry_NULLMAC_NoMatchingEntry() local
1024 MACAddress_t xMACAddress; in test_vARPRefreshCacheEntry_NULLMAC_MatchingEntry() local
1051 MACAddress_t xMACAddress; in test_vARPRefreshCacheEntry_MACWontMatch_IPWillMatch() local
1062 memset( xARPCache[ i ].xMACAddress.ucBytes, 0x34, sizeof( xMACAddress.ucBytes ) ); in test_vARPRefreshCacheEntry_MACWontMatch_IPWillMatch()
1069 memset( xMACAddress.ucBytes, 0x11, ipMAC_ADDRESS_LENGTH_BYTES ); in test_vARPRefreshCacheEntry_MACWontMatch_IPWillMatch()
1071 vARPRefreshCacheEntry( &xMACAddress, ulIPAddress ); in test_vARPRefreshCacheEntry_MACWontMatch_IPWillMatch()
1076 …TEST_ASSERT_EQUAL_MEMORY( xMACAddress.ucBytes, xARPCache[ xUseEntry ].xMACAddress.ucBytes, sizeof(… in test_vARPRefreshCacheEntry_MACWontMatch_IPWillMatch()
1082 MACAddress_t xMACAddress; in test_vARPRefreshCacheEntry_MACAndIPWillMatch() local
1093 memset( xARPCache[ i ].xMACAddress.ucBytes, 0x34, sizeof( xMACAddress.ucBytes ) ); in test_vARPRefreshCacheEntry_MACAndIPWillMatch()
1099 memset( xARPCache[ xUseEntry ].xMACAddress.ucBytes, 0x11, sizeof( xMACAddress.ucBytes ) ); in test_vARPRefreshCacheEntry_MACAndIPWillMatch()
1102 memset( xMACAddress.ucBytes, 0x11, ipMAC_ADDRESS_LENGTH_BYTES ); in test_vARPRefreshCacheEntry_MACAndIPWillMatch()
1104 vARPRefreshCacheEntry( &xMACAddress, ulIPAddress ); in test_vARPRefreshCacheEntry_MACAndIPWillMatch()
1109 …TEST_ASSERT_EQUAL_MEMORY( xMACAddress.ucBytes, xARPCache[ xUseEntry ].xMACAddress.ucBytes, sizeof(… in test_vARPRefreshCacheEntry_MACAndIPWillMatch()
1116 MACAddress_t xMACAddress; in test_vARPRefreshCacheEntry_IPOnADifferentSubnet() local
1127 memset( xARPCache[ i ].xMACAddress.ucBytes, 0x34, sizeof( xMACAddress.ucBytes ) ); in test_vARPRefreshCacheEntry_IPOnADifferentSubnet()
1133 memset( xARPCache[ xUseEntry ].xMACAddress.ucBytes, 0x11, sizeof( xMACAddress.ucBytes ) ); in test_vARPRefreshCacheEntry_IPOnADifferentSubnet()
1139 memset( xMACAddress.ucBytes, 0x11, ipMAC_ADDRESS_LENGTH_BYTES ); in test_vARPRefreshCacheEntry_IPOnADifferentSubnet()
1141 vARPRefreshCacheEntry( &xMACAddress, ulIPAddress ); in test_vARPRefreshCacheEntry_IPOnADifferentSubnet()
1146 …TEST_ASSERT_EQUAL_MEMORY( xMACAddress.ucBytes, xARPCache[ 0 ].xMACAddress.ucBytes, sizeof( xMACAdd… in test_vARPRefreshCacheEntry_IPOnADifferentSubnet()
1152 MACAddress_t xMACAddress; in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations() local
1163 memset( xARPCache[ i ].xMACAddress.ucBytes, 0x34, sizeof( xMACAddress.ucBytes ) ); in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations()
1173 memset( xARPCache[ xUseEntry + 1 ].xMACAddress.ucBytes, 0x22, sizeof( xMACAddress.ucBytes ) ); in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations()
1174 memset( xMACAddress.ucBytes, 0x22, ipMAC_ADDRESS_LENGTH_BYTES ); in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations()
1177 vARPRefreshCacheEntry( &xMACAddress, ulIPAddress ); in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations()
1192 MACAddress_t xMACAddress; in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations1() local
1203 memset( xARPCache[ i ].xMACAddress.ucBytes, 0x34, sizeof( xMACAddress.ucBytes ) ); in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations1()
1213 memset( xARPCache[ xUseEntry + 1 ].xMACAddress.ucBytes, 0x22, sizeof( xMACAddress.ucBytes ) ); in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations1()
1214 memset( xMACAddress.ucBytes, 0x22, ipMAC_ADDRESS_LENGTH_BYTES ); in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations1()
1217 vARPRefreshCacheEntry( &xMACAddress, ulIPAddress ); in test_vARPRefreshCacheEntry_IPAndMACInDifferentLocations1()
1229 MACAddress_t xMACAddress = { 0x22, 0x22, 0x22, 0x22, 0x22, 0x22 }; in test_eARPGetCacheEntryByMac_catchAssert() local
1234 catch_assert( eARPGetCacheEntryByMac( &xMACAddress, NULL ) ); in test_eARPGetCacheEntryByMac_catchAssert()
1241 MACAddress_t xMACAddress = { 0x22, 0x22, 0x22, 0x22, 0x22, 0x22 }; in test_eARPGetCacheEntryByMac_NoMatchingEntries() local
1249 memset( xARPCache[ i ].xMACAddress.ucBytes, 0x11, sizeof( xMACAddress.ucBytes ) ); in test_eARPGetCacheEntryByMac_NoMatchingEntries()
1252 eResult = eARPGetCacheEntryByMac( &xMACAddress, &ulIPAddress ); in test_eARPGetCacheEntryByMac_NoMatchingEntries()
1262 MACAddress_t xMACAddress = { 0x22, 0x22, 0x22, 0x22, 0x22, 0x22 }; in test_eARPGetCacheEntryByMac_OneMatchingEntry() local
1270 memset( xARPCache[ i ].xMACAddress.ucBytes, 0x11, sizeof( xMACAddress.ucBytes ) ); in test_eARPGetCacheEntryByMac_OneMatchingEntry()
1274 memset( xARPCache[ ulEntryToTest ].xMACAddress.ucBytes, 0x22, sizeof( xMACAddress.ucBytes ) ); in test_eARPGetCacheEntryByMac_OneMatchingEntry()
1276 eResult = eARPGetCacheEntryByMac( &xMACAddress, &ulIPAddress ); in test_eARPGetCacheEntryByMac_OneMatchingEntry()
1285 MACAddress_t xMACAddress; in test_eARPGetCacheEntry_CatchAssert() local
1287 catch_assert( eARPGetCacheEntry( NULL, &xMACAddress ) ); in test_eARPGetCacheEntry_CatchAssert()
1294 MACAddress_t xMACAddress; in test_eARPGetCacheEntry_IPMatchesBroadcastAddr() local
1302 eResult = eARPGetCacheEntry( &ulIPAddress, &xMACAddress ); in test_eARPGetCacheEntry_IPMatchesBroadcastAddr()
1304 …TEST_ASSERT_EQUAL_MEMORY_MESSAGE( &xBroadcastMACAddress, &xMACAddress, sizeof( xMACAddress ), "Tes… in test_eARPGetCacheEntry_IPMatchesBroadcastAddr()
1311 MACAddress_t xMACAddress; in test_eARPGetCacheEntry_IPMatchesOtherBroadcastAddr() local
1319 eResult = eARPGetCacheEntry( &ulIPAddress, &xMACAddress ); in test_eARPGetCacheEntry_IPMatchesOtherBroadcastAddr()
1321 …TEST_ASSERT_EQUAL_MEMORY_MESSAGE( &xBroadcastMACAddress, &xMACAddress, sizeof( xMACAddress ), "Tes… in test_eARPGetCacheEntry_IPMatchesOtherBroadcastAddr()
1328 MACAddress_t xMACAddress; in test_eARPGetCacheEntry_LocalIPIsZero() local
1337 eResult = eARPGetCacheEntry( &ulIPAddress, &xMACAddress ); in test_eARPGetCacheEntry_LocalIPIsZero()
1345 MACAddress_t xMACAddress; in test_eARPGetCacheEntry_LocalIPMatchesReceivedIP() local
1354 eResult = eARPGetCacheEntry( &ulIPAddress, &xMACAddress ); in test_eARPGetCacheEntry_LocalIPMatchesReceivedIP()
1362 MACAddress_t xMACAddress; in test_eARPGetCacheEntry_MatchingInvalidEntry() local
1376 eResult = eARPGetCacheEntry( &ulIPAddress, &xMACAddress ); in test_eARPGetCacheEntry_MatchingInvalidEntry()
1384 MACAddress_t xMACAddress; in test_eARPGetCacheEntry_MatchingValidEntry() local
1398 eResult = eARPGetCacheEntry( &ulIPAddress, &xMACAddress ); in test_eARPGetCacheEntry_MatchingValidEntry()
1400 …TEST_ASSERT_EQUAL_MEMORY_MESSAGE( &xARPCache[ 1 ].xMACAddress, &xMACAddress, sizeof( xMACAddress )… in test_eARPGetCacheEntry_MatchingValidEntry()
1407 MACAddress_t xMACAddress; in test_eARPGetCacheEntry_GatewayAddressZero() local
1422 eResult = eARPGetCacheEntry( &ulIPAddress, &xMACAddress ); in test_eARPGetCacheEntry_GatewayAddressZero()
1431 MACAddress_t xMACAddress; in test_eARPGetCacheEntry_AddressNotOnLocalAddress() local
1443 eResult = eARPGetCacheEntry( &ulIPAddress, &xMACAddress ); in test_eARPGetCacheEntry_AddressNotOnLocalAddress()
1451 MACAddress_t xMACAddress; in test_eARPGetCacheEntry_NoCacheHit() local
1472 eResult = eARPGetCacheEntry( &ulIPAddress, &xMACAddress ); in test_eARPGetCacheEntry_NoCacheHit()