diff options
author | kar-rahul-aws <118818625+kar-rahul-aws@users.noreply.github.com> | 2023-02-22 12:58:17 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-22 12:58:17 +0530 |
commit | 38d5e421eb83014c3e3ccb487c847da60a0d94d3 (patch) | |
tree | 9d2fb97eaecd171ab757db580a3903fde92618fa /FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_CLI_Demos/UDP-Related-CLI-commands.c | |
parent | cf603c60fa367871abb3d0f07bdb84d85a08af92 (diff) | |
download | freertos-git-38d5e421eb83014c3e3ccb487c847da60a0d94d3.tar.gz |
Changes in FreeRTOS+TCP demo application files to add compatibility for running EndPoint changes in the IPv4 stack. (#907)
* Update main.c
* Update main.c
* Update main.c
* Update main.c
* TCP/IP Demo Changes for Sock Addr Changes
* Update SimpleClientAndServer.c
* Update TwoEchoClients.c
* Update SimpleUDPClientAndServer.c
* Update main.c
* Update main_networking.c
* Update TwoEchoClients.c
* Update SimpleClientAndServer.c
* Update TwoEchoClients.c
* Update SimpleUDPClientAndServer.c
* Update main_networking.c
* Update main_networking.c
* Update main_networking.c
* Update main.c
* Update main_networking.c
* Update main_networking.c
* Update main.c
* Update main.c
* Update main.c
* Update main_networking.c
* Update main_networking.c
* Update plus_tcp_hooks_winsim.c
* Update plus_tcp_hooks_winsim.c
* Update main.c
* Update main.c
* Update main_networking.c
* Update main_networking.c
* Update plus_tcp_hooks_winsim.c
* Update lexicon.txt
* Update lexicon.txt
* Update lexicon.txt
* Fix core header check
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
* Update main_networking.c
* Update CLI-commands.c
* Update plus_tcp_hooks_winsim.c
* Code review suggestions
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
* Remove incorrect spelling from lexicon
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
* Fix Build issues in QEMU and UDP demo
* Lexicon spell check issue fix
* WinPcap Network Interface update
* Update Network_winPCap.c
* Adding declaration for pxMyInterface for EndPoint changed function in WinPCap.c
* Revert changes for WinPCap.c
* Update NetworkInterface_WinPCap.c
* Minor code review suggestions
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
---------
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
Diffstat (limited to 'FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_CLI_Demos/UDP-Related-CLI-commands.c')
-rw-r--r-- | FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_CLI_Demos/UDP-Related-CLI-commands.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_CLI_Demos/UDP-Related-CLI-commands.c b/FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_CLI_Demos/UDP-Related-CLI-commands.c index 7441b077c..2f47b2918 100644 --- a/FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_CLI_Demos/UDP-Related-CLI-commands.c +++ b/FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_CLI_Demos/UDP-Related-CLI-commands.c @@ -1,6 +1,6 @@ /*
* FreeRTOS V202212.00
- * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
@@ -20,7 +20,7 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* https://www.FreeRTOS.org
- * https://aws.amazon.com/freertos
+ * https://github.com/FreeRTOS
*
*/
@@ -266,28 +266,44 @@ uint32_t ulAddress; switch( xIndex )
{
case 0 :
+ #if defined( FREERTOS_PLUS_TCP_VERSION ) && ( FREERTOS_PLUS_TCP_VERSION >= 10 )
+ FreeRTOS_GetEndPointConfiguration( &ulAddress, NULL, NULL, NULL, pxNetworkEndPoints );
+ #else
FreeRTOS_GetAddressConfiguration( &ulAddress, NULL, NULL, NULL );
+ #endif
sprintf( pcWriteBuffer, "\r\nIP address " );
xReturn = pdTRUE;
xIndex++;
break;
case 1 :
+ #if defined( FREERTOS_PLUS_TCP_VERSION ) && ( FREERTOS_PLUS_TCP_VERSION >= 10 )
+ FreeRTOS_GetEndPointConfiguration( NULL, &ulAddress, NULL, NULL, pxNetworkEndPoints );
+ #else
FreeRTOS_GetAddressConfiguration( NULL, &ulAddress, NULL, NULL );
+ #endif
sprintf( pcWriteBuffer, "\r\nNet mask " );
xReturn = pdTRUE;
xIndex++;
break;
case 2 :
+ #if defined( FREERTOS_PLUS_TCP_VERSION ) && ( FREERTOS_PLUS_TCP_VERSION >= 10 )
+ FreeRTOS_GetEndPointConfiguration( NULL, NULL, &ulAddress, NULL, pxNetworkEndPoints );
+ #else
FreeRTOS_GetAddressConfiguration( NULL, NULL, &ulAddress, NULL );
+ #endif
sprintf( pcWriteBuffer, "\r\nGateway address " );
xReturn = pdTRUE;
xIndex++;
break;
case 3 :
+ #if defined( FREERTOS_PLUS_TCP_VERSION ) && ( FREERTOS_PLUS_TCP_VERSION >= 10 )
+ FreeRTOS_GetEndPointConfiguration( NULL, NULL, NULL, &ulAddress, pxNetworkEndPoints );
+ #else
FreeRTOS_GetAddressConfiguration( NULL, NULL, NULL, &ulAddress );
+ #endif
sprintf( pcWriteBuffer, "\r\nDNS server address " );
xReturn = pdTRUE;
xIndex++;
|