1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/pkg
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
..
c25519 pkg: adapt 'simple' packages to the new organization 2020-06-26 09:25:43 +02:00
cayenne-lpp pkg: adapt 'simple' packages to the new organization 2020-06-26 09:25:43 +02:00
ccn-lite pkg/ccn-lite: add patch for changed kernel_pid_t location 2020-11-25 17:52:34 +01:00
cifra pkg: adapt 'simple' packages to the new organization 2020-06-26 09:25:43 +02:00
cmsis-dsp pkg/cmsis-dsp: use modules to compile package 2020-08-19 11:34:43 +02:00
cmsis-nn pkg/cmsis-nn: use modules to compile package 2020-08-19 11:34:43 +02:00
cn-cbor pkg/cn-cbor: ignore return local address warning 2021-02-10 09:17:34 +01:00
cryptoauthlib pkg/cryptoauthlib: disable for efm32 2020-11-10 23:03:08 +01:00
driver_atwinc15x0 pkg/driver_atwinc15x0: don't be pedantic 2020-07-31 13:38:03 +02:00
driver_bme680 {drivers/pkg}: add bm680 to Kconfig 2020-11-25 12:00:13 +01:00
emlearn pkg/emlearn: add support to RIOT 2020-06-28 21:50:51 +02:00
fatfs pkg/fatfs: bump version to r0.14a 2021-01-31 20:03:13 +01:00
flatbuffers pkg/flatbuffers: declare module as pseudomodule 2020-06-14 22:20:38 +02:00
gecko_sdk pkg/gecko_sdk: update to v2.7.7 2020-10-26 20:29:42 +01:00
gemmlowp pkg/gemmlowp: declare module as pseudomodule 2020-06-14 22:20:38 +02:00
hacl Merge pull request #15401 from chrysn-pull-requests/hacl-provide-prix64 2020-11-19 16:37:53 +01:00
heatshrink pkg/heatshrink: remove trailing whitespaces from doc.txt 2020-12-19 09:59:06 +01:00
jerryscript makefiles: avoid building archives when compiling 2020-09-04 15:01:10 +02:00
jsmn pkg/jsmn: bump version 2020-11-23 20:19:47 +01:00
libb2 pkg/libb2: blacklist 8bit architectures 2020-11-26 16:13:14 +01:00
libbase58 pkg: adapt 'simple' packages to the new organization 2020-06-26 09:25:43 +02:00
libcoap pkg: adapt 'simple' packages to the new organization 2020-06-26 09:25:43 +02:00
libcose pkg: adapt 'simple' packages to the new organization 2020-06-26 09:25:43 +02:00
libfixmath pkg/libfixmath: bump version to latest master 2021-01-27 14:19:52 +01:00
libhydrogen pkg/libhydrogen: bump version 2020-10-20 16:42:33 +02:00
littlefs mtd: rename mtd_write_page() -> mtd_write_page_raw() 2021-01-26 11:48:26 +01:00
littlefs2 mtd: rename mtd_write_page() -> mtd_write_page_raw() 2021-01-26 11:48:26 +01:00
lora-serialization pkg: adapt 'simple' packages to the new organization 2020-06-26 09:25:43 +02:00
lua pkg/lua: blacklist picolibc feature 2020-10-15 18:52:51 +02:00
lvgl pkg/lvgl: set LVGL thread priority higher than main 2020-11-11 09:46:21 +01:00
lwip sys/shell: Add lwIP ifconfig shell command 2021-02-23 11:47:45 +01:00
micro-ecc pkg/micro-ecc: remove trailing whitespaces from doc.txt 2020-12-19 09:59:32 +01:00
microcoap pkg: adapt 'simple' packages to the new organization 2020-06-26 09:25:43 +02:00
micropython makefiles: avoid building archives when compiling 2020-09-04 15:01:10 +02:00
minmea pkg/minmea: remove trailing whitespaces from doc.txt 2020-12-19 09:59:46 +01:00
monocypher pkg/monocypher: bump to version 3.1.2 2021-01-18 15:06:11 +01:00
nanocbor pkg: adapt 'simple' packages to the new organization 2020-06-26 09:25:43 +02:00
nanopb pkg/nanopb: bump version to 0.4.3 2020-10-01 18:55:51 +02:00
ndn-riot pkg/ndn-riot: update kernel_pid_t location patch 2020-11-25 17:52:34 +01:00
nimble pkg/nimble/autoconn: add missing 'random' dep 2021-02-04 09:30:42 +01:00
openthread pkg/*: replace #if ENABLE_DEBUG with IS_ACTIVE 2020-11-02 21:49:39 +01:00
openwsn pkg/openwsn/sock: drop messages in mbox on close 2021-02-09 21:28:22 +01:00
paho-mqtt pkg/paho-mqtt: fix patches for STM32MP157Cxx line 2020-11-13 10:43:08 +01:00
qcbor pkg: adapt 'simple' packages to the new organization 2020-06-26 09:25:43 +02:00
qDSA pkg: adapt 'simple' packages to the new organization 2020-06-26 09:25:43 +02:00
relic CODING_CONVENTIONS.md: default to C11 2021-02-14 14:28:13 +01:00
semtech-loramac pkg/semtech-loramac : Translate the configs 2021-01-26 16:56:05 +01:00
spiffs pkg/*: realign ENABLE_DEBUG 2020-10-23 02:43:10 +02:00
talking_leds pkg: adapt 'simple' packages to the new organization 2020-06-26 09:25:43 +02:00
tensorflow-lite pkg: adapt 'simple' packages to the new organization 2020-06-26 09:25:43 +02:00
tiny-asn1 pkg: adapt 'simple' packages to the new organization 2020-06-26 09:25:43 +02:00
tinycbor pkg/tinycbor: bump to v0.5.3 2020-08-17 16:29:48 +02:00
tinycrypt Merge pull request #15242 from maribu/tinycrypt 2020-10-19 10:11:10 +02:00
tinydtls pkg/tinydtls: implement sock_dtls_get_event_session 2021-01-21 19:03:40 +01:00
tlsf makefiles: avoid building archives when compiling 2020-09-04 15:01:10 +02:00
tweetnacl pkg/tweetnacl: remove trailing whitespaces from doc.txt 2020-12-19 10:00:20 +01:00
u8g2 pkg: use inline function for GPIO comparison 2020-08-31 13:11:05 +02:00
ubasic pkg/{lwip,ubasic}: use + in recursive make call 2020-08-26 19:12:14 +02:00
ucglib pkg/*: add missing include of assert.h 2020-10-22 11:13:08 +02:00
umorse sys: tests: rename posix_time to posix_sleep 2020-10-27 15:20:33 +01:00
utensor pkg/utensor: Require feature libstdcpp 2020-07-24 16:21:12 +02:00
uwb-core all: adapt to moved sched defines 2020-11-23 16:56:34 +01:00
uwb-dw1000 pkg/uwb-dw1000: initial import 2020-11-12 12:07:20 +01:00
wakaama pkg/wakaama: fix compilation with 6lowpan-clicker 2021-02-17 22:09:06 +01:00
wolfssl pkg/wolfssl: add SAMD51 to name collision hack 2021-02-09 16:15:34 +01:00
yxml pkg: adapt 'simple' packages to the new organization 2020-06-26 09:25:43 +02:00
doc.txt pkg/doc.txt: improve rendering of source location documentation 2020-06-29 15:53:25 +02:00
Kconfig net/lorawan : Expose to Kconfig 2021-01-26 16:56:02 +01:00
local.mk pkg/pkg.mk: better distinguish between source and build directory 2020-06-26 09:25:43 +02:00
Makefile.git pkg/Makefile.git: adapt example to new organization 2020-06-26 09:25:44 +02:00
Makefile.http pkg: add PKG_LICENSE to templates 2020-01-06 00:37:47 +01:00
pkg.mk pkg/pkg.mk: improve clean and distclean for in-source builds 2020-07-10 13:30:37 +02:00