/FreeRTOS-Plus-TCP-v4.0.0/tools/tcp_utilities/ |
HD | http_client_test.c | 356 xEchoServerAddress.sin_port = FreeRTOS_htons( usUsePortNumber ); in prvEchoClientTask() 366 pxAddress->sin_port = FreeRTOS_htons( usUsePortNumber ); in prvEchoClientTask() 443 FreeRTOS_ntohs( pxAddress->sin_port ), in prvEchoClientTask() 451 FreeRTOS_ntohs( pxLocalAddress->sin_port ), in prvEchoClientTask() 453 FreeRTOS_ntohs( pxAddress->sin_port ), in prvEchoClientTask()
|
HD | NTPDemo.c | 232 xAddress.sin_port = FreeRTOS_htons( NTP_PORT ); in vStartNTPTask() 288 xIPAddressFound.sin_port = FreeRTOS_htons( NTP_PORT ); in vDNS_callback() 619 FreeRTOS_ntohs( xIPAddressFound.sin_port ) ) ); in prvNTPTask() 631 xAddress.sin_port = FreeRTOS_htons( NTP_PORT ); in prvNTPTask() 636 ( unsigned ) FreeRTOS_ntohs( xAddress.sin_port ) ) ); in prvNTPTask()
|
HD | plus_tcp_demo_cli.c | 411 xSourceAddress.sin_port = FreeRTOS_htons( uPort ); in handle_udp() 432 xDestinationAddress.sin_port = FreeRTOS_htons( uPort ); in handle_udp()
|
/FreeRTOS-Plus-TCP-v4.0.0/source/ |
HD | FreeRTOS_DNS.c | 857 pxAddress->sin_port = dnsDNS_PORT; in prvFillSockAddress() 892 pxAddress->sin_port = ipMDNS_PORT; in prvFillSockAddress() 893 pxAddress->sin_port = FreeRTOS_ntohs( pxAddress->sin_port ); in prvFillSockAddress() 929 pxAddress->sin_port = ipLLMNR_PORT; in prvFillSockAddress() 930 pxAddress->sin_port = FreeRTOS_ntohs( pxAddress->sin_port ); in prvFillSockAddress() 1177 if( FreeRTOS_ntohs( pxAddress->sin_port ) == ipLLMNR_PORT ) in prvSendBuffer() 1279 if( xAddress.sin_port == FreeRTOS_htons( ipMDNS_PORT ) ) in prvGetHostByNameOp() 1342 … ulIPAddress = prvDNSReply( &xReceiveBuffer, ppxAddressInfo, uxIdentifier, xRecvAddress.sin_port ); in prvGetHostByNameOp()
|
HD | FreeRTOS_DNS_Networking.c | 54 xAddress.sin_port = usPort; in DNS_BindSocket()
|
HD | FreeRTOS_Sockets.c | 1432 pxNetworkBuffer->usPort = pxDestinationAddress->sin_port; in prvSendUDPPacket() 1744 pxSocket->usLocalPort = FreeRTOS_ntohs( pxAddress->sin_port ); in FreeRTOS_bind() 1798 … ( pxListFindListItemWithValue( pxSocketList, ( TickType_t ) pxAddress->sin_port ) != NULL ) ) in prvSocketBindAdd() 1802 FreeRTOS_ntohs( pxAddress->sin_port ) ) ); in prvSocketBindAdd() 1809 socketSET_SOCKET_PORT( pxSocket, pxAddress->sin_port ); in prvSocketBindAdd() 1813 pxSocket->usLocalPort = FreeRTOS_ntohs( pxAddress->sin_port ); in prvSocketBindAdd() 1932 pxAddress->sin_port = 0U; in vSocketBind() 1950 if( pxAddress->sin_port == 0U ) in vSocketBind() 1952 … pxAddress->sin_port = prvGetPrivatePortNumber( ( BaseType_t ) pxSocket->ucProtocol ); in vSocketBind() 1954 if( pxAddress->sin_port == ( uint16_t ) 0U ) in vSocketBind() [all …]
|
HD | FreeRTOS_IPv4_Sockets.c | 265 pxSourceAddress->sin_port = pxNetworkBuffer->usPort; in xRecv_Update_IPv4()
|
HD | FreeRTOS_UDP_IPv4.c | 403 xSourceAddress.sin_port = pxNetworkBuffer->usPort; in xProcessReceivedUDPPacket_IPv4() 407 destinationAddress.sin_port = usPort; in xProcessReceivedUDPPacket_IPv4()
|
HD | FreeRTOS_UDP_IPv6.c | 493 xSourceAddress.sin_port = pxNetworkBuffer->usPort; in xProcessReceivedUDPPacket_IPv6() 494 destinationAddress.sin_port = usPort; in xProcessReceivedUDPPacket_IPv6()
|
HD | FreeRTOS_IPv6_Sockets.c | 147 pxSourceAddress->sin_port = pxNetworkBuffer->usPort; in xRecv_Update_IPv6()
|
HD | FreeRTOS_DHCP.c | 890 xAddress.sin_port = ( uint16_t ) dhcpCLIENT_PORT_IPv4; in prvCreateDHCPSocket() 1468 pxAddress->sin_port = ( uint16_t ) dhcpSERVER_PORT_IPv4; in prvCreatePartDHCPMessage()
|
HD | FreeRTOS_DHCPv6.c | 886 xAddress.sin_port = FreeRTOS_htons( ipDHCPv6_CLIENT_PORT ); in prvCreateDHCPv6Socket() 1072 xAddress.sin_port = FreeRTOS_htons( ipDHCPv6_SERVER_PORT ); in prvSendDHCPMessage()
|
HD | FreeRTOS_TCP_State_Handling.c | 994 xAddress.sin_port = FreeRTOS_htons( pxSocket->usLocalPort ); in prvTCPSocketCopy()
|
HD | FreeRTOS_IP.c | 366 xAddress.sin_port = FreeRTOS_ntohs( pxSocket->usLocalPort ); in prvProcessIPEventsAndTimers()
|
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_UDP_IPv4/ |
HD | FreeRTOS_UDP_IPv4_stubs.c | 58 TEST_ASSERT_EQUAL( pxUDPPacket->xUDPHeader.usSourcePort, pxFrom->sin_port ); in UDPReceiveHandlerChecker() 59 TEST_ASSERT_EQUAL( pxUDPPacket->xUDPHeader.usDestinationPort, pxDest->sin_port ); in UDPReceiveHandlerChecker()
|
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_UDP_IPv6/ |
HD | FreeRTOS_UDP_IPv6_stubs.c | 64 TEST_ASSERT_EQUAL( pxUDPv6Packet->xUDPHeader.usSourcePort, pxFrom->sin_port ); in UDPReceiveHandlerChecker() 65 TEST_ASSERT_EQUAL( pxUDPv6Packet->xUDPHeader.usDestinationPort, pxDest->sin_port ); in UDPReceiveHandlerChecker()
|
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_Sockets_DiffConfig/ |
HD | FreeRTOS_Sockets_DiffConfig_privates_utest.c | 101 listSET_LIST_ITEM_VALUE_Expect( &( xSocket.xBoundSocketListItem ), xBindAddress.sin_port ); in test_vSocketBind_TCP1()
|
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_Sockets/ |
HD | FreeRTOS_Sockets_UDP_API_utest.c | 1012 TEST_ASSERT_EQUAL( xNetworkBuffer.usPort, xDestinationAddress.sin_port ); in test_FreeRTOS_sendto_IPTaskCalling_NonZeroCopy() 1061 TEST_ASSERT_EQUAL( xNetworkBuffer.usPort, xDestinationAddress.sin_port ); in test_FreeRTOS_sendto_IPTaskCalling_NonZeroCopy1() 1108 TEST_ASSERT_EQUAL( xNetworkBuffer.usPort, xDestinationAddress.sin_port ); in test_FreeRTOS_sendto_IPTaskCalling_NonZeroCopy2() 1158 TEST_ASSERT_EQUAL( xNetworkBuffer.usPort, xDestinationAddress.sin_port ); in test_FreeRTOS_sendto_IPTaskCalling_NonZeroCopy2_xFlagZero() 1205 TEST_ASSERT_EQUAL( xNetworkBuffer.usPort, xDestinationAddress.sin_port ); in test_FreeRTOS_sendto_IPTaskCalling_NonZeroCopy3() 1250 TEST_ASSERT_EQUAL( xNetworkBuffer.usPort, xDestinationAddress.sin_port ); in test_FreeRTOS_sendto_IPTaskCalling_ZeroCopy() 1304 TEST_ASSERT_EQUAL( xNetworkBuffer.usPort, xDestinationAddress.sin_port ); in test_FreeRTOS_sendto_IPTaskCalling_ZeroCopy_ValidFunctionPointer() 1352 TEST_ASSERT_EQUAL( xNetworkBuffer.usPort, xDestinationAddress.sin_port ); in test_FreeRTOS_sendto_IPTaskCalling_ZeroCopy_SendingToIPTaskFails() 1406 TEST_ASSERT_EQUAL( xNetworkBuffer.usPort, xDestinationAddress.sin_port ); in test_FreeRTOS_sendto_IPTaskCalling_NonZeroCopy_SendingToIPTaskFails() 1454 TEST_ASSERT_EQUAL( xNetworkBuffer.usPort, xDestinationAddress.sin_port ); in test_FreeRTOS_sendto_IPTaskCalling_IPv6NonZeroCopy()
|
HD | FreeRTOS_Sockets_privates_utest.c | 577 listSET_LIST_ITEM_VALUE_Expect( &( xSocket.xBoundSocketListItem ), xBindAddress.sin_port ); in test_vSocketBind_TCP() 627 xBindAddress.sin_port = 0; in test_vSocketBind_RNGFails() 652 xBindAddress.sin_port = 0x12; in test_vSocketBind_NonZeroPortNumber() 658 listSET_LIST_ITEM_VALUE_Expect( &( xSocket.xBoundSocketListItem ), xBindAddress.sin_port ); in test_vSocketBind_NonZeroPortNumber() 696 listGET_LIST_ITEM_VALUE_ExpectAndReturn( xListStart, xBindAddress.sin_port ); in test_vSocketBind_GotNULLItem() 698 listSET_LIST_ITEM_VALUE_Expect( &( xSocket.xBoundSocketListItem ), xBindAddress.sin_port ); in test_vSocketBind_GotNULLItem() 708 TEST_ASSERT_EQUAL( FreeRTOS_ntohs( xBindAddress.sin_port ), xSocket.usLocalPort ); in test_vSocketBind_GotNULLItem() 737 listGET_LIST_ITEM_VALUE_ExpectAndReturn( xListStart, xBindAddress.sin_port ); in test_vSocketBind_GotANonNULLValue() 763 listSET_LIST_ITEM_VALUE_Expect( &( xSocket.xBoundSocketListItem ), xBindAddress.sin_port ); in test_vSocketBind_TCPGotAProperValue() 773 TEST_ASSERT_EQUAL( FreeRTOS_ntohs( xBindAddress.sin_port ), xSocket.usLocalPort ); in test_vSocketBind_TCPGotAProperValue() [all …]
|
HD | FreeRTOS_Sockets_GenericAPI_utest.c | 936 xAddress.sin_port = FreeRTOS_htons( usExpectPort ); in test_FreeRTOS_bind_IPTaskDidNotBindTheSocketIPv4Address() 971 xAddress.sin_port = FreeRTOS_htons( usExpectPort ); in test_FreeRTOS_bind_IPTaskDidNotBindTheSocketIPv6Address() 2566 TEST_ASSERT_EQUAL( FreeRTOS_htons( 0xAB12 ), xAddress.sin_port ); in test_FreeRTOS_GetLocalAddress() 2590 TEST_ASSERT_EQUAL( FreeRTOS_htons( 0xAB12 ), xAddress.sin_port ); in test_FreeRTOS_GetLocalAddress_IPv6() 2835 TEST_ASSERT_EQUAL( FreeRTOS_htons( 0x1234 ), xAddress.sin_port ); in test_FreeRTOS_GetRemoteAddress_HappyPath() 2859 TEST_ASSERT_EQUAL( FreeRTOS_htons( 0x1234 ), xAddress.sin_port ); in test_FreeRTOS_GetRemoteAddress_IPv6HappyPath()
|
HD | FreeRTOS_Sockets_TCP_API_utest.c | 192 TEST_ASSERT_EQUAL( FreeRTOS_ntohs( xPeerSocket.u.xTCP.usRemotePort ), xAddress.sin_port ); in test_FreeRTOS_accept_NotReuseSocket() 225 TEST_ASSERT_EQUAL( FreeRTOS_ntohs( xServerSocket.u.xTCP.usRemotePort ), xAddress.sin_port ); in test_FreeRTOS_accept_ReuseSocket() 332 TEST_ASSERT_EQUAL( FreeRTOS_ntohs( xServerSocket.u.xTCP.usRemotePort ), xAddress.sin_port ); in test_FreeRTOS_accept_ReuseIPv6Socket()
|
/FreeRTOS-Plus-TCP-v4.0.0/source/include/ |
HD | FreeRTOS_Sockets.h | 178 uint16_t sin_port; /**< The port. */ member
|
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_IPv4_Sockets/ |
HD | FreeRTOS_IPv4_Sockets_utest.c | 306 TEST_ASSERT_EQUAL( usExpectPort, xSrcAddress.sin_port ); in test_xRecv_Update_IPv4_HappyCase()
|
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_DHCPv6/ |
HD | FreeRTOS_DHCPv6_stubs.c | 171 TEST_ASSERT_EQUAL( ipDHCPv6_CLIENT_PORT, FreeRTOS_ntohs( pxBindAddress->sin_port ) ); in xStubvSocketBind()
|
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_Sockets_IPv6/ |
HD | FreeRTOS_Sockets_IPv6_utest.c | 365 TEST_ASSERT_EQUAL( 1234, xSourceAddress.sin_port ); in test_xRecv_Update_IPv6_InvalidFrame_ValidSourceAddress()
|