-
Notifications
You must be signed in to change notification settings - Fork 363
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
[ipv6] Add GratuitousNDP for Pod creation #3998
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3998 +/- ##
==========================================
+ Coverage 64.56% 64.64% +0.07%
==========================================
Files 295 296 +1
Lines 43838 43915 +77
==========================================
+ Hits 28303 28387 +84
- Misses 13248 13254 +6
+ Partials 2287 2274 -13
*This pull request uses carry forward flags. Click here to find out more.
|
/test-windows-proxyall-e2e |
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 think we already have NDP utils in pkg/agent/util/ndp/ndp_linux.go
?
/test-ipv6-e2e |
Yes, I moved this file to |
/test-all |
/test-ipv6-only-e2e |
/test-windows-all |
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.
Nits
pkg/agent/util/ndp/ndp.go
Outdated
"github.com/mdlayher/ndp" | ||
) | ||
|
||
// GratuitousNDPOverIface sends an gratuitous NDP over interface 'iface' from 'srcIP'. |
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.
from iface using srcIP as the source IP
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.
Fixed.
pkg/agent/util/ndp/ndp.go
Outdated
|
||
// GratuitousNDPOverIface sends an gratuitous NDP over interface 'iface' from 'srcIP'. | ||
func GratuitousNDPOverIface(srcIP net.IP, iface *net.Interface) error { | ||
ipv4 := srcIP.To4() |
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.
Nit: if srcIP.To4() != nil
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.
"a gratuitous NDP"
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.
Thanks. FIxed.
Signed-off-by: gran <gran@vmware.com>
/test-all |
/test-e2e |
Signed-off-by: gran gran@vmware.com