[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:35:57 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 can research that, but on first glance I would say: remember that this is the main thread. Other application specific messages might land in the queue.

-- 
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_r252968163
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190201/e31bc1e8/attachment.html>


More information about the notifications mailing list