diff options
author | Tony Josi <tonyjosi@amazon.com> | 2023-05-12 10:39:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-12 16:09:24 +0530 |
commit | cc463b15ed0766aef8ba3c3ef6084cc6e835e61a (patch) | |
tree | 0e28e390b630d40df5fd2248b39e66ef9c370f5e /FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_UDP_Demos | |
parent | c6ebab30feb8d382938348abdfaf577df2ded06b (diff) | |
download | freertos-git-devIPv6.tar.gz |
TCP demo changes post build separation (#1011)devIPv6
* adding sin_family to dest adddr for FreeRTOS_sendto
* updating FreeRTOS_bind to input sin_family post build separation changes
* updating FreeRTOS_connect to input sin_family post build separation changes
* minor fix
* updating copyright year
* updating file headers
* updating +TCP submodule
* updating file headers
* updating file headers
* updating manifest file to have latest +TCP submodule hash
Diffstat (limited to 'FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_UDP_Demos')
-rw-r--r-- | FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_UDP_Demos/CLICommands/UDPCommandServer.c | 5 | ||||
-rw-r--r-- | FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_UDP_Demos/EchoClients/TwoEchoClients.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_UDP_Demos/CLICommands/UDPCommandServer.c b/FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_UDP_Demos/CLICommands/UDPCommandServer.c index 0be8f5c9c..10730610a 100644 --- a/FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_UDP_Demos/CLICommands/UDPCommandServer.c +++ b/FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_UDP_Demos/CLICommands/UDPCommandServer.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
*
*/
@@ -190,6 +190,7 @@ xSocket_t xSocket = FREERTOS_INVALID_SOCKET; /* Set family and port. */
xServer.sin_port = FreeRTOS_htons( usPort );
+ xServer.sin_family = FREERTOS_AF_INET;
/* Bind the address to the socket. */
if( FreeRTOS_bind( xSocket, &xServer, sizeof( xServer ) ) == -1 )
diff --git a/FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_UDP_Demos/EchoClients/TwoEchoClients.c b/FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_UDP_Demos/EchoClients/TwoEchoClients.c index 6cba51074..c40e350e2 100644 --- a/FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_UDP_Demos/EchoClients/TwoEchoClients.c +++ b/FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_UDP_Demos/EchoClients/TwoEchoClients.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
*
*/
@@ -147,6 +147,8 @@ uint32_t xAddressLength = sizeof( xEchoServerAddress ); }
#endif /* defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 0 ) */
+ xEchoServerAddress.sin_family = FREERTOS_AF_INET;
+
for( ;; )
{
/* Create a socket. */
@@ -267,6 +269,8 @@ const size_t xBufferLength = strlen( pcStringToSend ) + 15; }
#endif /* defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 0 ) */
+ xEchoServerAddress.sin_family = FREERTOS_AF_INET;
+
for( ;; )
{
/* Create a socket. */
|