Simon Duquennoy
2611d979fa
Merge branch 'develop' into contrib/default-prefix-as-variable
2019-02-18 15:22:53 +01:00
George Oikonomou
3af022f6da
Merge branch 'develop' into contrib/shell-no-ipv6
2019-01-12 16:44:28 +00:00
Simon Duquennoy
5c206691a3
Shell: group IPv6 and RPL-Lite commands
2019-01-11 21:22:16 +01:00
Simon Duquennoy
36ee548b51
Shell: add mac-addr command
2019-01-11 21:16:48 +01:00
Simon Duquennoy
d850fff673
Make it possible to use shell without IPv6
2019-01-11 21:16:48 +01:00
Atis Elsts
08cbbe224b
minor shell update: extend the tsch-status command
2018-12-18 16:40:18 +00:00
George Oikonomou
15f6e1d7a3
Change the way of accessing the default v6 prefix
...
This commit changes the method of accessing the default v6 prefix. Instead of always using `UIP_DS6_DEFAULT_PREFIX`, we store the default prefix in a variable. We subsequently retrieve the prefix by calling `uip_ds6_default_prefix()`.
`uip_ds6_init()` will set this variable to the value of `UIP_DS6_DEFAULT_PREFIX`, but only if the startup code has not set a different default prefix before `uip_ds6_init()` gets called.
This approach has the following benefits:
* It allows us to change the default prefix at run time.
* It allows the startup code to set a prefix different than the one specified by `UIP_DS6_DEFAULT_PREFIX`, which can be useful if the default prefix comes from a different source (e.g. the command line for native, or a configuration stored on a node's flash)
* In many places the current code assumes that the prefix contains 6 bytes of zeros (e.g. `FDxx::/64`). Changing to a different prefix (e.g. `FD00:ABCD::`) would need extensive code changes. This change here makes it easy to use a prefix of any length.
2018-11-11 18:30:54 +00:00
Simon Duquennoy
07915ac580
Shell: skip empty lines
2018-11-05 16:03:21 +01:00
Niclas Finne
93c7aae49e
Update os/services/shell/shell-commands.c
...
Co-Authored-By: joakimeriksson <joakime@sics.se>
2018-11-02 15:20:07 +01:00
Niclas Finne
ef9b1f32ba
Update os/services/shell/shell-commands.c
...
Co-Authored-By: joakimeriksson <joakime@sics.se>
2018-11-02 15:19:27 +01:00
Joakim Eriksson
42dfc81af2
added LLSEC attributes form packetbuf to uipbuf when receiving IP packet, and a few other minor fixes
2018-10-30 16:06:11 +01:00
Joakim Eriksson
d3c95c9a6e
added llsec shell commands
2018-10-20 22:27:19 +02:00
Angelos Oikonomopoulos
45b0241f94
Introduce dynamically registered shell command sets
...
Commands are part of a single array, which means that their definition
is static. However, different apps in the same source tree may
reasonably want to add to the command set (perhaps even shadow existing
commands), which would make for awkward code.
Instead, allow dynamic registration/deregistration of command sets at
runtime. This keeps the data overhead low (two pointers per enabled
command set).
2018-06-11 11:09:24 +00:00
Angelos Oikonomopoulos
1a95aad7a7
Mark shell_commands as const
...
This enables the compiler to place the array in flash, saving us a bit
of RAM.
Suggested-by: g-oikonomou
2018-06-08 10:44:33 +00:00
Simon Duquennoy
96c3bff6a9
Shell rpl-routes command: use uip_sr_link_snprint
2018-05-18 08:43:19 -07:00
Simon Duquennoy
ff1f57509a
Introduce UIPLIB_IPV6_MAX_STR_LEN
2018-05-16 12:25:42 -07:00
Simon Duquennoy
e301df9513
Added shell command rpl-nbr
2018-05-16 12:25:42 -07:00
Simon Duquennoy
29061e9885
Rework uiplib_ipaddr_snprint, and use it from logging module and shell
2018-05-16 12:25:41 -07:00
Niclas Finne
641a0d5e45
shell: the rpl-refresh-routes API is currently only provided by rpl-lite
2018-05-04 10:04:25 +02:00
Niclas Finne
c176103aae
shell: check if a preferred parent exists before showing status
2018-05-04 09:09:15 +02:00
Simon Duquennoy
ebcb941867
Shell command 'rpl_status': show last DTSN of current parent
2018-04-13 05:44:49 -07:00
Simon Duquennoy
96032fa47b
Shell: added ability to trigger a RPL DTSN increment
2018-04-05 20:33:28 +02:00
Simon Duquennoy
a3e62befb8
TSCH: rework .h system, now following the same structure as rpl-lite
2018-03-28 10:39:41 -07:00
Yasuyuki Tanaka
4206761ccf
shell: add missing UIP_CONF_IPV6_RPL guard
2018-03-27 17:22:52 +02:00
Yasuyuki Tanaka
90248b6dc2
shell: minor fix on shell output message
2018-03-22 17:42:21 +00:00
Yasuyuki Tanaka
ecd64846a8
shell: add NULL pointer check
2018-03-22 17:41:54 +00:00
Yasuyuki Tanaka
fb5fa58ec3
shell: replace TAB with spaces
2018-03-22 17:37:14 +00:00
Yasuyuki Tanaka
039d5b4c8d
shell: increase buffer size for SHELL_OUTPUT()
2018-03-22 17:36:10 +00:00
Simon Duquennoy
123105ab20
Move source routing state management from RPL Lite and RPL Classic to uip.
2018-02-02 08:51:29 -08:00
Simon Duquennoy
627cb3de9c
Homogenize access to RPL non-storing links from external modules
2018-02-02 08:50:17 -08:00
Simon Duquennoy
65cbc45145
Rename routing module flags
2018-02-02 08:50:17 -08:00
Simon Duquennoy
26d51c15d7
Routing API: added more missing functions, homogenize configuration
2018-02-02 08:50:17 -08:00
Simon Duquennoy
b01c2d9802
Fix shell-commands.c
2018-02-02 08:48:37 -08:00
Simon Duquennoy
53facf941e
Routing API: added toplogy repair
2018-02-02 08:48:37 -08:00
Simon Duquennoy
4cab396d48
Shell: explicitly include rpl-ns.h when needed
2018-02-02 08:47:46 -08:00
Simon Duquennoy
bc73bb3284
Added root_start to routing driver
2018-02-02 08:47:46 -08:00
Simon Duquennoy
83e9414a71
Add root_set_prefix to routing driver
2018-02-02 08:47:21 -08:00
Simon Duquennoy
14ccd337c9
rpl_dag_root module simplification
2018-02-02 08:47:21 -08:00
Simon Duquennoy
871ee1e34f
Added routing module with only routing.h, now included wherever RPL is used
2018-02-02 08:45:02 -08:00
Simon Duquennoy
8f7c4fb977
Shell: do not disable logging at init
2018-01-27 11:35:37 -08:00
Simon Duquennoy
81fe587574
Shell-commands: RPL commands are only compatible with rpl-lite. Disable them when rpl-lite is not used.
2017-10-12 17:09:29 +02:00
Simon Duquennoy
623fdf4a96
Shell tsch-set-coordinator: enable setting security
2017-10-12 17:09:26 +02:00
Simon Duquennoy
741a1d5816
Shell: stop tsch_log at init
2017-10-12 17:09:13 +02:00
Simon Duquennoy
f14d6d4afe
Shell: added command tsch-set-coordinator
2017-10-12 17:09:10 +02:00
Simon Duquennoy
27e0357595
Shell: do not use tsch-logs when not enabled
2017-10-12 17:08:58 +02:00
Simon Duquennoy
a1f74d6568
Shell: start automatically whenver the module is included
2017-10-12 17:08:42 +02:00
Simon Duquennoy
77cae0f45c
Shell: prefix all lines with '#'
2017-10-11 17:43:26 +02:00
Simon Duquennoy
4c7d2a4bfc
Minor changes to shell-commands
2017-10-11 17:26:39 +02:00
Simon Duquennoy
14779f29f8
Rework Doxygen modules
2017-09-29 22:18:48 +02:00
Simon Duquennoy
543408db68
Re-organzie ip stack implementation
2017-09-22 17:09:54 +02:00