1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

778 Commits

Author SHA1 Message Date
Benjamin Valentin
3b40ca2b26 shell/gnrc_icmpv6_echo: test for ICMPv6 echo reply corruption
The Linux ping utility has the nice feature that fills the ICMPv6 echo
request payload with a pattern `payload_index & 0xFF`.
Then the ICMPv6 echo response payload is checked to verify that the pattern
is still intact.

This way corrupted messages can be detected.
In the past that revealed some 6lo-fragmentation bugs in Linux when
corrupted replies arrived.

This feature is also useful for RIOT, so implement it in RIOTs `ping`
command.
2021-08-11 12:04:22 +02:00
Benjamin Valentin
657be1c488 sys/shell/commands: gnrc_icmpv6_echo: use netutils_get_ipv6() 2021-07-20 22:44:40 +02:00
017d33825f sys/shell/commands: gnrc_icmpv6_echo: use msg_avail() 2021-07-05 10:35:40 +02:00
Hauke Petersen
1fb34b364b sys/shell/sc_gnrc_rpl: do not print tricke TC 2021-06-14 11:22:49 +02:00
chrysn
9ece00f10d sys/shell/sc_gnrc_rpl: Err out early if RPL not even started
Closes: https://github.com/RIOT-OS/RIOT/issues/16357
2021-04-20 17:04:27 +02:00
Hauke Petersen
feeffb2b2e sys/shell/sc_gnrc_6ctx: use ztimer if available 2021-04-16 11:38:54 +02:00
Hauke Petersen
d605cf4c15 shell/sc_nimble_netif: fix _connect_name scan dur 2021-04-15 12:42:41 +02:00
Hauke Petersen
01770fb9ae sys/shell/sc_nimble_netif: use ztimer 2021-04-15 09:11:53 +02:00
Marian Buschsieweke
78aa197ab8
sys/shell/commands/sc_sht1x.c: fix style 2021-04-01 10:19:30 +02:00
Hauke Petersen
91bf7bc376
Merge pull request #15920 from haukepetersen/add_nimble_netifscchanmap
pkg/nimble/netif: allow to read used channel map
2021-03-31 10:10:35 +02:00
chrysn
9eaaa68641 sys/shell/saul: Don't print from NULL
SAUL devices can legitimately be unnamed; catching all attempts to read
their names with a generic "(no name)" name.
2021-03-22 21:53:49 +01:00
010ba56174
Merge pull request #16061 from kaspar030/xfa_shell
sys/shell: add XFA support
2021-03-09 14:47:43 +01:00
3eaa1beb56 sys/shell: initial XFA support 2021-03-02 14:57:29 +01:00
Martine Lenders
f19c8bad01
congure_test: make shell commands shorter 2021-03-01 14:41:31 +01:00
Hauke Petersen
18d6e122b5 sys/shell/nimble_netif: add list channel map cmd 2021-02-26 10:21:21 +01:00
Martine Lenders
e65fee4587
congure_test: initial import of CongURE test framework 2021-02-26 10:08:12 +01:00
Martine Lenders
afb027852d
Merge pull request #15992 from yarrick/more_lwip
Add lwIP ifconfig shell command
2021-02-23 16:59:41 +01:00
Erik Ekman
eab317749f sys/shell: Add lwIP ifconfig shell command
Lists state, link type, v4/v6 addresses.
Currently read-only.

Using lwIP debug system to print addresses, to limit dependencies
and work with dual stack setup. Most other code seems to only
allow either v4 or v6 networking. For that to compile I
had to change the `SZT_F` format string due to this error:
```
error: format '%lu' expects argument of type 'long unsigned int',
but argument 2 has type 'size_t {aka unsigned int}'
```
Switching to the lwIP default format string here.

