[riot-commits] [RIOT-OS/RIOT] 9da7ea: pkg/lwip: Name sixlowpan netifs

Martine Lenders noreply at github.com
Tue Feb 23 17:00:02 CET 2021


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 9da7ea2dec18455a6751c1e2daa8bea1da4d238b
      https://github.com/RIOT-OS/RIOT/commit/9da7ea2dec18455a6751c1e2daa8bea1da4d238b
  Author: Erik Ekman <eekman at google.com>
  Date:   2021-02-23 (Tue, 23 Feb 2021)

  Changed paths:
    M pkg/lwip/contrib/netdev/lwip_netdev.c

  Log Message:
  -----------
  pkg/lwip: Name sixlowpan netifs


  Commit: eab317749f82764c6e978ab13a6819b5320a031c
      https://github.com/RIOT-OS/RIOT/commit/eab317749f82764c6e978ab13a6819b5320a031c
  Author: Erik Ekman <eekman at google.com>
  Date:   2021-02-23 (Tue, 23 Feb 2021)

  Changed paths:
    M pkg/lwip/include/arch/cc.h
    M pkg/lwip/include/lwipopts.h
    M sys/shell/commands/Makefile
    A sys/shell/commands/sc_lwip_netif.c
    M sys/shell/commands/shell_commands.c

  Log Message:
  -----------
  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
>
```


  Commit: 88d2d2d030f2a12cb6d4cdbd68e744689b589890
      https://github.com/RIOT-OS/RIOT/commit/88d2d2d030f2a12cb6d4cdbd68e744689b589890
  Author: Erik Ekman <eekman at google.com>
  Date:   2021-02-23 (Tue, 23 Feb 2021)

  Changed paths:
    M tests/lwip/main.c
    M tests/lwip/tests/01-run.py

  Log Message:
  -----------
  tests/lwip: Update test to match new ifconfig

Removed custom ifconfig command.


  Commit: ccd4c71110aa077e3bea9d34136e8b6b0a142323
      https://github.com/RIOT-OS/RIOT/commit/ccd4c71110aa077e3bea9d34136e8b6b0a142323
  Author: Erik Ekman <eekman at google.com>
  Date:   2021-02-23 (Tue, 23 Feb 2021)

  Changed paths:
    A pkg/lwip/patches/0002-lowpan6-Use-arch-independent-printf-formatters.patch

  Log Message:
  -----------
  pkg/lwip: Add patch for lowpan6 printf formatters


  Commit: afb027852d63983c3191e7777ffe41b3bb6b2607
      https://github.com/RIOT-OS/RIOT/commit/afb027852d63983c3191e7777ffe41b3bb6b2607
  Author: Martine Lenders <m.lenders at fu-berlin.de>
  Date:   2021-02-23 (Tue, 23 Feb 2021)

  Changed paths:
    M pkg/lwip/contrib/netdev/lwip_netdev.c
    M pkg/lwip/include/arch/cc.h
    M pkg/lwip/include/lwipopts.h
    A pkg/lwip/patches/0002-lowpan6-Use-arch-independent-printf-formatters.patch
    M sys/shell/commands/Makefile
    A sys/shell/commands/sc_lwip_netif.c
    M sys/shell/commands/shell_commands.c
    M tests/lwip/main.c
    M tests/lwip/tests/01-run.py

  Log Message:
  -----------
  Merge pull request #15992 from yarrick/more_lwip

Add lwIP ifconfig shell command


Compare: https://github.com/RIOT-OS/RIOT/compare/4b807c1f7314...afb027852d63


More information about the commits mailing list