Skip to content

shell/gnrc_icmpv6_echo: separate ICMPv6 echo sending / parsing from shell command #18934

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

Merged
merged 3 commits into from
Jan 19, 2023

Conversation

benpicco
Copy link
Contributor

Contribution description

Sending and parsing ICMPv6 echo messages is deeply intertwined with the _gnrc_icmpv6_ping shell command.

This makes re-using the code e.g. for implementing traceroute very hard.
Therefore move the code to a common place in gnrc_icmpv6_echo.c so it can be re-used by other (shell) functions.

Testing procedure

ping should function as before, no logic changes intended.

> ping ff02::1
12 bytes from fe80::90a7:a6ff:fe4b:2e32%6: icmp_seq=0 ttl=64 time=0.498 ms
12 bytes from fe80::7837:fcff:fe7d:1aaf%6: icmp_seq=0 ttl=64 time=0.760 ms (DUP!)
12 bytes from fe80::90a7:a6ff:fe4b:2e32%6: icmp_seq=1 ttl=64 time=0.187 ms
12 bytes from fe80::7837:fcff:fe7d:1aaf%6: icmp_seq=1 ttl=64 time=0.347 ms (DUP!)
12 bytes from fe80::90a7:a6ff:fe4b:2e32%6: icmp_seq=2 ttl=64 time=0.137 ms

--- ff02::1 PING statistics ---
3 packets transmitted, 3 packets received, 2 duplicates, 0% packet loss
round-trip min/avg/max = 0.137/0.385/0.760 ms

Issues/PRs references

@benpicco benpicco requested a review from maribu November 18, 2022 17:10
@github-actions github-actions bot added Area: network Area: Networking Area: sys Area: System labels Nov 18, 2022
@benpicco benpicco force-pushed the gnrc_icmpv6_echo_send branch 2 times, most recently from 92cb896 to 7d4ef96 Compare November 18, 2022 20:57
@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Nov 18, 2022
@riot-ci
Copy link

riot-ci commented Nov 19, 2022

Murdock results

✔️ PASSED

d415c16 examples/paho-mqtt: re-add stm32mp157c-dk2 to Makefile.ci

Success Failures Total Runtime
6785 0 6785 13m:24s

Artifacts

@benpicco benpicco removed the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Nov 19, 2022
Copy link
Member

@miri64 miri64 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last round of change requests. I think after that we can merge => Please squash directly.

@benpicco benpicco force-pushed the gnrc_icmpv6_echo_send branch from a48d772 to 06ba5ee Compare November 19, 2022 20:58
@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Nov 19, 2022
@benpicco benpicco force-pushed the gnrc_icmpv6_echo_send branch from 06ba5ee to df49280 Compare November 19, 2022 21:50
@benpicco
Copy link
Contributor Author

@miri64 ping :)

@miri64
Copy link
Member

miri64 commented Jan 16, 2023

bors merge

bors bot added a commit that referenced this pull request Jan 16, 2023
18863: boards/esp32s2-mini: add definition for ESP32 S2 Mini r=benpicco a=benpicco



18934: shell/gnrc_icmpv6_echo: separate ICMPv6 echo sending / parsing from shell command r=miri64 a=benpicco



Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
@miri64
Copy link
Member

miri64 commented Jan 16, 2023

bors cancel
bors merge

@bors
Copy link
Contributor

bors bot commented Jan 16, 2023

Canceled.

bors bot added a commit that referenced this pull request Jan 16, 2023
18863: boards/esp32s2-mini: add definition for ESP32 S2 Mini r=miri64 a=benpicco



18934: shell/gnrc_icmpv6_echo: separate ICMPv6 echo sending / parsing from shell command r=miri64 a=benpicco



19154: tests/gcoap_dns: Remove duplicate r=miri64 a=Teufelchen1

### Contribution description

Removes a duplicated test. Originally, the test should have looked different and not be a duplicate. However, the behavior the test aimed at is no longer present anyway, hence it can be removed - rather than fixed. 

Further insights can be provided by `@miri64` 

Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Teufelchen1 <bennet.blischke@haw-hamburg.de>
@bors
Copy link
Contributor

bors bot commented Jan 16, 2023

