1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/shell/commands
Erik Ekman aaa73b79ed sys/shell/gnrc_netif: List netifs in registration order
The netif list is used like a stack, so it needs to be
iterated in reverse to keep the registration order.

Time complexity in O(n^2), but the the list is normally very short
(1-2 items).

Before:
```
> ifconfig
Iface  10  HWaddr: 24:0A:C4:E6:0E:9C  Channel: 0  Link: down
[..]

Iface  7  HWaddr: 24:0A:C4:E6:0E:9F  Link: down
[..]
```

Now they are in the increasing order:
```
> ifconfig
Iface  7  HWaddr: 24:0A:C4:E6:0E:9F  Link: down
[..]

Iface  10  HWaddr: 24:0A:C4:E6:0E:9C  Channel: 0  Link: down
[..]
```

When lwIP is hacked to use the same shell command, it also
lists it interfaces in the expected order (was ET1,ET0 before):
```
> ifconfig
Iface  ET0  HWaddr: 24:0A:C4:E6:0E:9F  Link: down
[..]

Iface  ET1  HWaddr: 24:0A:C4:E6:0E:9C  Channel: 0  Link: down
[..]
```
2022-06-21 11:54:08 +02:00
..
Kconfig sys/shell/commands: add i2c_scanner deps to Kconfig 2021-02-18 13:22:54 +01:00
Makefile sys/shell_commands: convert to SHELL_COMMAND() 2022-06-07 09:25:04 +02:00
sc_app_metadata.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_at30tse75x.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_benchmark_udp.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_blacklist.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_can.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_ccnl.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_cord_ep.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_cryptoauthlib.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_dfplayer.c sys/shell_commands: convert to SHELL_COMMAND() 2022-06-07 09:25:04 +02:00
sc_disk.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_fib.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_gnrc_6ctx.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_gnrc_6lo_frag_stats.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_gnrc_icmpv6_echo.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_gnrc_ipv6_frag_stats.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_gnrc_ipv6_nib.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_gnrc_netif.c sys/shell/gnrc_netif: List netifs in registration order 2022-06-21 11:54:08 +02:00
sc_gnrc_pktbuf.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_gnrc_rpl.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_gnrc_udp.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_heap.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_i2c_scan.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_loramac.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_lwip_netif.c sys/shell/commands/sc_lwip_netif.c: add address state 2022-06-16 08:40:42 +02:00
sc_nanocoap_vfs.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_netstats_nb.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_nice.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_nimble_netif.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_nimble_statconn.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_openwsn.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_pm.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_ps.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_random.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_rtc.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_rtt.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_saul_reg.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_sht1x.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_sntp.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_suit.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_sys.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_vfs.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00
sc_whitelist.c sys/shell/commands: add static qualifier where appropriate 2022-06-11 14:38:58 +02:00