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
Move to netip and bump github.com/mdlayher/ndp #2376
Comments
Hi I'd like to take this if possible. I will be looking at the code and at the library and will be back later. |
cool! Assigning this to you, if you have any questions reach out on the #metallb-dev slack channel |
So, I've been giving a look at the library and at the ndp dependency and I have a few considerations:
Let me know what do you think, thank you! |
Yes, it was just me looking at the wrong place. I remembered ndp to use the new type in the go stdlib, remembered the post about tailscale (who contributed to the std lib) and went looking for it to find the name of the package (which eventually was the intermediate one). So, TL;DR: we should use net/netip which comes with the stdlib, sorry again for the confusion 😅 I'll rename the issue. |
@fulviodenza you might find this article useful |
Is your feature request related to a problem?
The ndp package we use moved to use netaddr. It would make sense for us to start using it all over metallb not only because it would allow us to bump ndp but because it's more efficient (more details on https://tailscale.com/blog/netaddr-new-ip-type-for-go )
Describe the solution you'd like
Replacing all the net.Something instance with the corresponding netaddr, add a translation only where an external library accepts net.Something.
Additional context
No response
I've read and agree with the following
The text was updated successfully, but these errors were encountered: