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

49 Commits

Author SHA1 Message Date
Marian Buschsieweke
5a47d6a9b8
sys/net/gnrc/rpl: sync access to netstats
Synchronize the RPL thread updating the RPL netstats with the RPL
shell command reading it by disabling IRQs. This will prevent printing
corrupted data on non-32bit platforms as well as printing inconsistent
data (e.g. TX count of old state in conjunction with TX bytes of new
state) for all platforms.

Co-authored-by: Martine Lenders <mail@martine-lenders.eu>
2022-06-30 09:48:46 +02:00
Marian Buschsieweke
93d8bade8e
sys/net/gnrc/rpl: refactor netstats_rpl_t
There is a repeating pattern in the struct that is split out into a
subtype in this commit. This makes handling the data easier, as now
done in the print routine.
2022-06-30 09:48:45 +02:00
Marian Buschsieweke
4f769c2f55
sys/shell/commands: add static qualifier where appropriate
Due to the conversion to XFA based SHELL_COMMAND() much fewer function
need to expose a symbol. Hence, spray `static` all over the place.
2022-06-11 14:38:58 +02:00
Marian Buschsieweke
5ea582b3dd
sys/shell_commands: convert to SHELL_COMMAND()
Make use of XFA for shell commands
2022-06-07 09:25:04 +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
Bas Stottelaar
47d376c5c3 sys/*: add explicit include of timex.h 2020-10-21 21:47:31 +02:00
Leandro Lanzieri
dfa722c519
gnrc/rpl: Move GNRC_RPL_WITHOUT_PIO to 'CONFIG_' namespace
Also evaluate its value using IS_ACTIVE when possible.
2020-05-14 15:56:59 +02:00
0228553384 sys/shell: rpl: make use of xtimer_left_usec() 2020-04-21 11:26:56 +02:00
Hyungsin
a18f9318c7 sys/shell/commands: reflecting xtimer's member change 2020-01-10 13:19:36 -08:00
Francisco Molina
254b54847f shell/commands/sc_gnrc_rpl.c: fix cpp.check unitialized variable 2019-11-21 11:58:07 +01:00
7d013eb2b6 sys: fix doxygen grouping 2018-06-11 19:12:02 +02:00
BytesGalore
0c034c9220 rpl: add DIS Solicited Information option 2018-06-04 18:10:22 +02:00
Cenk Gündoğan
441f11ea45 gnrc_rpl: shell: adapt to evtimer for RPL events 2018-05-23 09:42:12 +02:00
Cenk Gündoğan
4c9e947d43 gnrc_rpl: adjust author and copyright 2018-05-22 23:46:55 +02:00
Martine Lenders
31b1ceb440
gnrc_netif2: rename to gnrc_netif 2017-11-17 10:41:54 +01:00
Martine Lenders
861035f22d gnrc: integrate gnrc_netif2
Not link-able, since NDP and NC are missing (intentionally)
2017-11-07 19:08:44 +01:00
Cenk Gündoğan
9a62bb8307 shell: sc_gnrc_rpl: adjust to trickle enhancements 2017-06-09 09:03:24 +02:00
3d48eee095 cleanup: apply remove_atoi_casts.cocci (coccinelle) 2017-05-13 12:39:48 +02:00
smlng
41c43fd837 rpl: make parent lifetime consistent with other timers 2017-04-25 20:09:41 +02:00
Oleg Hahm
ffe2f68a66 shell: rpl: fix cppcheck warning 2017-04-14 14:36:15 +02:00
Oleg Hahm
4f4214235b timex: unambiguous time conversion macros 2017-01-19 13:18:08 +01:00
Joakim Nohlgård
7c48c891a0 xtimer: Update xtimer usage to match API changes 2016-11-29 20:44:31 +01:00
Cenk Gündoğan
cfb487ffc4 gnrc_rpl: shell: add 'rpl stats' cmd to shell 2016-09-27 20:40:04 +02:00
Cenk Gündoğan
c8c8a183d9 rpl: p2p-rpl shell extension 2016-03-24 12:12:07 +01:00
Cenk Gündoğan
b5c09bfc41 rpl: introducing p2p-rpl 2016-03-24 12:12:07 +01:00
Cenk Gündoğan
40349dfa9b gnrc_rpl: shell: show iface of dodag 2016-03-23 10:12:01 +01:00
Cenk Gündoğan
fc75ff9b29 gnrc_rpl: minor fixes and enhancements 2016-03-22 16:50:16 +01:00
Cenk Gündoğan
3e51233341 sc_gnrc_rpl.c: rename req_opts to dio_opts 2016-03-16 14:16:15 +01:00
Cenk Gündoğan
1226941be6 gnrc_rpl: do not use PRIu8/PRIi8 2016-03-10 22:51:12 +01:00
Cenk Gündoğan
f93ee8d49d sc_gnrc_rpl: show state of PIO transmission 2016-02-13 11:29:18 +01:00
Cenk Gündoğan
d8f30150b4 rpl: shell: adjust style of commands output 2016-02-03 09:00:30 +01:00
Cenk Gündoğan
73fac82b58 rpl: shell: don't compile PIO code dependent on CFLAGS 2016-02-03 08:59:51 +01:00
Cenk Gündoğan
288212af36 rpl: shell: make PIO transmission configurable via shell 2016-02-03 08:59:27 +01:00
Cenk Gündoğan
69a493a613 rpl: shell: only print the first 32 bits of the trickle intervals 2015-12-05 07:35:31 +01:00
Cenk Gündoğan
c56f8530ad rpl: shell: do not use PRIu64 2015-12-04 15:42:18 +01:00
test
bbe1b6f125 rpl: reuse xtimer for cleanup 2015-11-17 19:00:18 +01:00
Cenk Gündoğan
bf5e9b4351 rpl: use uint32_t for the parent lifetime 2015-11-09 20:28:31 +01:00
Cenk Gündoğan
ce6b6b84fc rpl: decrease default numbers 2015-11-09 14:56:51 +01:00
Cenk Gündoğan
d64fdbba3a rpl: refactoring of instances and dodags 2015-10-21 18:02:16 +02:00
Cenk Gündoğan
7e67f9e777 sys/shell/commands/sc_gnrc_rpl: don't calculate cleanup timer twice 2015-10-09 14:27:18 +02:00
Cenk Gündoğan
dbe64987e1 Merge pull request #3688 from cgundogan/pr/rpl/leaf_node_operation
rpl: leaf/router node operation
2015-10-09 14:14:28 +02:00
Cenk Gündoğan
70c3be6f9e sc_gnrc_rpl.c: cmd for operation as leaf or router 2015-10-05 11:34:39 +02:00
Cenk Gündoğan
3f238980f7 rpl: incremental instance id generation 2015-09-29 19:34:59 +02:00
Cenk Gündoğan
3609dce47d sc_gnrc_rpl: adjust rpl shell for xtimer usage 2015-09-16 10:58:56 +02:00
Cenk Gündoğan
067c029f92 sc_gnrc_rpl: adjust to xtimer for trickle 2015-09-16 10:58:51 +02:00
DipSwitch
a3062dd8c2 rpl: RPL Instance ID 0 must be allowed 2015-09-08 09:20:20 +02:00
Cenk Gündoğan
b8c0498fb4 rpl: allow 0 as instance id 2015-08-27 14:38:08 +02:00
Martine Lenders
58ff31bfe9 gnrc: make all gnrc modules sub-modules of gnrc 2015-08-18 23:00:07 +02:00