Build failed (retrying...):

bors bot added a commit that referenced this pull request Jan 16, 2023
18934: shell/gnrc_icmpv6_echo: separate ICMPv6 echo sending / parsing from shell command r=miri64 a=benpicco



19060: SUBSYSTEMS.md: migrate subsystem list from wiki r=maribu a=jia200x



19154: tests/gcoap_dns: Remove duplicate r=miri64 a=Teufelchen1

### Contribution description

Removes a duplicated test. Originally, the test should have looked different and not be a duplicate. However, the behavior the test aimed at is no longer present anyway, hence it can be removed - rather than fixed. 

Further insights can be provided by `@miri64` 

Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
Co-authored-by: Jose Alamos <jose@alamos.cc>
Co-authored-by: Teufelchen1 <bennet.blischke@haw-hamburg.de>
@maribu
Copy link
Member

maribu commented Jan 16, 2023

bors cancel
bors merge

Come on, bors. We have have four PRs in the merge train! :)

🚂 🚋 🚋 🚋 🚋

@bors
Copy link
Contributor

bors bot commented Jan 16, 2023

Canceled.

bors bot added a commit that referenced this pull request Jan 16, 2023
18934: shell/gnrc_icmpv6_echo: separate ICMPv6 echo sending / parsing from shell command r=maribu a=benpicco



19060: SUBSYSTEMS.md: migrate subsystem list from wiki r=maribu a=jia200x



19154: tests/gcoap_dns: Remove duplicate r=miri64 a=Teufelchen1

### Contribution description

Removes a duplicated test. Originally, the test should have looked different and not be a duplicate. However, the behavior the test aimed at is no longer present anyway, hence it can be removed - rather than fixed. 

Further insights can be provided by `@miri64` 

Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
Co-authored-by: Jose Alamos <jose@alamos.cc>
Co-authored-by: Teufelchen1 <bennet.blischke@haw-hamburg.de>
@bors
Copy link
Contributor

bors bot commented Jan 16, 2023

Build failed (retrying...):

@benpicco
Copy link
Contributor Author

bors cancel

@bors
Copy link
Contributor

bors bot commented Jan 16, 2023

Canceled.

@benpicco
Copy link
Contributor Author

bors retry

1 similar comment
@benpicco
Copy link
Contributor Author

bors retry

@benpicco
Copy link
Contributor Author

bors merge

@benpicco
Copy link
Contributor Author

bors ping

bors bot added a commit that referenced this pull request Jan 17, 2023
18934: shell/gnrc_icmpv6_echo: separate ICMPv6 echo sending / parsing from shell command r=benpicco a=benpicco



Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
@bors
Copy link
Contributor

bors bot commented Jan 17, 2023

pong

@benpicco
Copy link
Contributor Author

benpicco commented Jan 17, 2023

let's see if this PR was what caused the last merge train to fail

@bors
Copy link
Contributor

bors bot commented Jan 17, 2023

Build failed:

@benpicco benpicco force-pushed the gnrc_icmpv6_echo_send branch from df49280 to 3849ade Compare January 17, 2023 11:26
@github-actions github-actions bot added the Area: examples Area: Example Applications label Jan 17, 2023
@miri64
Copy link
Member

miri64 commented Jan 18, 2023

bors cancel
bors merge

@miri64 miri64 added Area: sys Area: System and removed Area: sys Area: System labels Jan 18, 2023
@benpicco benpicco force-pushed the gnrc_icmpv6_echo_send branch from 3849ade to d415c16 Compare January 18, 2023 13:47
@bors
Copy link
Contributor

bors bot commented Jan 18, 2023

Canceled.

@benpicco benpicco added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Jan 18, 2023
@benpicco
Copy link
Contributor Author

bors merge

@bors
Copy link
Contributor

bors bot commented Jan 19, 2023

Build succeeded:

@bors bors bot merged commit e248f95 into RIOT-OS:master Jan 19, 2023
@benpicco benpicco deleted the gnrc_icmpv6_echo_send branch January 19, 2023 15:55
@MrKevinWeiss MrKevinWeiss added this to the Release 2023.04 milestone Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: examples Area: Example Applications Area: network Area: Networking Area: sys Area: System CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants