Home
last modified time | relevance | path

Searched refs:ipconfigTCP_MSS (Results 1 – 15 of 15) sorted by relevance

/FreeRTOS-Plus-TCP-v3.1.0/test/unit-test/FreeRTOS_ICMP/
DFreeRTOS_ICMP_utest.c83 uint8_t ucEthBuffer[ ipconfigTCP_MSS ]; in test_ProcessICMPPacket_AllZeroData()
87 pxNetworkBuffer->xDataLength = ipconfigTCP_MSS; in test_ProcessICMPPacket_AllZeroData()
89 memset( ucEthBuffer, 0, ipconfigTCP_MSS ); in test_ProcessICMPPacket_AllZeroData()
102 uint8_t ucEthBuffer[ ipconfigTCP_MSS ]; in test_ProcessICMPPacket_EchoRequest()
109 pxNetworkBuffer->xDataLength = ipconfigTCP_MSS; in test_ProcessICMPPacket_EchoRequest()
111 memset( ucEthBuffer, 0, ipconfigTCP_MSS ); in test_ProcessICMPPacket_EchoRequest()
138 uint8_t ucEthBuffer[ ipconfigTCP_MSS ]; in test_ProcessICMPPacket_UnknownICMPPacket()
143 pxNetworkBuffer->xDataLength = ipconfigTCP_MSS; in test_ProcessICMPPacket_UnknownICMPPacket()
145 memset( ucEthBuffer, 0, ipconfigTCP_MSS ); in test_ProcessICMPPacket_UnknownICMPPacket()
161 uint8_t ucEthBuffer[ ipconfigTCP_MSS ]; in test_ProcessICMPPacket_ICMPEchoReply_NULLData()
[all …]
/FreeRTOS-Plus-TCP-v3.1.0/test/unit-test/FreeRTOS_UDP_IP/
DFreeRTOS_UDP_IP_utest.c87 uint8_t pucLocalEthernetBuffer[ ipconfigTCP_MSS ]; in test_vProcessGeneratedUDPPacket_CantSendPacket()
93 memset( pucLocalEthernetBuffer, 0, ipconfigTCP_MSS ); in test_vProcessGeneratedUDPPacket_CantSendPacket()
112 uint8_t pucLocalEthernetBuffer[ ipconfigTCP_MSS ]; in test_vProcessGeneratedUDPPacket_CacheMiss_PacketSmaller()
118 xLocalNetworkBuffer.xDataLength = ipconfigTCP_MSS; in test_vProcessGeneratedUDPPacket_CacheMiss_PacketSmaller()
123 memset( pucLocalEthernetBuffer, 0, ipconfigTCP_MSS ); in test_vProcessGeneratedUDPPacket_CacheMiss_PacketSmaller()
150 uint8_t pucLocalEthernetBuffer[ ipconfigTCP_MSS ]; in test_vProcessGeneratedUDPPacket_CacheMiss_PacketNotSmaller()
161 memset( pucLocalEthernetBuffer, 0, ipconfigTCP_MSS ); in test_vProcessGeneratedUDPPacket_CacheMiss_PacketNotSmaller()
186 uint8_t pucLocalEthernetBuffer[ ipconfigTCP_MSS ]; in test_vProcessGeneratedUDPPacket_UnknownARPReturn()
192 xLocalNetworkBuffer.xDataLength = ipconfigTCP_MSS; in test_vProcessGeneratedUDPPacket_UnknownARPReturn()
198 memset( pucLocalEthernetBuffer, 0, ipconfigTCP_MSS ); in test_vProcessGeneratedUDPPacket_UnknownARPReturn()
[all …]
/FreeRTOS-Plus-TCP-v3.1.0/test/unit-test/FreeRTOS_IP_Utils/
DFreeRTOS_IP_Utils_utest.c124 uint8_t ucEthBuffer[ ipconfigTCP_MSS ]; in test_pxDuplicateNetworkBufferWithDescriptor_LargerBufferReturned()
125 uint8_t ucEthBuffer2[ ipconfigTCP_MSS ]; in test_pxDuplicateNetworkBufferWithDescriptor_LargerBufferReturned()
131 memset( ucEthBuffer, 0xAB, ipconfigTCP_MSS ); in test_pxDuplicateNetworkBufferWithDescriptor_LargerBufferReturned()
133 memset( ucEthBuffer2, 0x00, ipconfigTCP_MSS ); in test_pxDuplicateNetworkBufferWithDescriptor_LargerBufferReturned()
157 uint8_t ucEthBuffer[ ipconfigTCP_MSS ]; in test_pxDuplicateNetworkBufferWithDescriptor_SmallerBufferReturned()
158 uint8_t ucEthBuffer2[ ipconfigTCP_MSS ]; in test_pxDuplicateNetworkBufferWithDescriptor_SmallerBufferReturned()
164 memset( ucEthBuffer, 0xAB, ipconfigTCP_MSS ); in test_pxDuplicateNetworkBufferWithDescriptor_SmallerBufferReturned()
166 memset( ucEthBuffer2, 0x00, ipconfigTCP_MSS ); in test_pxDuplicateNetworkBufferWithDescriptor_SmallerBufferReturned()
201 uint8_t ucEthBuf[ ipconfigTCP_MSS ]; in test_prvPacketBuffer_to_NetworkBuffer_Unalligned()
217 uint8_t ucEthBuf[ ipconfigTCP_MSS ]; in test_prvPacketBuffer_to_NetworkBuffer_Alligned()
[all …]
/FreeRTOS-Plus-TCP-v3.1.0/test/unit-test/FreeRTOS_IP/
DFreeRTOS_IP_utest.c738 uint8_t ucEthBuffer[ ipconfigTCP_MSS ]; in test_prvProcessIPEventsAndTimers_eNetworkRxEvent()
763 uint8_t ucEthBuffer[ ipconfigTCP_MSS ]; in test_prvProcessIPEventsAndTimers_eNetworkTxEvent()
1430 uint8_t ucEthernetBuffer[ ipconfigTCP_MSS ]; in test_eConsiderFrameForProcessing_NoMatch()
1432 memset( ucEthernetBuffer, 0, ipconfigTCP_MSS ); in test_eConsiderFrameForProcessing_NoMatch()
1443 uint8_t ucEthernetBuffer[ ipconfigTCP_MSS ]; in test_eConsiderFrameForProcessing_LocalMACMatch()
1449 memset( ucEthernetBuffer, 0x00, ipconfigTCP_MSS ); in test_eConsiderFrameForProcessing_LocalMACMatch()
1463 uint8_t ucEthernetBuffer[ ipconfigTCP_MSS ]; in test_eConsiderFrameForProcessing_LocalMACMatch1()
1469 memset( ucEthernetBuffer, 0x00, ipconfigTCP_MSS ); in test_eConsiderFrameForProcessing_LocalMACMatch1()
1483 uint8_t ucEthernetBuffer[ ipconfigTCP_MSS ]; in test_eConsiderFrameForProcessing_LocalMACMatch2()
1489 memset( ucEthernetBuffer, 0x00, ipconfigTCP_MSS ); in test_eConsiderFrameForProcessing_LocalMACMatch2()
[all …]
/FreeRTOS-Plus-TCP-v3.1.0/test/unit-test/FreeRTOS_IP_DiffConfig/
DFreeRTOS_IP_DiffConfig_utest.c212 uint8_t ucEthBuffer[ ipconfigTCP_MSS ]; in test_prvProcessIPEventsAndTimers_eNetworkRxEvent_MoreSpace()
393 uint8_t ucEthBuffer[ ipconfigTCP_MSS ]; in test_prvAllowIPPacket_BroadcastSourceIP()
396 memset( ucEthBuffer, 0, ipconfigTCP_MSS ); in test_prvAllowIPPacket_BroadcastSourceIP()
424 uint8_t ucEthBuffer[ ipconfigTCP_MSS ]; in test_prvAllowIPPacket_IncorrectSizeFields()
427 memset( ucEthBuffer, 0, ipconfigTCP_MSS ); in test_prvAllowIPPacket_IncorrectSizeFields()
455 uint8_t ucEthBuffer[ ipconfigTCP_MSS ]; in test_prvAllowIPPacket_UDPCheckSumZero()
458 memset( ucEthBuffer, 0, ipconfigTCP_MSS ); in test_prvAllowIPPacket_UDPCheckSumZero()
491 uint8_t ucEthBuffer[ ipconfigTCP_MSS ]; in test_prvAllowIPPacket_UDP_HappyPath()
495 memset( ucEthBuffer, 0, ipconfigTCP_MSS ); in test_prvAllowIPPacket_UDP_HappyPath()
534 uint8_t ucEthBuffer[ ipconfigTCP_MSS ]; in test_prvAllowIPPacket_TCP_HappyPath()
[all …]
/FreeRTOS-Plus-TCP-v3.1.0/test/unit-test/FreeRTOS_Sockets/
DFreeRTOS_Sockets_UDP_API_utest.c410 char pvBuffer[ ipconfigTCP_MSS ]; in test_FreeRTOS_recvfrom_BlockingGetsPacketInBetween_JustUDPHeader()
411 size_t uxBufferLength = ipconfigTCP_MSS; in test_FreeRTOS_recvfrom_BlockingGetsPacketInBetween_JustUDPHeader()
417 uint8_t pucEthernetBuffer[ ipconfigTCP_MSS ]; in test_FreeRTOS_recvfrom_BlockingGetsPacketInBetween_JustUDPHeader()
426 memset( pucEthernetBuffer, 0x12, ipconfigTCP_MSS ); in test_FreeRTOS_recvfrom_BlockingGetsPacketInBetween_JustUDPHeader()
427 memset( pvBuffer, 0xAB, ipconfigTCP_MSS ); in test_FreeRTOS_recvfrom_BlockingGetsPacketInBetween_JustUDPHeader()
455 TEST_ASSERT_EACH_EQUAL_UINT8( 0x12, pucEthernetBuffer, ipconfigTCP_MSS ); in test_FreeRTOS_recvfrom_BlockingGetsPacketInBetween_JustUDPHeader()
456 TEST_ASSERT_EACH_EQUAL_UINT8( 0xAB, pvBuffer, ipconfigTCP_MSS ); in test_FreeRTOS_recvfrom_BlockingGetsPacketInBetween_JustUDPHeader()
468 char pvBuffer[ ipconfigTCP_MSS ]; in test_FreeRTOS_recvfrom_BlockingGetsPacketInBetween_Packet100()
469 size_t uxBufferLength = ipconfigTCP_MSS; in test_FreeRTOS_recvfrom_BlockingGetsPacketInBetween_Packet100()
475 uint8_t pucEthernetBuffer[ ipconfigTCP_MSS ]; in test_FreeRTOS_recvfrom_BlockingGetsPacketInBetween_Packet100()
[all …]
DFreeRTOS_Sockets_TCP_API_utest.c755 uint8_t ucStream[ ipconfigTCP_MSS ]; in test_FreeRTOS_get_tx_head_AllNULL()
758 memset( ucStream, 0, ipconfigTCP_MSS ); in test_FreeRTOS_get_tx_head_AllNULL()
778 uint8_t ucStream[ ipconfigTCP_MSS ]; in test_FreeRTOS_get_tx_head_LessSpace()
781 memset( ucStream, 0, ipconfigTCP_MSS ); in test_FreeRTOS_get_tx_head_LessSpace()
804 uint8_t ucStream[ ipconfigTCP_MSS ]; in test_FreeRTOS_get_tx_head_MoreSpace()
807 memset( ucStream, 0, ipconfigTCP_MSS ); in test_FreeRTOS_get_tx_head_MoreSpace()
829 uint8_t pvBuffer[ ipconfigTCP_MSS ]; in test_FreeRTOS_send_InvalidInput()
835 memset( pvBuffer, 0, ipconfigTCP_MSS ); in test_FreeRTOS_send_InvalidInput()
876 uint8_t pvBuffer[ ipconfigTCP_MSS ]; in test_FreeRTOS_send_ExactSpaceInStreamBuffer()
883 memset( pvBuffer, 0, ipconfigTCP_MSS ); in test_FreeRTOS_send_ExactSpaceInStreamBuffer()
[all …]
DFreeRTOS_Sockets_privates_utest.c2603 uint8_t ucStream[ ipconfigTCP_MSS ]; in test_prvTCPCreateStream()
2628 uint8_t ucStream[ ipconfigTCP_MSS ]; in test_prvTCPCreateStream1()
2653 uint8_t ucStream[ ipconfigTCP_MSS ]; in test_prvTCPCreateStream_LowAndHighFieldsDefined()
2714 uint8_t ucStream[ ipconfigTCP_MSS ]; in test_lTCPAddRxdata_SteamCreationSuccessful_AllBytesAdded()
2749 uint8_t ucStream[ ipconfigTCP_MSS ]; in test_lTCPAddRxdata_SteamCreationSuccessful_AllBytesNotAdded()
2784 uint8_t ucStream[ ipconfigTCP_MSS ]; in test_lTCPAddRxdata_FrontSpaceLessThanLowMark()
2825 uint8_t ucStream[ ipconfigTCP_MSS ]; in test_lTCPAddRxdata_LowWaterTrue()
2857 uint8_t ucStream[ ipconfigTCP_MSS ]; in test_lTCPAddRxdata_HasValidHandler()
2903 uint8_t ucStream[ ipconfigTCP_MSS ]; in test_lTCPAddRxdata_HasValidHandler_DataNULL()
2948 uint8_t ucStream[ ipconfigTCP_MSS ]; in test_lTCPAddRxdata_HasValidHandler_NonZeroOffset()
[all …]
DFreeRTOS_Sockets_GenericAPI_utest.c333 FreeRTOS_round_up_ExpectAndReturn( ipconfigTCP_TX_BUFFER_LENGTH, ipconfigTCP_MSS, 0xAABB ); in test_FreeRTOS_socket_TCPSocket_ProtocolDependent()
334 …xpectAndReturn( 1U, ( uint32_t ) ( ipconfigTCP_RX_BUFFER_LENGTH / 2U ) / ipconfigTCP_MSS, 0x1234 ); in test_FreeRTOS_socket_TCPSocket_ProtocolDependent()
335 … FreeRTOS_max_uint32_ExpectAndReturn( 1U, ( uint32_t ) ( 0xAABB / 2U ) / ipconfigTCP_MSS, 0x3456 ); in test_FreeRTOS_socket_TCPSocket_ProtocolDependent()
345 TEST_ASSERT_EQUAL( xSocket->u.xTCP.usMSS, ( uint16_t ) ipconfigTCP_MSS ); in test_FreeRTOS_socket_TCPSocket_ProtocolDependent()
378 FreeRTOS_round_up_ExpectAndReturn( ipconfigTCP_TX_BUFFER_LENGTH, ipconfigTCP_MSS, 0xAABB ); in test_FreeRTOS_socket_TCPSocket()
379 …xpectAndReturn( 1U, ( uint32_t ) ( ipconfigTCP_RX_BUFFER_LENGTH / 2U ) / ipconfigTCP_MSS, 0x1234 ); in test_FreeRTOS_socket_TCPSocket()
380 … FreeRTOS_max_uint32_ExpectAndReturn( 1U, ( uint32_t ) ( 0xAABB / 2U ) / ipconfigTCP_MSS, 0x3456 ); in test_FreeRTOS_socket_TCPSocket()
390 TEST_ASSERT_EQUAL( xSocket->u.xTCP.usMSS, ( uint16_t ) ipconfigTCP_MSS ); in test_FreeRTOS_socket_TCPSocket()
/FreeRTOS-Plus-TCP-v3.1.0/source/
DFreeRTOS_TCP_Utils.c95 #if ( ipconfigTCP_MSS >= tcpMINIMUM_SEGMENT_LENGTH ) in prvSocketSetMSS()
97 ulMSS = ipconfigTCP_MSS; in prvSocketSetMSS()
DFreeRTOS_TCP_Transmission.c570 … ( unsigned ) ( pxSocket->u.xTCP.uxRxWinSize * ipconfigTCP_MSS ), in prvTCPCreateWindow()
578 ulRxWindowSize * ipconfigTCP_MSS, in prvTCPCreateWindow()
579 ulTxWindowSize * ipconfigTCP_MSS, in prvTCPCreateWindow()
DFreeRTOS_IP_Utils.c409 … configASSERT( uxSize >= ( ipSIZE_OF_IPv4_HEADER + ipSIZE_OF_TCP_HEADER + ipconfigTCP_MSS ) ); in vPreCheckConfigs()
DFreeRTOS_Sockets.c486 pxSocket->u.xTCP.usMSS = ( uint16_t ) ipconfigTCP_MSS; in FreeRTOS_socket()
488 …TCP.uxTxStreamSize = ( size_t ) FreeRTOS_round_up( ipconfigTCP_TX_BUFFER_LENGTH, ipconfigTCP_MSS ); in FreeRTOS_socket()
492 …FreeRTOS_max_uint32( 1U, ( uint32_t ) ( pxSocket->u.xTCP.uxRxStreamSize / 2U ) / ipconfigTCP_MSS ); in FreeRTOS_socket()
493 …FreeRTOS_max_uint32( 1U, ( uint32_t ) ( pxSocket->u.xTCP.uxTxStreamSize / 2U ) / ipconfigTCP_MSS ); in FreeRTOS_socket()
/FreeRTOS-Plus-TCP-v3.1.0/source/include/
DFreeRTOSIPConfigDefaults.h642 #ifndef ipconfigTCP_MSS
643 …#define ipconfigTCP_MSS ( ipconfigNETWORK_MTU - ( ipSIZE_OF_IPv4_HEADER + ipSIZE_OF_TCP_HEADER … macro
668 #define ipconfigTCP_RX_BUFFER_LENGTH ( 4U * ipconfigTCP_MSS )
675 #define ipconfigTCP_TX_BUFFER_LENGTH ( 4U * ipconfigTCP_MSS )
/FreeRTOS-Plus-TCP-v3.1.0/tools/tcp_utilities/
Dtcp_mem_stats.c220 STATS_PRINTF( ( "TCPMemStat,TCP_MSS,%u\n", ipconfigTCP_MSS ) ); in vWriteHeader()
224 uxTXSize = ( size_t ) FreeRTOS_round_up( ipconfigTCP_TX_BUFFER_LENGTH, ipconfigTCP_MSS ); in vWriteHeader()
230 …of pucComment, ",Rounded up to %u x MSS (plus %u bytes)", uxTXSize / ipconfigTCP_MSS, uxTara + STR… in vWriteHeader()