Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake changes from main branch [PR: #557, PR: #742] #803

Conversation

tony-josi-aws
Copy link
Member

@tony-josi-aws tony-josi-aws commented Mar 20, 2023

Description

This PR updates the cmake changes added to the main branch to the dev/IPv6_integration branch and related fix for warnings and build errors.

PRs:

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

Updating dev/IPv6_integration branch wrt. main.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@tony-josi-aws tony-josi-aws requested a review from a team as a code owner March 20, 2023 10:51
@tony-josi-aws
Copy link
Member Author

/bot run uncrustify

@tony-josi-aws
Copy link
Member Author

/bot run uncrustify

@tony-josi-aws
Copy link
Member Author

/bot run uncrustify

.github/workflows/ci.yml Show resolved Hide resolved
source/FreeRTOS_DHCPv6.c Outdated Show resolved Hide resolved
source/FreeRTOS_ND.c Outdated Show resolved Hide resolved
@tony-josi-aws
Copy link
Member Author

/bot run uncrustify

Copy link
Contributor

@htibosch htibosch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Tony for this PR.
I only have some minor comments, mostly about printf() formats for logging and some casts.

source/FreeRTOS_DHCPv6.c Outdated Show resolved Hide resolved
source/FreeRTOS_DHCPv6.c Outdated Show resolved Hide resolved
source/FreeRTOS_IP_Utils.c Show resolved Hide resolved
source/include/FreeRTOS_Sockets.h Show resolved Hide resolved
source/FreeRTOS_DNS_Parser.c Show resolved Hide resolved
source/FreeRTOS_RA.c Outdated Show resolved Hide resolved
source/FreeRTOS_RA.c Outdated Show resolved Hide resolved
source/FreeRTOS_IPv6.c Outdated Show resolved Hide resolved
source/FreeRTOS_Routing.c Outdated Show resolved Hide resolved
source/FreeRTOS_TCP_Transmission.c Show resolved Hide resolved
@tony-josi-aws
Copy link
Member Author

/bot run uncrustify

@@ -325,7 +325,7 @@ void vDHCPv6Process( BaseType_t xReset,
}
else
{
FreeRTOS_printf( ( "vDHCPv6Process: malloc failed %u byt4es\n", sizeof( *pxEndPoint->pxDHCPMessage ) ) );
FreeRTOS_printf( ( "vDHCPv6Process: malloc failed %u bytes\n", ( unsigned ) sizeof( *pxEndPoint->pxDHCPMessage ) ) );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for consistency -

Suggested change
FreeRTOS_printf( ( "vDHCPv6Process: malloc failed %u bytes\n", ( unsigned ) sizeof( *pxEndPoint->pxDHCPMessage ) ) );
FreeRTOS_printf( ( "vDHCPv6Process: malloc failed %u bytes\n", ( unsigned int ) sizeof( *pxEndPoint->pxDHCPMessage ) ) );

@@ -313,10 +313,9 @@
xSet.usPortNumber = usPort;
xSet.ppxLastAddress = &( xSet.pxLastAddress );

#if ( ipconfigUSE_LLMNR == 1 )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would the right change be to replace #ifndef _lint with #if ( ipconfigUSE_LLMNR == 1 )?

@@ -1043,6 +1045,11 @@
NetworkEndPoint_t xEndPoint;
BaseType_t xMustReply = pdFALSE;

/* Not used for now */
( void ) uxBufferLength;
( void ) uxBytesNeeded;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove the local variables if they are not used.

@@ -56,6 +56,11 @@
void prvSocketSetMSS_IPV6( FreeRTOS_Socket_t * pxSocket )
{
uint32_t ulMSS = ipconfigTCP_MSS;

#if ( ipconfigHAS_DEBUG_PRINTF == 1 )
char cBuffer[ 40 ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would cIPv6Address be a better name?


#endif

extern const struct xIPv6_Address FreeRTOS_in6addr_any;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good!

@@ -223,6 +232,17 @@ void vAssertCalled( const char * pcFile,
}
/*-----------------------------------------------------------*/

void vLoggingPrintf( const char * pcFormat,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still needed as configPRINTF is defined to empty?

void vAssertCalled( const char * pcFile,
uint32_t ulLine )
unsigned long ulLine )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this function needed given the configASEERT is not defined?

@tony-josi-aws
Copy link
Member Author

/bot run uncrustify

@tony-josi-aws tony-josi-aws merged commit 8926945 into FreeRTOS:dev/IPv6_integration Mar 27, 2023
HTRamsey pushed a commit to HTRamsey/FreeRTOS-Plus-TCP that referenced this pull request Jun 19, 2023
…reeRTOS#803)

* 556 Initial Cmake Module definition. FreeRTOS#557

* renaming variables that have conflicting names with MSC and *nix headers

* fix build issue for posix port

* Fix warning: -Waddress-of-packed-member when calculating checksum directly from network packets

* fix warnings with prvInitialiseTCPFields declaration

* removing macros that hides the structure fields

* Updating build check enable all config to enable all config macros

* CMake: Fix GIT_REPOSITORY and GIT_TAG (FreeRTOS#742)

* moving ipTRUE_BOOL and ipFALSE_BOOL out of #ifndef pdTRUE_SIGNED check as they are not defined in kernel

* minor fix to the cmake files and main file

* Uncrustify: triggered by comment.

* adding doxygen comments to new functions

* Uncrustify: triggered by comment

* Add more warnings check and fix warnings

* Uncrustify: triggered by comment

* fix review feedback and more debug printf warnings fix

* more warnings fix

* fix misra issues

* Uncrustify: triggered by comment

* replace sin_addr with sin_address.ulIP_IPv4 in +TCP demos

* replace sin_addr6 with sin_address.xIP_IPv6 in +TCP demos

* replace freertos_sockaddr6 with freertos_sockaddr in +TCP demos

* review feedback changes

* removing duplicate def for prvStreamBufferAdd from winpcap

* fix more warnings from MSVC

* Uncrustify: triggered by comment

* review feedback changes

* Uncrustify: triggered by comment

---------

Co-authored-by: phelter <[email protected]>
Co-authored-by: Nikhil Kamath <[email protected]>
Co-authored-by: GitHub Action <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants