Benjamin Valentin
67f9049044
tests/gnrc_netif: remove cast from test_netif_get_name()
2022-05-10 22:18:54 +02:00
Jose Alamos
eb23813467
tests/gnrc_netif: adapt ops->init to handle driver initialization
2022-01-10 13:59:27 +01:00
Jose Alamos
e7fac9f661
net/gnrc_netif: add return values to init
2022-01-10 13:59:01 +01:00
Leandro Lanzieri
d2d1c7ede9
tests/gnrc_netif: add test for netif_get_by_name_buffer
2021-08-04 18:12:56 +02:00
Jose Alamos
82a429e982
tests/gnrc_netif: avoid explicit cast to netdev
2021-07-09 11:35:19 +02:00
Martine Lenders
1572489c97
tests/gnrc_netif: add tests to join and leave L2 groups
2020-10-29 14:38:52 +01:00
Martine Lenders
45144fb4a4
treewide: use new gnrc_pkt API functions instead of utlist.h macros
2020-10-13 13:32:53 +02:00
Akshai M
b52e3e1587
net/netif : Move 'NETIF_NAMELENMAX' to 'CONFIG_'
2020-08-03 16:09:21 +05:30
Jose Alamos
67ed9defbe
gnrc_netif_xxx_create: use external netif allocation
2020-03-26 11:12:23 +01:00
Gunar Schorcht
c7fdb5eeba
tests/gnrc_netif: fix NDEBUG compile problem
2020-03-12 18:04:42 +01:00
Jose Alamos
6143cd800b
gnrc_netif: use gnrc_netif_send where possible
2020-03-06 15:22:58 +01:00
PeterKietzmann
9e83d12bc0
net/gnrc/netif: Move GNRC_NETIF_IPV6_ADDRS_NUMOF to 'CONFIG_' namespace
2020-01-13 12:28:37 +01:00
PeterKietzmann
b28a586702
net/gnrc/netif: Move GNRC_NETIF_DEFAULT_HL to 'CONFIG_' namespace
2020-01-13 12:28:37 +01:00
Leandro Lanzieri
cb28400bce
tests/gnrc_netif: Adapt test to new interface names
2019-11-29 10:22:00 +01:00
Martine Lenders
14a2f6bc18
gnrc: use gnrc_netif_default_init() for all implementations
2019-11-07 11:00:36 +01:00
Martine Lenders
020af4145a
tests: provide more test cases for source address selection
...
- ULA destination with global address on interface
- Deprecated addresses
2019-10-24 16:04:41 +02:00
Jose Alamos
9727f325ff
tests/gnrc_netif: adapt to new netif_t representation
2019-10-11 10:59:14 +02:00
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