-
Notifications
You must be signed in to change notification settings - Fork 799
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
Replace arping package with arp_notify #687
Conversation
this replaces the arping package with the linux arp_notify feature. Resolves: containernetworking#588 Signed-off-by: Michael Zappa <Michael.Zappa@stateless.net>
e093eeb
to
5d073d6
Compare
plugins/main/ptp/ptp.go
Outdated
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") |
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.
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.
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 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
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.
@mccv1r0 I have removed the arp notify setting
Signed-off-by: Michael Zappa <Michael.Zappa@stateless.net>
4e87328
to
7a55617
Compare
looks good to me, thanks! |
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