Home
last modified time | relevance | path

Searched refs:ucProtocol (Results 1 – 25 of 25) sorted by relevance

/FreeRTOS-Plus-TCP-v3.1.0/test/unit-test/FreeRTOS_Sockets/
DFreeRTOS_Sockets_TCP_API_utest.c153 xServerSocket.ucProtocol = FREERTOS_IPPROTO_TCP; in test_FreeRTOS_accept_InvalidParams()
159 xServerSocket.ucProtocol = FREERTOS_IPPROTO_TCP; in test_FreeRTOS_accept_InvalidParams()
179 xServerSocket.ucProtocol = FREERTOS_IPPROTO_TCP; in test_FreeRTOS_accept_ClientSocketTaken()
205 xServerSocket.ucProtocol = FREERTOS_IPPROTO_TCP; in test_FreeRTOS_accept_PeerSocketNULL()
232 xServerSocket.ucProtocol = FREERTOS_IPPROTO_TCP; in test_FreeRTOS_accept_NotReuseSocket()
268 xServerSocket.ucProtocol = FREERTOS_IPPROTO_TCP; in test_FreeRTOS_accept_ReuseSocket()
301 xServerSocket.ucProtocol = FREERTOS_IPPROTO_TCP; in test_FreeRTOS_accept_ReuseSocket_NULLAddress()
332 xServerSocket.ucProtocol = FREERTOS_IPPROTO_TCP; in test_FreeRTOS_accept_ReuseSocket_Timeout()
384 xSocket.ucProtocol = FREERTOS_IPPROTO_TCP; in test_FreeRTOS_recv_InvalidValues()
390 xSocket.ucProtocol = FREERTOS_IPPROTO_TCP; in test_FreeRTOS_recv_InvalidValues()
[all …]
DFreeRTOS_Sockets_GenericAPI_utest.c344 TEST_ASSERT_EQUAL( xSocket->ucProtocol, ( uint8_t ) FREERTOS_IPPROTO_TCP ); in test_FreeRTOS_socket_TCPSocket_ProtocolDependent()
389 TEST_ASSERT_EQUAL( xSocket->ucProtocol, ( uint8_t ) xProtocol ); in test_FreeRTOS_socket_TCPSocket()
432 TEST_ASSERT_EQUAL( xSocket->ucProtocol, ( uint8_t ) xProtocol ); in test_FreeRTOS_socket_UDPSocket()
471 TEST_ASSERT_EQUAL( xSocket->ucProtocol, ( uint8_t ) FREERTOS_IPPROTO_UDP ); in test_FreeRTOS_socket_UDPSocket_ProtocolDependent()
1057 xSocket.ucProtocol = ( uint8_t ) FREERTOS_IPPROTO_TCP; in test_FreeRTOS_closesocket_TCPSocketSendFail()
1080 xSocket.ucProtocol = ( uint8_t ) FREERTOS_IPPROTO_TCP; in test_FreeRTOS_closesocket_TCPSocketSendPass()
1103 xSocket.ucProtocol = ( uint8_t ) FREERTOS_IPPROTO_UDP; in test_FreeRTOS_closesocket_UDPSocketSendFail()
1125 xSocket.ucProtocol = ( uint8_t ) FREERTOS_IPPROTO_UDP; in test_FreeRTOS_closesocket_UDPSocketSendPass()
1240 xSocket.ucProtocol = FREERTOS_IPPROTO_UDP; in test_FreeRTOS_setsockopt_SendTimeOutUDP()
1262 xSocket.ucProtocol = FREERTOS_IPPROTO_UDP; in test_FreeRTOS_setsockopt_SendTimeOutUDPMoreBockingTime()
[all …]
DFreeRTOS_Sockets_UDP_API_utest.c164 xSocket->ucProtocol = FREERTOS_IPPROTO_TCP; in test_FreeRTOS_recvfrom_TCPSocket()
189 xSocket->ucProtocol = FREERTOS_IPPROTO_UDP; in test_FreeRTOS_recvfrom_NonBlockingInterrupted()
218 xSocket->ucProtocol = FREERTOS_IPPROTO_UDP; in test_FreeRTOS_recvfrom_NonBlocking()
247 xSocket->ucProtocol = FREERTOS_IPPROTO_UDP; in test_FreeRTOS_recvfrom_NonBlockingFlagSet()
275 xSocket->ucProtocol = FREERTOS_IPPROTO_UDP; in test_FreeRTOS_recvfrom_BlockingButTimeout()
311 xSocket->ucProtocol = FREERTOS_IPPROTO_UDP; in test_FreeRTOS_recvfrom_BlockingButTimeoutSecondTime()
353 xSocket->ucProtocol = FREERTOS_IPPROTO_UDP; in test_FreeRTOS_recvfrom_BlockingButInterrupted()
384 xSocket->ucProtocol = FREERTOS_IPPROTO_UDP; in test_FreeRTOS_recvfrom_BlockingButInterruptedAndReceived()
429 xGlobalSocket->ucProtocol = FREERTOS_IPPROTO_UDP; in test_FreeRTOS_recvfrom_BlockingGetsPacketInBetween_JustUDPHeader()
487 xGlobalSocket->ucProtocol = FREERTOS_IPPROTO_UDP; in test_FreeRTOS_recvfrom_BlockingGetsPacketInBetween_Packet100()
[all …]
DFreeRTOS_Sockets_privates_utest.c207 xSocket.ucProtocol = xProtocol; in test_prvValidSocket_SocketBoundResetButBound()
227 xSocket.ucProtocol = xProtocol + 1; in test_prvValidSocket_InvalidProtocol()
462 xSocket.ucProtocol = FREERTOS_IPPROTO_TCP; in test_prvMakeSureSocketIsBound_TCPProtocol()
477 xSocket.ucProtocol = FREERTOS_IPPROTO_UDP; in test_prvMakeSureSocketIsBound_SocketAlreadyBound()
494 xSocket.ucProtocol = FREERTOS_IPPROTO_UDP; in test_prvMakeSureSocketIsBound_SocketNotBound_BindingFails()
517 xSocket.ucProtocol = FREERTOS_IPPROTO_UDP; in test_prvMakeSureSocketIsBound_SocketNotBound_BindingSuccess()
577 xSocket.ucProtocol = ( uint8_t ) FREERTOS_IPPROTO_TCP; in test_vSocketBind_TCP()
605 xSocket.ucProtocol = ( uint8_t ) FREERTOS_IPPROTO_TCP; in test_vSocketBind_TCPNULLAddress()
629 xSocket.ucProtocol = ( uint8_t ) FREERTOS_IPPROTO_TCP; in test_vSocketBind_RNGFails()
654 xSocket.ucProtocol = ( uint8_t ) FREERTOS_IPPROTO_UDP; in test_vSocketBind_NonZeroPortNumber()
[all …]
/FreeRTOS-Plus-TCP-v3.1.0/source/
DFreeRTOS_IP_Utils.c457 uint8_t ucProtocol; in usGenerateProtocolChecksum() local
517 ucProtocol = pxIPPacket->xIPHeader.ucProtocol; in usGenerateProtocolChecksum()
531 if( ucProtocol == ( uint8_t ) ipPROTOCOL_UDP ) in usGenerateProtocolChecksum()
556 else if( ucProtocol == ( uint8_t ) ipPROTOCOL_TCP ) in usGenerateProtocolChecksum()
581 else if( ( ucProtocol == ( uint8_t ) ipPROTOCOL_ICMP ) || in usGenerateProtocolChecksum()
582 ( ucProtocol == ( uint8_t ) ipPROTOCOL_IGMP ) ) in usGenerateProtocolChecksum()
603 if( ucProtocol == ( uint8_t ) ipPROTOCOL_ICMP ) in usGenerateProtocolChecksum()
628 else if( ( usChecksumFound == 0U ) && ( ucProtocol == ( uint8_t ) ipPROTOCOL_UDP ) ) in usGenerateProtocolChecksum()
686 if( ucProtocol <= ( uint8_t ) ipPROTOCOL_IGMP ) in usGenerateProtocolChecksum()
697 usChecksum = ( uint16_t ) ( ulLength + ( ( uint16_t ) ucProtocol ) ); in usGenerateProtocolChecksum()
[all …]
DFreeRTOS_IP.c1545 if( pxIPPacket->xIPHeader.ucProtocol == ( uint8_t ) ipPROTOCOL_UDP ) in prvAllowIPPacket()
1604 uint8_t ucProtocol; in prvProcessIPPacket() local
1616 ucProtocol = pxIPPacket->xIPHeader.ucProtocol; in prvProcessIPPacket()
1669 if( ucProtocol != ( uint8_t ) ipPROTOCOL_UDP ) in prvProcessIPPacket()
1690 switch( ucProtocol ) in prvProcessIPPacket()
1832 uint8_t ucProtocol; in xCheckSizeFields() local
1889 ucProtocol = pxIPPacket->xIPHeader.ucProtocol; in xCheckSizeFields()
1892 if( ucProtocol == ( uint8_t ) ipPROTOCOL_UDP ) in xCheckSizeFields()
1897 else if( ucProtocol == ( uint8_t ) ipPROTOCOL_TCP ) in xCheckSizeFields()
1901 else if( ( ucProtocol == ( uint8_t ) ipPROTOCOL_ICMP ) || in xCheckSizeFields()
[all …]
DFreeRTOS_Sockets.c248 else if( pxSocket->ucProtocol != ( uint8_t ) xProtocol ) in prvValidSocket()
478 pxSocket->ucProtocol = ( uint8_t ) xProtocolCpy; /* protocol: UDP or TCP */ in FreeRTOS_socket()
1331 if( pxSocket->ucProtocol == ( uint8_t ) FREERTOS_IPPROTO_TCP ) in vSocketBind()
1376 … pxAddress->sin_port = prvGetPrivatePortNumber( ( BaseType_t ) pxSocket->ucProtocol ); in vSocketBind()
1391 …if( ( ( xInternal == pdFALSE ) || ( pxSocket->ucProtocol != ( uint8_t ) FREERTOS_IPPROTO_TCP ) ) && in vSocketBind()
1395 … ( pxSocket->ucProtocol == ( uint8_t ) FREERTOS_IPPROTO_TCP ) ? "TC" : "UD", in vSocketBind()
1488 if( pxSocket->ucProtocol == ( uint8_t ) FREERTOS_IPPROTO_TCP ) in FreeRTOS_closesocket()
1498 if( pxSocket->ucProtocol == ( uint8_t ) FREERTOS_IPPROTO_UDP ) in FreeRTOS_closesocket()
1546 if( pxSocket->ucProtocol == ( uint8_t ) FREERTOS_IPPROTO_TCP ) in vSocketClose()
1604 if( pxSocket->ucProtocol == ( uint8_t ) FREERTOS_IPPROTO_UDP ) in vSocketClose()
[all …]
DFreeRTOS_UDP_IP.c196 pxIPHeader->ucProtocol = ipPROTOCOL_ICMP; in vProcessGeneratedUDPPacket()
DFreeRTOS_TCP_IP.c900 …if( ( pxFound->ucProtocol == ( uint8_t ) FREERTOS_IPPROTO_TCP ) && ( pxFound->u.xTCP.bits.bPassAcc… in xTCPCheckNewClient()
DFreeRTOS_TCP_Transmission.c702 pxIPHeader->ucProtocol = ( uint8_t ) ipPROTOCOL_TCP; in prvTCPPrepareConnect()
/FreeRTOS-Plus-TCP-v3.1.0/test/cbmc/proofs/Socket/vSocketClose/
DvSocketClose_harness.c71 pxSocket->ucProtocol = PROTOCOL; in harness()
77 if( pxSocket->ucProtocol == FREERTOS_IPPROTO_TCP ) in harness()
92 else if( pxSocket->ucProtocol == FREERTOS_IPPROTO_UDP ) in harness()
/FreeRTOS-Plus-TCP-v3.1.0/test/unit-test/FreeRTOS_IP_DiffConfig/
DFreeRTOS_IP_DiffConfig_utest.c473 pxIPHeader->ucProtocol = ipPROTOCOL_UDP; in test_prvAllowIPPacket_UDPCheckSumZero()
510 pxIPHeader->ucProtocol = ipPROTOCOL_UDP; in test_prvAllowIPPacket_UDP_HappyPath()
553 pxIPHeader->ucProtocol = ipPROTOCOL_TCP; in test_prvAllowIPPacket_TCP_HappyPath()
586 pxIPHeader->ucProtocol = ipPROTOCOL_TCP; in test_prvProcessIPPacket_()
617 pxIPHeader->ucProtocol = ipPROTOCOL_TCP; in test_xCheckSizeFields_BufferLengthLess()
653 pxIPHeader->ucProtocol = ipPROTOCOL_TCP; in test_xCheckSizeFields_HeaderLengthLess()
685 pxIPHeader->ucProtocol = ipPROTOCOL_TCP; in test_xCheckSizeFields_HeaderLengthMore()
717 pxIPHeader->ucProtocol = ipPROTOCOL_TCP; in test_xCheckSizeFields_HeaderLengthMoreThanTotalLength()
751 pxIPHeader->ucProtocol = ipPROTOCOL_TCP; in test_xCheckSizeFields_IPPacketLengthMoreThanTotalLength()
785 pxIPHeader->ucProtocol = ipPROTOCOL_UDP; in test_xCheckSizeFields_UDP_IncorrectPacketLen()
[all …]
/FreeRTOS-Plus-TCP-v3.1.0/test/unit-test/FreeRTOS_IP_Utils/
DFreeRTOS_IP_Utils_utest.c441 pxIPPacket->xIPHeader.ucProtocol = ipPROTOCOL_UDP; in test_usGenerateProtocolChecksum_UDPWrongCRCIncomingPacket()
465 pxIPPacket->xIPHeader.ucProtocol = ipPROTOCOL_UDP; in test_usGenerateProtocolChecksum_UDPInvalidLength()
489 pxIPPacket->xIPHeader.ucProtocol = ipPROTOCOL_UDP; in test_usGenerateProtocolChecksum_UDPOutgoingPacket()
516 pxIPPacket->xIPHeader.ucProtocol = ipPROTOCOL_UDP; in test_usGenerateProtocolChecksum_UDPNonZeroChecksum()
548 pxIPPacket->xIPHeader.ucProtocol = ipPROTOCOL_UDP; in test_usGenerateProtocolChecksum_UDPCorrectCRCOutgoingPacket()
578 pxIPPacket->xIPHeader.ucProtocol = ipPROTOCOL_UDP; in test_usGenerateProtocolChecksum_UDPCorrectCRC()
608 pxIPPacket->xIPHeader.ucProtocol = ipPROTOCOL_UDP; in test_usGenerateProtocolChecksum_UDPIncorrectCRC()
637 pxIPPacket->xIPHeader.ucProtocol = ipPROTOCOL_TCP; in test_usGenerateProtocolChecksum_TCPCorrectCRC()
670 pxIPPacket->xIPHeader.ucProtocol = ipPROTOCOL_TCP; in test_usGenerateProtocolChecksum_TCPCorrectCRCOutgoingPacket()
700 pxIPPacket->xIPHeader.ucProtocol = ipPROTOCOL_TCP; in test_usGenerateProtocolChecksum_TCPCorrectCRC_IncomingPacket()
[all …]
/FreeRTOS-Plus-TCP-v3.1.0/test/unit-test/FreeRTOS_Sockets_DiffConfig/
DFreeRTOS_Sockets_DiffConfig_privates_utest.c143 xSocket.ucProtocol = ( uint8_t ) FREERTOS_IPPROTO_TCP; in test_vSocketBind_TCP()
164 xSocket.ucProtocol = ( uint8_t ) FREERTOS_IPPROTO_TCP; in test_vSocketBind_TCP1()
/FreeRTOS-Plus-TCP-v3.1.0/tools/tcp_utilities/
Dtcp_dump_packets.c373 uint8_t ucProtocol; in vAddProtocolTags() local
385 ucProtocol = pxIPHeader_IPv6->ucNextHeader; in vAddProtocolTags()
397 ucProtocol = pxIPPacket->xIPHeader.ucProtocol; in vAddProtocolTags()
401 switch( ucProtocol ) in vAddProtocolTags()
/FreeRTOS-Plus-TCP-v3.1.0/source/portable/NetworkInterface/Zynq/
DNetworkInterface.c231 ( pxPacket->xICMPPacket.xIPHeader.ucProtocol != ipPROTOCOL_UDP ) && in xNetworkInterfaceOutput()
232 ( pxPacket->xICMPPacket.xIPHeader.ucProtocol != ipPROTOCOL_TCP ) ) in xNetworkInterfaceOutput()
/FreeRTOS-Plus-TCP-v3.1.0/test/unit-test/FreeRTOS_Sockets_DiffConfig1/
DFreeRTOS_Sockets_DiffConfig1_privates_utest.c143 xSocket.ucProtocol = ( uint8_t ) FREERTOS_IPPROTO_TCP; in test_vSocketBind_TCP()
/FreeRTOS-Plus-TCP-v3.1.0/source/portable/NetworkInterface/ATSAME5x/
DNetworkInterface.c284 if( pxIPPacket->xIPHeader.ucProtocol == ( uint8_t ) ipPROTOCOL_ICMP ) in prvEMACDeferredInterruptHandlerTask()
373 if( pxIPPacket->xIPHeader.ucProtocol == ( uint8_t ) ipPROTOCOL_ICMP ) in xNetworkInterfaceOutput()
/FreeRTOS-Plus-TCP-v3.1.0/source/portable/NetworkInterface/xilinx_ultrascale/
DNetworkInterface.c332 ( pxPacket->xICMPPacket.xIPHeader.ucProtocol != ipPROTOCOL_UDP ) && in xNetworkInterfaceOutput()
333 ( pxPacket->xICMPPacket.xIPHeader.ucProtocol != ipPROTOCOL_TCP ) ) in xNetworkInterfaceOutput()
/FreeRTOS-Plus-TCP-v3.1.0/source/include/
DFreeRTOS_IP_Private.h112 …uint8_t ucProtocol; /**< Protocol used in the IP-datagram 9 + 1 = 10 */ member
668 uint8_t ucProtocol; /**< choice of FREERTOS_IPPROTO_UDP/TCP */ member
/FreeRTOS-Plus-TCP-v3.1.0/test/unit-test/FreeRTOS_IP/
DFreeRTOS_IP_utest.c2476 pxIPPacket->xIPHeader.ucProtocol = ipPROTOCOL_ICMP; in test_prvProcessIPPacket_ARPResolutionNotReqd_ICMP()
2523 pxIPPacket->xIPHeader.ucProtocol = ipPROTOCOL_ICMP; in test_prvProcessIPPacket_ARPResolutionNotReqd_ICMP2()
2564 pxIPPacket->xIPHeader.ucProtocol = ipPROTOCOL_UDP; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP()
2605 pxIPPacket->xIPHeader.ucProtocol = ipPROTOCOL_UDP; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_DataLengthCorrect()
2643 pxIPPacket->xIPHeader.ucProtocol = ipPROTOCOL_UDP; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect()
2691 pxIPPacket->xIPHeader.ucProtocol = ipPROTOCOL_UDP; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect2()
2740 pxIPPacket->xIPHeader.ucProtocol = ipPROTOCOL_UDP; in test_prvProcessIPPacket_ARPResolutionNotReqd_UDP_AllLengthCorrect3()
2790 pxIPPacket->xIPHeader.ucProtocol = ipPROTOCOL_UDP; in test_prvProcessIPPacket_ARPResolutionReqd_UDP()
2845 pxIPPacket->xIPHeader.ucProtocol = ipPROTOCOL_UDP; in test_prvProcessIPPacket_ARPResolutionReqd_UDP1()
2894 pxIPPacket->xIPHeader.ucProtocol = ipPROTOCOL_TCP; in test_prvProcessIPPacket_TCP()
[all …]
/FreeRTOS-Plus-TCP-v3.1.0/source/portable/NetworkInterface/STM32Fxx/
DNetworkInterface.c683 if( pxPacket->xICMPPacket.xIPHeader.ucProtocol == ( uint8_t ) ipPROTOCOL_ICMP ) in xNetworkInterfaceOutput()
845 if( pxIPHeader->ucProtocol == ipPROTOCOL_UDP ) in xMayAcceptPacket()
/FreeRTOS-Plus-TCP-v3.1.0/source/portable/NetworkInterface/ThirdParty/MSP432/
DNetworkInterface.c802 if( pxPacket->xICMPPacket.xIPHeader.ucProtocol == ( uint8_t ) ipPROTOCOL_ICMP ) in prvEMACDeferredInterfaceOutputTaskTX()
/FreeRTOS-Plus-TCP-v3.1.0/test/unit-test/FreeRTOS_TCP_IP/
DFreeRTOS_TCP_IP_utest.c1990 pxSocket->ucProtocol = FREERTOS_IPPROTO_UDP; in test_xTCPCheckNewClient_Not_Found_Not_TCP()
2014 pxSocket->ucProtocol = FREERTOS_IPPROTO_TCP; in test_xTCPCheckNewClient_Not_Found_Not_Aceept()
2038 pxSocket->ucProtocol = FREERTOS_IPPROTO_TCP; in test_xTCPCheckNewClient_Found()
/FreeRTOS-Plus-TCP-v3.1.0/test/unit-test/FreeRTOS_UDP_IP/
DFreeRTOS_UDP_IP_utest.c290 TEST_ASSERT_EQUAL( ipPROTOCOL_ICMP, pxUDPPacket->xIPHeader.ucProtocol ); in test_vProcessGeneratedUDPPacket_CacheHit_ICMPPacket_LLMNR_UDPChkSumOption()