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

Fix ARP failure with loopback addresses #1185

Merged
merged 8 commits into from
Sep 12, 2024

Conversation

tony-josi-aws
Copy link
Member

Description

This PR updates the eARPGetCacheEntry to handle loopback addresses correctly and assign the loopback endpoint's MAC address as the lookup MAC address.

Update the loopback interface to refresh the ARP/ND caches correctly and drop packets that cannot find a matching endpoint that can handle the packet.

We thank @htibosch for this fix.

Also thanks to @rickou and @grap for reporting this issue in #1179 and in the FreeRTOS forum.

Test Steps

Loopback test on TCP socket with STM32H7 NUCLEO.

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

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 September 11, 2024 06:52
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-josi-aws for creating this PR and repairing the unit-tests.
The loopback users will be happy.

@tony-josi-aws tony-josi-aws merged commit a45bfe2 into FreeRTOS:main Sep 12, 2024
10 checks passed
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.

4 participants