Home
last modified time | relevance | path

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

12

/FreeRTOS-Plus-TCP-v4.0.0/tools/tcp_utilities/
HDhttp_client_test.c356 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()
HDNTPDemo.c232 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()
HDplus_tcp_demo_cli.c411 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/
HDFreeRTOS_DNS.c857 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()
HDFreeRTOS_DNS_Networking.c54 xAddress.sin_port = usPort; in DNS_BindSocket()
HDFreeRTOS_Sockets.c1432 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 …]
HDFreeRTOS_IPv4_Sockets.c265 pxSourceAddress->sin_port = pxNetworkBuffer->usPort; in xRecv_Update_IPv4()
HDFreeRTOS_UDP_IPv4.c403 xSourceAddress.sin_port = pxNetworkBuffer->usPort; in xProcessReceivedUDPPacket_IPv4()
407 destinationAddress.sin_port = usPort; in xProcessReceivedUDPPacket_IPv4()
HDFreeRTOS_UDP_IPv6.c493 xSourceAddress.sin_port = pxNetworkBuffer->usPort; in xProcessReceivedUDPPacket_IPv6()
494 destinationAddress.sin_port = usPort; in xProcessReceivedUDPPacket_IPv6()
HDFreeRTOS_IPv6_Sockets.c147 pxSourceAddress->sin_port = pxNetworkBuffer->usPort; in xRecv_Update_IPv6()
HDFreeRTOS_DHCP.c890 xAddress.sin_port = ( uint16_t ) dhcpCLIENT_PORT_IPv4; in prvCreateDHCPSocket()
1468 pxAddress->sin_port = ( uint16_t ) dhcpSERVER_PORT_IPv4; in prvCreatePartDHCPMessage()
HDFreeRTOS_DHCPv6.c886 xAddress.sin_port = FreeRTOS_htons( ipDHCPv6_CLIENT_PORT ); in prvCreateDHCPv6Socket()
1072 xAddress.sin_port = FreeRTOS_htons( ipDHCPv6_SERVER_PORT ); in prvSendDHCPMessage()
HDFreeRTOS_TCP_State_Handling.c994 xAddress.sin_port = FreeRTOS_htons( pxSocket->usLocalPort ); in prvTCPSocketCopy()
HDFreeRTOS_IP.c366 xAddress.sin_port = FreeRTOS_ntohs( pxSocket->usLocalPort ); in prvProcessIPEventsAndTimers()
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_UDP_IPv4/
HDFreeRTOS_UDP_IPv4_stubs.c58 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/
HDFreeRTOS_UDP_IPv6_stubs.c64 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/
HDFreeRTOS_Sockets_DiffConfig_privates_utest.c101 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/
HDFreeRTOS_Sockets_UDP_API_utest.c1012 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()
HDFreeRTOS_Sockets_privates_utest.c577 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 …]
HDFreeRTOS_Sockets_GenericAPI_utest.c936 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()
HDFreeRTOS_Sockets_TCP_API_utest.c192 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/
HDFreeRTOS_Sockets.h178 uint16_t sin_port; /**< The port. */ member
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_IPv4_Sockets/
HDFreeRTOS_IPv4_Sockets_utest.c306 TEST_ASSERT_EQUAL( usExpectPort, xSrcAddress.sin_port ); in test_xRecv_Update_IPv4_HappyCase()
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_DHCPv6/
HDFreeRTOS_DHCPv6_stubs.c171 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/
HDFreeRTOS_Sockets_IPv6_utest.c365 TEST_ASSERT_EQUAL( 1234, xSourceAddress.sin_port ); in test_xRecv_Update_IPv6_InvalidFrame_ValidSourceAddress()

12