-
Notifications
You must be signed in to change notification settings - Fork 2.1k
shell/gnrc_icmpv6_echo: fix incorrect use of gnrc_netif_highlander() #13737
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
05ce352
to
f247d74
Compare
Following #13736 (comment) I dropped all but 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.
See discussion above
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.
With my suggested fix it works as expected. Please address and squash so we can get this merged ASAP.
Please also fix commit message and PR title for something more in line with the current change. |
ed2f370
to
158ca59
Compare
shell/gnrc_icmpv6_echo: |
We want to check if there *is* only one interface, not if there *can* be no more than one interface here.
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.
Re-ACK. Tested the current state with and without GNRC_NETIF_SINGLE
defined. Please squash.
158ca59
to
e1ce24a
Compare
Contribution description
There are instances where
gnrc_netif_highlander()
is used to check if there is only one interface.The
gnrc_netif_highlander()
however only returns true if there can only be one interface.It will return
false
if there is only one interface, but more could be configured.Testing procedure
see #12994 (comment)
Issues/PRs references
alternative to #13736