-
Notifications
You must be signed in to change notification settings - Fork 2k
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
sys/net: Move netif addr<->string functions from gnrc_netif to netif #16965
Conversation
It has nothing to do with gnrc stack. Add l2util as dependency for netif module Update all callsites
Similar to gnrc_netif_addr_to_str renaming
To be used in stack-independent code lwIP is set to use the same length as GNRC, so this does not need to check which stack is in use.
bf594b4
to
aa45feb
Compare
By now, 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.
So NACK from me. Either we do the convoluted wrapper thing or we don't go forward with this, as this seems to be a bigger API change than necessary.
Do you mean only switching to directly calling If it is used directly there but via the gnrc_netif name inside the gnrc stack that feels odd to me. |
Since the |
Yes, that's what I meant. Sorry for the late reply! |
The reason for the wrapper is mostly historical. First, it only existed in GNRC, then it was needed elsewhere, which is where |
To avoid dependency on gnrc files. As suggested in RIOT-OS#16965
To avoid dependency on gnrc files. As suggested in RIOT-OS#16965
Contribution description
Rename
gnrc_netif_addr_(to|from)_str
tonetif_addr_(to|from)_str
and move to the more genericnetif
module.They are inline functions just calling
l2util
anyway.This is a step in having the ifconfig shell command being stack independent.
Testing procedure
tests/gnrc_netif
should still build and pass.ifconfig
shell command with gnrc still workingIssues/PRs references