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

Replace arping package with arp_notify #687

Merged
merged 2 commits into from
Jan 19, 2022

Conversation

MikeZappa87
Copy link
Contributor

@MikeZappa87 MikeZappa87 commented Jan 7, 2022

This PR replaces the arping package with the linux arp_notify feature.

Each plugin with tested using the cnitool and wireshark. Each one generated the appropriate arp announcement. If you need pictures of this I can supply them.

Resolves: #588

This might also resolve: #569

@MikeZappa87 MikeZappa87 changed the title plugins: replace arping package with arp_notify Replace arping package with arp_notify Jan 7, 2022
this replaces the arping package with the linux arp_notify feature.

Resolves: containernetworking#588
Signed-off-by: Michael Zappa <[email protected]>
contVeth, err := net.InterfaceByName(ifName)
if err != nil {
return fmt.Errorf("failed to look up %q: %v", ifName, err)
}

_, _ = sysctl.Sysctl(fmt.Sprintf("net/ipv4/conf/%s/arp_notify", ifName), "1")
Copy link
Member

Choose a reason for hiding this comment

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

It probably won't hurt anything (Linux should do the "right thing" ), but I don't think we need garp on a point to point link.

Copy link
Contributor Author

@MikeZappa87 MikeZappa87 Jan 7, 2022

Choose a reason for hiding this comment

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

I can remove it, I was just keeping with the previous behavior? To state the behavior right now is once the container veth is set to up is that you see an arp announcement frame

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mccv1r0 I have removed the arp notify setting

@squeed
Copy link
Member

squeed commented Jan 19, 2022

looks good to me, thanks!

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.

Use "arp_notify" sysctl instead of generating gratuitous arp ourselves
4 participants