Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys/shell/gnrc_netif: Fix a few blockers for sharing ifconfig shell #19971

Merged
merged 2 commits into from
Oct 16, 2023

Commits on Oct 11, 2023

  1. 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
    ```
    yarrick committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    28b8536 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2023

  1. sys/shell/gnrc_netif: Use l2util versions of link addr helpers

    To avoid dependency on gnrc files.
    As suggested in RIOT-OS#16965
    yarrick committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    ee6ca2b View commit details
    Browse the repository at this point in the history