[riot-notifications] [RIOT-OS/RIOT] net/netif: add function to get interface by name from a buffer (#16709)

Leandro Lanzieri notifications at github.com
Wed Aug 4 16:03:09 CEST 2021


### Contribution description
This adds a function to `netif` that allows to search an interface by name, using a buffer and length (like the one provided by the [URI parser](http://doc.riot-os.org/group__sys__uri__parser.html)), instead a null-terminated string. `tests/gnrc_netif` has been extended accordingly.

### Testing procedure

`tests/gnrc_netif` should pass.

### Issues/PRs references
Split from #16233

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/16709

-- Commit Summary --

  * sys/net/netif: add netif_get_by_name_buffer function
  * tests/gnrc_netif: add test for netif_get_by_name_buffer

-- File Changes --

    M sys/include/net/netif.h (13)
    M sys/net/netif/netif.c (10)
    M tests/gnrc_netif/main.c (13)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/16709.patch
https://github.com/RIOT-OS/RIOT/pull/16709.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16709
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210804/46d3db6d/attachment.htm>


More information about the notifications mailing list