Lines Matching refs:pxIPHeader
1837 IPHeader_t * pxIPHeader; in test_prvAllowIPPacket_FragmentedPacket() local
1844 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvAllowIPPacket_FragmentedPacket()
1846 pxIPHeader->usFragmentOffset = ipFRAGMENT_OFFSET_BIT_MASK; in test_prvAllowIPPacket_FragmentedPacket()
1860 IPHeader_t * pxIPHeader; in test_prvAllowIPPacket_FragmentedPacket1() local
1867 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvAllowIPPacket_FragmentedPacket1()
1869 pxIPHeader->usFragmentOffset = ipFRAGMENT_FLAGS_MORE_FRAGMENTS; in test_prvAllowIPPacket_FragmentedPacket1()
1883 IPHeader_t * pxIPHeader; in test_prvAllowIPPacket_IncorrectLength() local
1890 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvAllowIPPacket_IncorrectLength()
1892 pxIPHeader->ucVersionHeaderLength = 0xFF; in test_prvAllowIPPacket_IncorrectLength()
1906 IPHeader_t * pxIPHeader; in test_prvAllowIPPacket_NotMatchingIP() local
1913 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvAllowIPPacket_NotMatchingIP()
1917 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacket_NotMatchingIP()
1918 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER + 1; in test_prvAllowIPPacket_NotMatchingIP()
1932 IPHeader_t * pxIPHeader; in test_prvAllowIPPacket_SourceIPBrdCast_DestIPMatch() local
1939 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvAllowIPPacket_SourceIPBrdCast_DestIPMatch()
1943 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacket_SourceIPBrdCast_DestIPMatch()
1944 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER; in test_prvAllowIPPacket_SourceIPBrdCast_DestIPMatch()
1946 pxIPHeader->ulSourceIPAddress = 0xFFFFFFFF; in test_prvAllowIPPacket_SourceIPBrdCast_DestIPMatch()
1960 IPHeader_t * pxIPHeader; in test_prvAllowIPPacket_SourceIPBrdCast_DestIPBrdCast() local
1967 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvAllowIPPacket_SourceIPBrdCast_DestIPBrdCast()
1971 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacket_SourceIPBrdCast_DestIPBrdCast()
1972 pxIPHeader->ulDestinationIPAddress = 0xFFFFFFFF; in test_prvAllowIPPacket_SourceIPBrdCast_DestIPBrdCast()
1974 pxIPHeader->ulSourceIPAddress = 0xFFFFFFFF; in test_prvAllowIPPacket_SourceIPBrdCast_DestIPBrdCast()
1988 IPHeader_t * pxIPHeader; in test_prvAllowIPPacket_SourceIPBrdCast_DestIPBrdcast1() local
1995 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvAllowIPPacket_SourceIPBrdCast_DestIPBrdcast1()
1999 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacket_SourceIPBrdCast_DestIPBrdcast1()
2000 pxIPHeader->ulDestinationIPAddress = xNetworkAddressing.ulBroadcastAddress; in test_prvAllowIPPacket_SourceIPBrdCast_DestIPBrdcast1()
2002 pxIPHeader->ulSourceIPAddress = 0xFFFFFFFF; in test_prvAllowIPPacket_SourceIPBrdCast_DestIPBrdcast1()
2016 IPHeader_t * pxIPHeader; in test_prvAllowIPPacket_SourceIPBrdCast_DestIPLLMNR() local
2023 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvAllowIPPacket_SourceIPBrdCast_DestIPLLMNR()
2027 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacket_SourceIPBrdCast_DestIPLLMNR()
2028 pxIPHeader->ulDestinationIPAddress = ipLLMNR_IP_ADDR; in test_prvAllowIPPacket_SourceIPBrdCast_DestIPLLMNR()
2030 pxIPHeader->ulSourceIPAddress = 0xFFFFFFFF; in test_prvAllowIPPacket_SourceIPBrdCast_DestIPLLMNR()
2044 IPHeader_t * pxIPHeader; in test_prvAllowIPPacket_SourceIPBrdCast_NoLocalIP() local
2051 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvAllowIPPacket_SourceIPBrdCast_NoLocalIP()
2055 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacket_SourceIPBrdCast_NoLocalIP()
2056 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER + 1; in test_prvAllowIPPacket_SourceIPBrdCast_NoLocalIP()
2058 pxIPHeader->ulSourceIPAddress = 0xFFFFFFFF; in test_prvAllowIPPacket_SourceIPBrdCast_NoLocalIP()
2072 IPHeader_t * pxIPHeader; in test_prvAllowIPPacket_DestMACBrdCast_DestIPUnicast() local
2079 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvAllowIPPacket_DestMACBrdCast_DestIPUnicast()
2083 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacket_DestMACBrdCast_DestIPUnicast()
2085 pxIPHeader->ulDestinationIPAddress = 0x00; in test_prvAllowIPPacket_DestMACBrdCast_DestIPUnicast()
2101 IPHeader_t * pxIPHeader; in test_prvAllowIPPacket_SrcMACBrdCast() local
2108 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvAllowIPPacket_SrcMACBrdCast()
2112 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacket_SrcMACBrdCast()
2114 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER; in test_prvAllowIPPacket_SrcMACBrdCast()
2130 IPHeader_t * pxIPHeader; in test_prvAllowIPPacket_SrcMACBrdCast2() local
2137 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvAllowIPPacket_SrcMACBrdCast2()
2141 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacket_SrcMACBrdCast2()
2143 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER; in test_prvAllowIPPacket_SrcMACBrdCast2()
2160 IPHeader_t * pxIPHeader; in test_prvAllowIPPacket_SrcIPAddrIsMulticast() local
2167 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvAllowIPPacket_SrcIPAddrIsMulticast()
2171 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacket_SrcIPAddrIsMulticast()
2173 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER; in test_prvAllowIPPacket_SrcIPAddrIsMulticast()
2177 pxIPHeader->ulSourceIPAddress = FreeRTOS_htonl( 0xE0000000 + 1 ); in test_prvAllowIPPacket_SrcIPAddrIsMulticast()
2191 IPHeader_t * pxIPHeader; in test_prvAllowIPPacket_IncorrectChecksum() local
2198 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvAllowIPPacket_IncorrectChecksum()
2202 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacket_IncorrectChecksum()
2204 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER; in test_prvAllowIPPacket_IncorrectChecksum()
2208 pxIPHeader->ulSourceIPAddress = 0xC0C00101; in test_prvAllowIPPacket_IncorrectChecksum()
2210 …usGenerateChecksum_ExpectAndReturn( 0U, ( uint8_t * ) &( pxIPHeader->ucVersionHeaderLength ), ( si… in test_prvAllowIPPacket_IncorrectChecksum()
2224 IPHeader_t * pxIPHeader; in test_prvAllowIPPacket_IncorrectProtocolChecksum() local
2231 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvAllowIPPacket_IncorrectProtocolChecksum()
2235 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacket_IncorrectProtocolChecksum()
2237 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER; in test_prvAllowIPPacket_IncorrectProtocolChecksum()
2241 pxIPHeader->ulSourceIPAddress = 0xC0C00101; in test_prvAllowIPPacket_IncorrectProtocolChecksum()
2243 …usGenerateChecksum_ExpectAndReturn( 0U, ( uint8_t * ) &( pxIPHeader->ucVersionHeaderLength ), ( si… in test_prvAllowIPPacket_IncorrectProtocolChecksum()
2259 IPHeader_t * pxIPHeader; in test_prvAllowIPPacket_HappyPath() local
2266 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvAllowIPPacket_HappyPath()
2270 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvAllowIPPacket_HappyPath()
2272 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER; in test_prvAllowIPPacket_HappyPath()
2276 pxIPHeader->ulSourceIPAddress = 0xC0C00101; in test_prvAllowIPPacket_HappyPath()
2278 …usGenerateChecksum_ExpectAndReturn( 0U, ( uint8_t * ) &( pxIPHeader->ucVersionHeaderLength ), ( si… in test_prvAllowIPPacket_HappyPath()
2293 IPHeader_t * pxIPHeader; in test_prvProcessIPPacket_HeaderLengthSmaller() local
2300 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvProcessIPPacket_HeaderLengthSmaller()
2302 pxIPHeader->ucVersionHeaderLength = 0xF0; in test_prvProcessIPPacket_HeaderLengthSmaller()
2315 IPHeader_t * pxIPHeader; in test_prvProcessIPPacket_HeaderLengthGreater() local
2322 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvProcessIPPacket_HeaderLengthGreater()
2324 pxIPHeader->ucVersionHeaderLength = 0xFF; in test_prvProcessIPPacket_HeaderLengthGreater()
2341 IPHeader_t * pxIPHeader; in test_prvProcessIPPacket_ValidHeaderButNoData() local
2348 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvProcessIPPacket_ValidHeaderButNoData()
2350 pxIPHeader->ucVersionHeaderLength = 0xF6; in test_prvProcessIPPacket_ValidHeaderButNoData()
2368 IPHeader_t * pxIPHeader; in test_prvProcessIPPacket_ValidHeader_ARPResolutionReqd() local
2375 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvProcessIPPacket_ValidHeader_ARPResolutionReqd()
2379 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvProcessIPPacket_ValidHeader_ARPResolutionReqd()
2381 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER; in test_prvProcessIPPacket_ValidHeader_ARPResolutionReqd()
2385 pxIPHeader->ulSourceIPAddress = 0xC0C00101; in test_prvProcessIPPacket_ValidHeader_ARPResolutionReqd()
2405 IPHeader_t * pxIPHeader; in test_prvProcessIPPacket_ARPResolutionNotReqd_InvalidProt() local
2414 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvProcessIPPacket_ARPResolutionNotReqd_InvalidProt()
2418 pxIPHeader->ucVersionHeaderLength = 0x46; in test_prvProcessIPPacket_ARPResolutionNotReqd_InvalidProt()
2420 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER; in test_prvProcessIPPacket_ARPResolutionNotReqd_InvalidProt()
2424 pxIPHeader->ulSourceIPAddress = 0xC0C00101; in test_prvProcessIPPacket_ARPResolutionNotReqd_InvalidProt()
2446 IPHeader_t * pxIPHeader; in test_prvProcessIPPacket_ARPResolutionNotReqd_ICMP() local
2455 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvProcessIPPacket_ARPResolutionNotReqd_ICMP()
2459 pxIPHeader->ucVersionHeaderLength = 0x46; in test_prvProcessIPPacket_ARPResolutionNotReqd_ICMP()
2461 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER; in test_prvProcessIPPacket_ARPResolutionNotReqd_ICMP()
2465 pxIPHeader->ulSourceIPAddress = 0xC0C00101; in test_prvProcessIPPacket_ARPResolutionNotReqd_ICMP()
2492 IPHeader_t * pxIPHeader; in test_prvProcessIPPacket_ARPResolutionNotReqd_ICMP2() local
2501 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvProcessIPPacket_ARPResolutionNotReqd_ICMP2()
2505 pxIPHeader->ucVersionHeaderLength = 0x46; in test_prvProcessIPPacket_ARPResolutionNotReqd_ICMP2()
2508 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER + 1; in test_prvProcessIPPacket_ARPResolutionNotReqd_ICMP2()
2512 pxIPHeader->ulSourceIPAddress = 0xC0C00101; in test_prvProcessIPPacket_ARPResolutionNotReqd_ICMP2()
2537 IPHeader_t * pxIPHeader; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP() local
2546 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP()
2550 pxIPHeader->ucVersionHeaderLength = 0x46; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP()
2553 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER + 1; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP()
2557 pxIPHeader->ulSourceIPAddress = 0xC0C00101; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP()
2578 IPHeader_t * pxIPHeader; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_DataLengthCorrect() local
2587 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_DataLengthCorrect()
2591 pxIPHeader->ucVersionHeaderLength = 0x46; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_DataLengthCorrect()
2594 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER + 1; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_DataLengthCorrect()
2598 pxIPHeader->ulSourceIPAddress = 0xC0C00101; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_DataLengthCorrect()
2619 IPHeader_t * pxIPHeader; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect() local
2631 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect()
2635 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect()
2637 pxIPHeader->usLength = FreeRTOS_htons( ipconfigTCP_MSS ); in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect()
2640 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect()
2649 pxIPHeader->ulSourceIPAddress = 0xC0C00101; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect()
2667 IPHeader_t * pxIPHeader; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect2() local
2679 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect2()
2683 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect2()
2685 pxIPHeader->usLength = FreeRTOS_htons( ipconfigTCP_MSS ); in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect2()
2688 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect2()
2697 pxIPHeader->ulSourceIPAddress = 0xC0C00101; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect2()
2716 IPHeader_t * pxIPHeader; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect3() local
2728 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect3()
2732 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect3()
2734 pxIPHeader->usLength = FreeRTOS_htons( ipconfigTCP_MSS ); in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect3()
2737 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect3()
2746 pxIPHeader->ulSourceIPAddress = 0xC0C00101; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect3()
2765 IPHeader_t * pxIPHeader; in test_prvProcessIPPacket_ARPResolutionReqd_UDP() local
2778 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvProcessIPPacket_ARPResolutionReqd_UDP()
2782 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvProcessIPPacket_ARPResolutionReqd_UDP()
2784 pxIPHeader->usLength = FreeRTOS_htons( ipconfigTCP_MSS ); in test_prvProcessIPPacket_ARPResolutionReqd_UDP()
2787 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER; in test_prvProcessIPPacket_ARPResolutionReqd_UDP()
2796 pxIPHeader->ulSourceIPAddress = 0xC0C00101; in test_prvProcessIPPacket_ARPResolutionReqd_UDP()
2820 IPHeader_t * pxIPHeader; in test_prvProcessIPPacket_ARPResolutionReqd_UDP1() local
2833 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvProcessIPPacket_ARPResolutionReqd_UDP1()
2837 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvProcessIPPacket_ARPResolutionReqd_UDP1()
2839 pxIPHeader->usLength = FreeRTOS_htons( ipconfigTCP_MSS ); in test_prvProcessIPPacket_ARPResolutionReqd_UDP1()
2842 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER; in test_prvProcessIPPacket_ARPResolutionReqd_UDP1()
2851 pxIPHeader->ulSourceIPAddress = 0xC0C00101; in test_prvProcessIPPacket_ARPResolutionReqd_UDP1()
2874 IPHeader_t * pxIPHeader; in test_prvProcessIPPacket_TCP() local
2885 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvProcessIPPacket_TCP()
2889 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvProcessIPPacket_TCP()
2890 pxIPHeader->usLength = FreeRTOS_htons( ipconfigTCP_MSS ); in test_prvProcessIPPacket_TCP()
2892 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER; in test_prvProcessIPPacket_TCP()
2897 pxIPHeader->ulSourceIPAddress = 0xC0C00101; in test_prvProcessIPPacket_TCP()
2903 …vARPRefreshCacheEntry_Expect( &( pxIPPacket->xEthernetHeader.xSourceAddress ), pxIPHeader->ulSourc… in test_prvProcessIPPacket_TCP()
2920 IPHeader_t * pxIPHeader; in test_prvProcessIPPacket_TCP1() local
2931 pxIPHeader = &( pxIPPacket->xIPHeader ); in test_prvProcessIPPacket_TCP1()
2935 pxIPHeader->ucVersionHeaderLength = 0x45; in test_prvProcessIPPacket_TCP1()
2936 pxIPHeader->usLength = FreeRTOS_htons( ipconfigTCP_MSS ); in test_prvProcessIPPacket_TCP1()
2938 pxIPHeader->ulDestinationIPAddress = *ipLOCAL_IP_ADDRESS_POINTER; in test_prvProcessIPPacket_TCP1()
2943 pxIPHeader->ulSourceIPAddress = 0xC0C00101; in test_prvProcessIPPacket_TCP1()
2949 …vARPRefreshCacheEntry_Expect( &( pxIPPacket->xEthernetHeader.xSourceAddress ), pxIPHeader->ulSourc… in test_prvProcessIPPacket_TCP1()
3116 const IPHeader_t * pxIPHeader = ( ( const IPHeader_t * ) pvPtr ); in test_CastingFunctions() local