-
Notifications
You must be signed in to change notification settings - Fork 460
Interface ip_addrs
field from slice to heapless::Vec
#719
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
Conversation
Is there any particular reason you need/want this? What's wrong with the |
It's to fix #458 and some cases of #466. The problem with The alternative would be to change egress to treat (This probably applies to other ManagedSlice's in Interface as well, these'd be better off as |
Exactly what @Dirbaio said. I'm still trying to understand how to fix the failing test though. |
Thanks! I'm pretty sure smoltcp & managed predate heapless so It'll be nice to eventually use heapless instead and phase out managed. I'm sure it would help for #655. |
Before forgetting, there is also an additional point that I briefly discussed with @Dirbaio in private: for now, I used a hardcoded constant as the maximum size of the |
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.
LGTM, thank you!
Yes, we can work on making the max count customizable in the future.
bors r+ |
Build succeeded:
|
As stated in the title.
One cargo test is still failing, needs to be looked into.
Moreover, for now the
heapless::Vec
used is fixed-size.