1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys
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
..
analog_util sys/*: realign ENABLE_DEBUG 2020-10-23 11:27:48 +02:00
app_metadata
arduino sys/arduino: Bug and style fixes in SPI 2021-02-02 09:45:46 +01:00
auto_init sys/auto_init: add support for USB DFU 2021-01-12 11:34:22 +01:00
base64 sys/base64: drop padding for base64url encoding 2020-12-15 12:18:45 +01:00
benchmark sys/benchmark: add module to Kconfig 2020-11-06 15:57:55 +01:00
bitfield
bloom
bus sys/bus: add system buses 2020-11-12 22:50:53 +01:00
can sys/*: ENABLE_DEBUG not needed for inttypes.h 2020-11-02 21:49:39 +01:00
cb_mux
checksum sys/checksum: add module to Kconfig 2020-11-27 09:20:05 +01:00
clif clif: Don't access any data if input is empty 2021-02-08 13:42:18 +01:00
color sys/color: add module to Kconfig 2020-11-18 18:38:44 +01:00
cpp11-compat
crypto sys/crypto: add modules to Kconfig 2021-01-26 17:39:44 +01:00
cxx_ctor_guards
div sys/div: Add module to Kconfig 2020-11-06 15:57:52 +01:00
ecc sys/*: replace #if ENABLE_DEBUG with IS_ACTIVE 2020-11-02 21:49:39 +01:00
eepreg
embunit sys/embunit/Kconfig: make module available only for testing 2020-12-02 10:14:43 +01:00
entropy_source sys/entropy_source: fix typo (sates => states) 2021-01-08 10:15:33 +01:00
event Merge pull request #15471 from maribu/event-threads-multi 2020-12-03 21:04:36 +01:00
evtimer sys/*: realign ENABLE_DEBUG 2020-10-23 11:27:48 +02:00
fmt sys/fmt_table: fix infinite loop 2021-01-21 10:03:44 +01:00
frac sys/frac: add module to Kconfig 2021-01-18 14:14:13 +01:00
fs sys/*: realign ENABLE_DEBUG 2020-10-23 11:27:48 +02:00
fuzzing sys/*: add missing include of assert.h 2020-10-22 11:13:09 +02:00
hashes sys/hashes: add module to Kconfig 2021-01-26 17:40:29 +01:00
include Merge pull request #16000 from jeandudey/2021_02_12-ieee802154-bitcaps 2021-02-17 16:56:25 +01:00
iolist sys/iolist: add module to Kconfig 2021-01-21 11:22:32 +01:00
isrpipe drivers/at: add modules to Kconfig 2020-11-18 18:38:48 +01:00
libc/include/sys
log
luid sys/luid: add module to Kconfig 2021-01-26 17:40:30 +01:00
malloc_thread_safe sys/malloc_thread_safety: use mutex 2020-12-17 15:39:05 +01:00
matstat sys/*: realign ENABLE_DEBUG 2020-10-23 11:27:48 +02:00
memarray memarray: Add extend and reduce functions 2021-01-15 11:39:08 +01:00
mineplex
net sys/include/net/netstats: move xtimer header where it is needed 2021-02-16 18:18:21 +01:00
newlib_syscalls_default
od sys/od: allow to specify address offset with od_hex_dump_ext() 2021-01-11 14:35:40 +01:00
oneway-malloc sys/oneway-malloc: only allocate word-aligned chunks 2021-01-25 12:05:05 +01:00
phydat sys/phydat: add module to Kconfig 2020-11-25 12:00:13 +01:00
picolibc_syscalls_default
pipe
pm_layered sys/*: realign ENABLE_DEBUG 2020-10-23 11:27:48 +02:00
posix sys/posix_sleep: add module to Kconfig 2021-02-15 12:24:38 +01:00
progress_bar sys/*: remove unused assert.h include 2020-10-22 11:29:27 +02:00
ps schedstatistics: Log sleep tick statistics 2021-01-18 11:14:23 +01:00
puf_sram
quad_math
random sys/random: add modules to Kconfig 2021-01-26 17:40:53 +01:00
riotboot sys/riotboot: uncrustify 2021-02-09 13:38:31 +01:00
saul_reg kconfig/saul: select phydat and enable saul_registry by default 2021-01-21 11:22:30 +01:00
schedstatistics schedstatistics: Log sleep tick statistics 2021-01-18 11:14:23 +01:00
sema sys/sema: add missing limits.h 2020-11-23 16:56:34 +01:00
sema_inv sys/sema_inv: add inverse Semaphore 2021-01-17 00:17:58 +01:00
seq
shell sys/shell: Add lwIP ifconfig shell command 2021-02-23 11:47:45 +01:00
ssp
stdio_null
stdio_rtt
stdio_semihosting stdio_semihosting: Extend with RISC-V support 2021-01-27 17:52:19 +01:00
stdio_uart
suit suit/transport/coap: make blocksize configurable 2020-12-03 10:51:42 +01:00
test_utils sys/test_utils: add modules to Kconfig 2020-11-06 15:57:49 +01:00
timex sys/*: replace #if ENABLE_DEBUG with IS_ACTIVE 2020-11-02 21:49:39 +01:00
trace
trickle sys/*: realign ENABLE_DEBUG 2020-10-23 11:27:48 +02:00
tsrb sys/tsrb: Add module to Kconfig 2020-11-06 15:57:53 +01:00
universal_address sys/*: realign ENABLE_DEBUG 2020-10-23 11:27:48 +02:00
uri_parser uri_parser: terminate, if nothing to consume after scheme 2021-02-05 13:32:49 +01:00
usb Kconfig: add Kconfig support for DFU 2021-01-12 11:34:22 +01:00
usb_board_reset
uuid
vfs all: adapt to moved sched defines 2020-11-23 16:56:34 +01:00
xtimer sys/xtimer/kconfig: fix dependencies 2021-01-18 14:14:13 +01:00
zptr
ztimer Merge pull request #15802 from miri64/treewide/cleanup/cppcheck-whitelisted 2021-02-03 07:59:27 +01:00
doc.txt
Kconfig sys/posix_sleep: add module to Kconfig 2021-02-15 12:24:38 +01:00
Kconfig.newlib
Kconfig.stdio drivers/slipdev: add modules to Kconfig 2021-01-21 11:22:31 +01:00
Makefile sys/net: add netstats_neighbor 2021-02-09 12:27:58 +01:00
Makefile.dep sys/net: add netstats_neighbor 2021-02-09 12:27:58 +01:00
Makefile.include net/skald : Add CONFIG_SKALD_ADV_CHANNELS to allow ordered list 2021-01-26 16:17:17 +01:00