1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

16 Commits

Author SHA1 Message Date
Martine Lenders
dd1f45d05e tests: adapt tests for gnrc_netif checks 2019-02-26 16:46:29 +01:00
Marian Buschsieweke
6efd1f840a
tests/gnrf_netif: Use NETOPT_MAX_DPU_SIZE
Updated the test to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
2019-02-18 20:19:04 +01:00
Cenk Gündoğan
6a4c764c95
Merge pull request #10569 from miri64/gnrc_netif/enh/rm-get-NETOPT_IPV6_IID
gnrc_netif: make _get_iid() just wrapper around _iid_from_addr()
2019-01-14 14:09:34 +01:00
Martine Lenders
7ae90564d9 gnrc_netif: make _get_iid() just wrapper around _iid_from_addr()
This way the IID generation gets much simplified and code duplication
is avoided since it removes GNRC's requirement for NETOPT_IPV6_IID.
2019-01-14 13:42:58 +01:00
Martine Lenders
91b526b0ad tests/gnrc_netif: use thread_has_msg_queue() for msg queue check 2018-12-19 15:39:50 +01:00
0d71c1ccf7
gnrc_netif: Use fmt for bytes to hex string 2018-10-04 13:34:18 +02:00
Martine Lenders
0fccf65c27
Merge pull request #9748 from miri64/tests/enh/ula-src
tests/gnrc_netif: add test for ULA source selection
2018-09-06 10:10:53 +02:00
Joakim Nohlgård
556d06d3bf tests/gnrc_netif: Fix -Wformat-overflow
Fixes the following error with GCC 7

main.c: In function 'test_netif_get_name':
main.c:1054:23: error: 'sprintf' may write a terminating nul past the end of the destination [-Werror=format-overflow=]
     sprintf(exp_name, "if%d", (int)netif);
                       ^~~~~~
main.c:1054:5: note: 'sprintf' output between 4 and 9 bytes into a destination of size 8
     sprintf(exp_name, "if%d", (int)netif);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2018-08-11 07:28:29 +02:00
Martine Lenders
c1926414ab tests/gnrc_netif: add test for ULA source selection 2018-08-09 11:37:10 +02:00
Martine Lenders
5921447291 tests: gnrc_netif: fix group join iteration macro
The `test_ipv6_group_join__ENOMEM()` tests joining multicast groups,
so we need to iterate `GNRC_NETIF_IPV6_GROUPS_NUMOF` times to fill up
all addresses, not `GNRC_NETIF_IPV6_ADDRS_NUMOF`.
2018-08-01 20:44:49 +02:00
Martine Lenders
f97db647e0 tests: test netif.h operations for GNRC 2018-05-29 19:49:30 +02:00
Martine Lenders
1b7de325b3 tests: gnrc_netif: provide test cases for invalid input 2018-04-03 17:33:19 +02:00
smlng
2ed609a810 tests/gnrc_netif: fix unused parameter
Test does not compile when DEVELHELP=0 otherwise.
2018-01-30 19:57:30 +01:00
Martine Lenders
2ae30cf582 gnrc_netif: rename IPv6 address "setters"
This renames the following functions

* `gnrc_netif_ipv6_addr_add()`
* `gnrc_netif_ipv6_addr_remove()`
* `gnrc_netif_ipv6_group_join()`
* `gnrc_netif_ipv6_group_leave()`

by appending the suffix `_internal`.

\## Reasoning

I'd like to provide a helper function for the *public* equivalent using
`gnrc_netapi_set()`, and those names are to nice to not be taken for
those.

\## Procedure
I used a combination of `git grep` and `sed` to do this and fixed the
alignment in the result of some cases by hand.

```sh
git grep --name-only "\<gnrc_netif_ipv6_\(addr\|group\)_\(add\|remove\|join\|leave\)\>" | \
        xargs sed -i 's/\<gnrc_netif_ipv6_\(addr\|group\)_\(add\|remove\|join\|leave\)/\0_internal/g'
```
2017-12-13 13:50:39 +01:00
Martine Lenders
f90a9a875f
gnrc_ndp2: rename to gnrc_ndp 2017-11-17 10:41:54 +01:00
Martine Lenders
31b1ceb440
gnrc_netif2: rename to gnrc_netif 2017-11-17 10:41:54 +01:00