[riot-notifications] [RIOT-OS/RIOT] shell_commands: adapt ping6 to original-ping-like implementation (#9523)

Martine Lenders notifications at github.com
Fri Feb 1 09:37:36 CET 2019


miri64 commented on this pull request.



> +
+        msg_receive(&msg);
+        switch (msg.type) {
+            case GNRC_NETAPI_MSG_TYPE_RCV: {
+                _handle_reply(&data, msg.content.ptr);
+                gnrc_pktbuf_release(msg.content.ptr);
+                break;
+            }
+            case _SEND_NEXT_PING:
+                _pinger(&data);
+                break;
+            case _PING_FINISH:
+                goto finish;
+            default:
+                /* requeue wrong packets */
+                msg_send(&msg, sched_active_pid);

(I did it because the current version in master does it as well: https://github.com/RIOT-OS/RIOT/blob/1d693403b65231b6784a25f6bb5a1c2657af6834/sys/shell/commands/sc_icmpv6_echo.c#L302-L305)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/9523#discussion_r252968506
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190201/7fa86485/attachment.html>


More information about the notifications mailing list