1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/shell
Erik Ekman 28b8536063 sys/shell/gnrc_netif: print v6 addresses based on ipv6 module
To support lwIP better (dont require gnrc_ipv6)

Also don't require IPv6 for printing link type

With this sc_gnrc_netif can compile and work when using lwIP
(with l2util module added):

```
> ifconfig
Iface  ET1  HWaddr: 24:0A:C4:E6:0E:9C  Channel: 6  Link: up
          L2-PDU:1500  Source address length: 6
          Link type: wireless
          inet6 addr: fe80::260a:c4ff:fee6:e9c  scope: link
          inet6 addr: 2001:db8::260a:c4ff:fee6:e9c  scope: global

Iface  ET0  HWaddr: 24:0A:C4:E6:0E:9F  Link: up
          L2-PDU:1500  Source address length: 6
          Link type: wired
          inet6 addr: fe80::260a:c4ff:fee6:e9f  scope: link
          inet6 addr: 2001:db8::260a:c4ff:fee6:e9f  scope: global

>
```

Still works in gnrc_networking example:

```
> ifconfig
Iface  8  HWaddr: 24:0A:C4:E6:0E:9F  Link: up
          L2-PDU:1500  MTU:1500  HL:64  RTR
          RTR_ADV
          Source address length: 6
          Link type: wired
          inet6 addr: fe80::260a:c4ff:fee6:e9f  scope: link  VAL
          inet6 group: ff02::2
          inet6 group: ff02::1
          inet6 group: ff02::1:ffe6:e9f
          inet6 group: ff02::1a
```
2023-10-11 19:56:33 +02:00
..
cmds sys/shell/gnrc_netif: print v6 addresses based on ipv6 module 2023-10-11 19:56:33 +02:00
democommands rust: Update dependencies 2022-10-04 00:28:46 +02:00
doc.txt sys/shell_commands: convert to SHELL_COMMAND() 2022-06-07 09:25:04 +02:00
Kconfig sys/shell: make cmds submodules 2022-09-16 13:15:45 +02:00
Kconfig.config shell/Kconfig: make config options usable with dependency resolution 2021-02-19 13:22:47 +01:00
Makefile make: detect their module name automatically 2014-06-17 15:49:32 +02:00
Makefile.dep sys/shell: add iw shell command 2023-08-19 23:23:10 +02:00
shell.c sys/shell_lock: lock shell on EOF 2023-05-26 15:04:36 +02:00