Outputs the following on my ESP32 board with Ethernet,
when both v4 and v6 are enabled in examples/paho-mqtt:
```
> ifconfig
Iface ET0 HWaddr: 24:0a:c4:e6:0e:9f Link: up State: up
        Link type: wired
        inet addr: 10.4.4.81 mask: 255.255.254.0 gw: 10.4.4.1
        inet6 addr: fe80:0:0:0:260a:c4ff:fee6:e9f scope: link
        inet6 addr: 2001:db8:1000:0:260a:c4ff:fee6:e9f scope: global
Iface ET1 HWaddr: 24:0a:c4:e6:0e:9c Link: up State: up
        Link type: wireless
        inet addr: 10.4.4.82 mask: 255.255.254.0 gw: 10.4.4.1
        inet6 addr: fe80:0:0:0:260a:c4ff:fee6:e9c scope: link
        inet6 addr: 2001:db8:1000:0:260a:c4ff:fee6:e9c scope: global
>
```
2021-02-23 11:47:45 +01:00
7c1cb66fe2
Merge pull request #15246 from haukepetersen/add_example_i2cscanner
examples: add I2C scanner
2021-02-19 15:02:47 +01:00
Martine Lenders
561960769f
shell/Kconfig: make config options usable with dependency resolution 2021-02-19 13:22:47 +01:00
Hauke Petersen
5d9e9fb9d7 sys/shell/commands: add i2c_scanner deps to Kconfig 2021-02-18 13:22:54 +01:00
Martine Lenders
e740e75f1d
shell/Kconfig: fix SHELL_SHUTDOWN_ON_EXIT dependency
Symbol `CPU_NATIVE` does not exist within Kconfig.
2021-02-17 17:21:43 +01:00
Benjamin Valentin
37dbbd969b shell_commands: provide command for neighbor statistics 2021-02-09 12:27:58 +01:00
Leandro Lanzieri
8a29cf285d
sys/shell: fix menuconfig symbol name 2021-02-04 12:46:19 +01:00
Leandro Lanzieri
67f36d78a9
sys/shell: document configs and add to Kconfig 2021-02-04 09:19:43 +01:00
Akshai M
d2d90fbce5 net/lorawan : Move 'LORAMAC_DEFAULT_TX_MODE' to 'CONFIG_'
Move 'LORAMAC_DEFAULT_TX_MODE' to 'CONFIG_' and added symbols
for Kconfig exposure
2021-01-26 16:52:58 +01:00
Akshai M
aa3b1da0c4 net/lorawan : Move 'LORAMAC_DEFAULT_TX_PORT' to 'CONFIG_' 2021-01-26 16:52:58 +01:00
Marian Buschsieweke
b50964f6fc
sys/net/gnrc: fix in-band signaling of no RSSI
Previously a value of 0 was used for the RSSI to signal that this value is not
present in `gnrc_netif_hdr_t`. However, an RSSI of 0 dBm is legal and even very
plausible data.

This commit defines `GNRC_NETIF_HDR_NO_RSSI` as `INT16_MIN`, which is below the
noise floor in the vacuum of outer space and hence impossible to receive.
For consistency, also GNRC_NETIF_HDR_NO_LQI is defined.
2021-01-13 08:53:33 +01:00
04aaed6f86
sys/shell/nimble_netif: don't cast result of atoi 2021-01-08 14:37:33 +01:00
4c4a396120
sys/shell/sht1x: fix typo (PARMS => PARAMS) 2021-01-08 10:15:33 +01:00
b277a6bad5
sys/shell: fix use of suit shell command 2020-12-30 19:06:41 +01:00
Martine S. Lenders
e980405cbc
gnrc_sixlowpan_frag_sfr: provide statistics sub-module 2020-12-14 13:00:37 +01:00
Francisco Molina
2761bba370
sys/shell/commands/sc_openwsn: update components 2020-12-11 09:07:49 +01:00
Francisco
0a064806e3
Merge pull request #15443 from benpicco/l2util_addr
replace netif_addr_to/from_str() with l2util_addr_to/from_str()
2020-12-02 09:21:16 +01:00
c1874c8d89 all: add missing limits.h includes
Removal of kernel_types.h make these necessary.
2020-11-25 17:52:34 +01:00
0b801c4de0 all: adapt to moved sched defines 2020-11-23 16:56:34 +01:00
Benjamin Valentin
dbf6b1e25c sys/net: replace netif_addr_to/from_str with l2util_addr… 2020-11-17 10:51:22 +01:00
Leandro Lanzieri
fb282c37e1
sys/shell: Add module to Kconfig 2020-11-06 15:57:54 +01:00
benpicco
9681c204d6
Merge pull request #14959 from benpicco/at86rf215-mr-fsk
drivers/at86rf215: implement MR-FSK
2020-11-03 11:26:24 +01:00
Bas Stottelaar
80d9da90df sys/*: add missing include of assert.h 2020-10-22 11:13:09 +02:00
Francisco
5e7ee01755
Merge pull request #14345 from HendrikVE/pr/shell-exit-on-ctrl-d
sys/shell: terminate shell on Ctrl-D
2020-10-22 09:25:13 +02:00
Bas Stottelaar
47d376c5c3 sys/*: add explicit include of timex.h 2020-10-21 21:47:31 +02:00
Hendrik van Essen
aead3162ec sys/shell: terminate shell on Ctrl-D
Ctrl-D was not caught in a special case so it was interpreted as
a standard character. Handle it now the same way like EOF and
terminate the shell instance.
2020-10-21 17:40:44 +02:00
Martine Lenders
45144fb4a4
treewide: use new gnrc_pkt API functions instead of utlist.h macros 2020-10-13 13:32:53 +02:00
c2685e4e3c
sys/shell/sht1x: fix typo 'presicion' -> 'precision' 2020-10-02 08:15:56 +02:00
Marian Buschsieweke
5a04f48238
sys/shell/commands/gnrc_icmpv6_echo: Fix alignment
Fix unaligned memory access in `ping6` shell command
2020-09-25 12:42:02 +02:00
Francisco Molina
19494a4db3
pkg/openwsn: add riot based openwsn scheduler 2020-09-10 09:37:43 +02:00
Benjamin Valentin
471e81d544 ieee802154: add definitions & config options for MR-FSK 2020-09-07 15:40:56 +02:00
892a681ea4
Merge pull request #14803 from fjmolinas/pr_openwsn_shell_commands
pkg/openwsn: add shell commands
2020-09-02 21:11:35 +02:00
Francisco Molina
badfa06694
pkg/openwsn: add shell commands 2020-09-02 17:19:00 +02:00