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 duplicate address detection (ARP) #6157

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brianvanderburg2
Copy link

The original code compare the target IP of an ARP reply packet with the srcaddr/sender IP of the request packet. Instead it should compare the source IP of the ARP reply with the destaddr/target IP of the request packet. In addition this adds the check for ARP requests with the same IP address in case other systems are probing for the same IP at the same time as per recommendation in RFC5227:

image

@brianvanderburg2
Copy link
Author

This is related to #6133

@kmk3 kmk3 changed the title Fix duplicate address detection Fix duplicate address detection (ARP) Jan 16, 2024
Copy link
Collaborator

@kmk3 kmk3 left a comment

Choose a reason for hiding this comment

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

Hello, the commit message body is currently empty; it does not contain any
explanation for what the commit does, which makes it unclear when viewing it
locally.

The current code compares the target IP of an ARP reply packet with the
srcaddr/sender IP of the request packet. Instead it should compare the
source IP of the ARP reply with the destaddr/target IP of the request
packet. In addition, this adds the check for ARP requests with the same
IP address in case other systems are probing for the same IP at the same
time as per the recommendation in RFC 5227.

This is related to #6133.

I formatted your original explanation above, can you add it to the commit
message body and force-push?

The current code compares the target IP of an ARP reply packet with the
srcaddr/sender IP of the request packet. Instead it should compare the
source IP of the ARP reply with the destaddr/target IP of the request
packet. In addition, this adds the check for ARP requests with the same
IP address in case other systems are probing for the same IP at the same
time as per the recommendation in RFC 5227.

This is related to netblue30#6133.
@kmk3
Copy link
Collaborator

kmk3 commented Jan 17, 2024

Thanks, it looks good now.

Note: I'm unfamiliar with the ARP code, so I'll avoid reviewing it for now.
Hopefully someone who is can review it.

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.

2 participants