-
Notifications
You must be signed in to change notification settings - Fork 18
Fix remote_ip not set in UDP recvfrom #21
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
Conversation
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.
Pull request overview
Adds a new regression unit test intended to reproduce/guard the issue where a UDP socket’s remote_ip is not set after wolfIP_sock_recvfrom().
Changes:
- Added
test_udp_recvfrom_sets_remote_ipto validate thatrecvfrompopulates both the returnedfromaddress and the socket’sts->remote_ip. - Registered the new test in the
tc_prototest case.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
As suggested by copilot
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.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- return the remote port in network order - return the correct error code in woldIP_sock_recvfrom() - fixed test cases
philljj
left a comment
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.
Thank you!
wolfIP_sock_recvfrom