-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Conversation
Hello @qiutongs : oops, that was not the intention. ( for those who wonder: |
Looking in the code on the master branch it is always calling ulTCPWindowTxSack from prvSkipPastRemainingOptions, so it seems like we need some logic here to avoid this call when not using sliding windows? Hein can you please advise what the appropriate fix would be here? |
Yes, I am compiling the latest master. When So I think ulTCPWindowTxSack and prvSkipPastRemainingOptions should be both compiled or both not compiled. Please share your feedback. |
@@ -242,7 +242,7 @@ extern uint32_t numaker_ulRand(void); | |||
#define ipconfigUSE_TCP ( 1 ) | |||
|
|||
/* USE_WIN: Let TCP use windowing mechanism. */ | |||
#define ipconfigUSE_TCP_WIN ( 0 ) | |||
#define ipconfigUSE_TCP_WIN ( 1 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does the build pass for other boards (ST, TI, NXP ) that also do not have this macro set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked at the call-sites for ulTCPWindowTxSack
, and I see only a single call from prvReadSackOption
that is currently protected by ipconfigUSE_TCP_WIN
Does the problem not exist anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I will rebase to the latest master and check if Nuvoton eth project can build.
Temporarily closed this PR. |
Hello, as you are working on the Nuveton project, maybe you have any idea why PR #2029 is getting a build error when building the Nuveton project. Thank you! |
Description
Update Nuvoton Ethernet project file
Enable ipconfigUSE_TCP_WIN to fix a link error in this line: https://github.com/aws/amazon-freertos/blame/master/libraries/freertos_plus/standard/freertos_plus_tcp/source/FreeRTOS_TCP_IP.c#L1326
Without ipconfigUSE_TCP_WIN == 1, ulTCPWindowTxSack is undefined
Checklist:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.