-
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/shell/lwip: add IPv4 configuration to lwip ifconfig command #19849
sys/shell/lwip: add IPv4 configuration to lwip ifconfig command #19849
Conversation
I think the right way to go is to add ways of setting it as an opt (continuing on #18069) so that the ifconfig command can share most of the code between the IP stacks. |
Hi! So you idea is to add appropriate |
39dfd21
to
c6f74d9
Compare
I looked through implementation of @miri64 @yarrick could you be so kind and looked at this code and comment it before I provide full implementation of all options associated with IPv4 configuration? |
For IPv4 I started in 0b48789 but having separate opts for the different type of addresses like you proposed is better. (edit: or maybe since they have to be set together it makes sense to have them in one group? See I sent a PR now for removing the last blockers (I think) for using the gnrc_netif shell command instead of the lwIP one. |
If I understand your idea well - you plan to use one version of the Please let me know when you end your work and I could move my configuration code. Accordingly to one
Of course on contrary we have to use three |
@yarrick I checkout your branch Moreover, I would like to know you opinion about spliting IPv4 configuration in three NETOPTs - I provide more details: some pros and cons in the previous post. |
Can we move this PR little forward? Sorry, for bothering - but possibility to change IPv4 address is important for my projects ... and I suspect not only for me. I have interim solution. Could we add to master legacy style command - @yarrick, @miri64, @benpicco what do you think about such interim solution? If I receive a green light I start cleaning my first version of the code, which provides legacy style command. |
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.
c6f74d9
to
32ab481
Compare
cb2b53a
to
e177d3f
Compare
e177d3f
to
0d1acd0
Compare
0d1acd0
to
d279024
Compare
Current version of PR adds legacy style @miri64 I think all mistakes associated with coding conversion are fixed. Code is rebased. |
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.
Thank you for getting back to us and sorry for forgetting about this PR.
The code looks overall fine, intendation is a bit off in some places, but that's an easy fix :)
3b71652
to
67abda0
Compare
493485e
to
bb98720
Compare
bb98720
to
71d47cd
Compare
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.
Looks good to me, thank you for the new feature!
Thanks for useful comments and hints. This feature will be beneficial for my students ;) P.S. Could you add PR to merge queue ... or we wait for more reviews? |
Contribution description
This PR adds to lwip ifconfig shell command, ability to configure IPv4 address, mask and gateway.
Testing procedure
Enable in
example/gcoap
lwip IPv4 stack: in Makefile, line 17 change:to
Configure
tap0
interface:Compile example and run it with
tap0
interface:Test new subcommands added to
ifconfig
command:Issues/PRs references
None