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

14 Commits

Author SHA1 Message Date
Martine Lenders
455a607405
tests/gnrc_ndp: don't guess size of gnrc_pktsnip_t in pktbuf
24 bytes is only the right size for `gnrc_pktsnip_t` on 32-bit systems
(and only if the struct does not change), on AVR e.g. it 9 bytes.
By using the internal alignment function of `pktbuf` we are able to
precisely tell the internal size of `gnrc_pktsnip_t` using the `sizeof`
operator.
2021-02-19 12:23:22 +01:00
Marian Buschsieweke
eb1279005c
tests: Cleanup access to internal variables
Replace direct accesses to sched_active_thread and sched_active_pid with
the helper functions thread_getpid() and thread_get_active(). This serves
two purposes:

1. It makes accidental writes to those variable from outside core less likely.
2. Casting off the volatile qualifier is now well contained to those two
   functions
2020-08-24 09:08:01 +02:00
Akshai M
5523d119b6 gnrc/pktbuf : Move 'GNRC_PKTBUF_SIZE' to 'CONFIG_' 2020-06-11 14:46:36 +05:30
Leandro Lanzieri
49ec28867c
gnrc/nib: Move GNRC_IPV6_NIB_CONF_ROUTER to 'CONFIG_' namespace
Also evaluate it using IS_ACTIVE macro.
2020-03-31 18:07:05 +02:00
Jose Alamos
67ed9defbe gnrc_netif_xxx_create: use external netif allocation 2020-03-26 11:12:23 +01:00
Gunar Schorcht
944fb3909e tests/gnrc_ndp: fix NDEBUG compile problem 2020-03-12 18:04:42 +01:00
Martine Lenders
14a2f6bc18 gnrc: use gnrc_netif_default_init() for all implementations 2019-11-07 11:00:36 +01:00
Martine Lenders
55143bb017 tests: fix copyright attribution and doc
While looking at tests/gnrc_ipv6_ext_frag again while writing
RIOT-OS/Release-Specs#137, I noticed that several of tests that I
definitely wrote myself from scretch are attributed wrong (and
sometimes even documented wrong). I guess this was caused by just
copy-pasting the files...
2019-10-04 20:58:57 +02:00
Martine Lenders
0bfef4cdae tests/gnrc_ndp: enhance coverage 2019-08-09 11:47:08 +02:00
Martine Lenders
dd1f45d05e tests: adapt tests for gnrc_netif checks 2019-02-26 16:46:29 +01:00
Marian Buschsieweke
db83b363db
tests/gnrc_ndp: 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:09 +01:00
Martine Lenders
a6ac22af3b tests: fix gnrc_ndp tests for new alignment 2018-07-02 15:44:24 +02:00
Martine Lenders
c13426f688 tests/gnrc_ndp: add device type handler to netdev mock-up
By providing a getter for `NETOPT_DEVICE_TYPE` the assertion failed in
\8458 is not hit anymore.
2018-01-27 07:24:15 +01:00
Martine Lenders
f90a9a875f
gnrc_ndp2: rename to gnrc_ndp 2017-11-17 10:41:54 +01:00