sys/net: Move netif addr<->string functions from gnrc_netif to netif#16965
sys/net: Move netif addr<->string functions from gnrc_netif to netif#16965yarrick wants to merge 3 commits intoRIOT-OS:masterfrom
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 |
miri64
left a comment
There was a problem hiding this comment.
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)_strtonetif_addr_(to|from)_strand move to the more genericnetifmodule.They are inline functions just calling
l2utilanyway.This is a step in having the ifconfig shell command being stack independent.
Testing procedure
tests/gnrc_netifshould still build and pass.ifconfigshell command with gnrc still workingIssues/PRs references