1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/shell/commands
Benjamin Valentin 7d1dd27756 shell/gnrc_icmpv6_echo: Fix hang with no msg queue
`msg_avail()` will return -1 if the thread has no message queue.
Casting this to unsigned will result in the `ping` command to try
receiving 4294967295 messages, which hangs the shell.

Drop the cast to `unsigned` and the loop behaves as intended.
But then it's still wrong: If new messages become available, they
would be ignored.

So change the `for` loop to a `while` loop. The index variable is
not used at all.
2021-11-24 12:00:14 +01:00
..
Kconfig sys/shell/commands: add i2c_scanner deps to Kconfig 2021-02-18 13:22:54 +01:00
Makefile sys/shell: hide random commands behind random_cmd pseudo-module 2021-11-19 16:53:46 +01:00
sc_app_metadata.c
sc_at30tse75x.c
sc_benchmark_udp.c test_utils: add UDP benchmark 2021-09-02 23:12:31 +02:00
sc_blacklist.c
sc_can.c treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
sc_ccnl.c treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
sc_cord_ep.c cord_ep: allow not specify netif if only one interface exist 2020-06-30 22:36:23 +02:00
sc_cryptoauthlib.c sys/shell: add cryptoauthlib shell handler 2020-03-31 21:31:24 +02:00
sc_dfplayer.c sys/shell/commands/sc_dfplayer: make cppcheck happy 2021-11-22 12:25:58 +01:00
sc_disk.c sys/shell: fix typos 2019-11-23 22:39:38 +01:00
sc_fib.c many typo fixes 2019-11-23 22:39:07 +01:00
sc_gnrc_6ctx.c sys/shell/sc_gnrc_6ctx: use ztimer if available 2021-04-16 11:38:54 +02:00
sc_gnrc_6lo_frag_stats.c gnrc_sixlowpan_frag_sfr: provide statistics sub-module 2020-12-14 13:00:37 +01:00
sc_gnrc_icmpv6_echo.c shell/gnrc_icmpv6_echo: Fix hang with no msg queue 2021-11-24 12:00:14 +01:00
sc_gnrc_ipv6_frag_stats.c treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
sc_gnrc_ipv6_nib.c sys/*: add explicit include of timex.h 2020-10-21 21:47:31 +02:00
sc_gnrc_netif.c sys/shell/gnrc_netif: Allow 'ifconfig help' 2021-10-22 14:14:58 +02:00
sc_gnrc_pktbuf.c
sc_gnrc_rpl.c sys/shell/sc_gnrc_rpl: do not print tricke TC 2021-06-14 11:22:49 +02:00
sc_heap.c sys/shell: cleanup the heap command approach 2019-09-05 09:18:46 +02:00
sc_i2c_scan.c
sc_loramac.c net/lorawan : Move 'LORAMAC_DEFAULT_TX_MODE' to 'CONFIG_' 2021-01-26 16:52:58 +01:00
sc_lwip_netif.c sys/shell: lwIP: make use of netif_get_name() 2021-08-26 13:20:24 +02:00
sc_netstats_nb.c shell_commands: provide command for neighbor statistics 2021-02-09 12:27:58 +01:00
sc_nimble_netif.c sys/shell/sc_nimble_netif: add ping subcommand 2021-10-06 16:47:34 +02:00
sc_nimble_statconn.c sys/shell: add nimble_statconn shell command 2020-07-06 08:14:09 +02:00
sc_openwsn.c sys/shell/commands/sc_openwsn: update components 2020-12-11 09:07:49 +01:00
sc_pm.c sys/shell: commands: Check argc in _pm_handler 2020-05-02 20:55:28 +01:00
sc_ps.c
sc_random.c
sc_rtc.c treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
sc_rtt.c sys/shell: add rtt command 2020-03-19 17:17:26 +01:00
sc_saul_reg.c sys/shell/saul: Don't print from NULL 2021-03-22 21:53:49 +01:00
sc_sht1x.c sys/shell/commands/sc_sht1x.c: fix style 2021-04-01 10:19:30 +02:00
sc_sntp.c picolibc: Use most NEWLIB code with picolibc 2020-08-24 08:26:16 -07:00
sc_suit.c treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
sc_sys.c usb_board_reset: Split headers into public and private 2020-07-01 13:22:25 +02:00
sc_vfs.c many typo fixes 2019-11-23 22:39:07 +01:00
sc_whitelist.c
shell_commands.c sys/shell: hide random commands behind random_cmd pseudo-module 2021-11-19 16:53:46 +01:00