[riot-commits] [RIOT-OS/RIOT] ecba5f: gnrc_pktbuf_static: expose _align() function to be...

Martine Lenders noreply at github.com
Fri Feb 19 14:45:00 CET 2021


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: ecba5fa1d0c178dd4b5043cc6fc3973304ffe470
      https://github.com/RIOT-OS/RIOT/commit/ecba5fa1d0c178dd4b5043cc6fc3973304ffe470
  Author: Martine Lenders <m.lenders at fu-berlin.de>
  Date:   2021-02-19 (Fri, 19 Feb 2021)

  Changed paths:
    M sys/Makefile.include
    A sys/net/gnrc/pktbuf_static/Makefile.include
    M sys/net/gnrc/pktbuf_static/gnrc_pktbuf_static.c
    A sys/net/gnrc/pktbuf_static/include/pktbuf_static.h

  Log Message:
  -----------
  gnrc_pktbuf_static: expose _align() function to be used for tests


  Commit: 455a6074052709a046c1a72b9eaa1efba48fe756
      https://github.com/RIOT-OS/RIOT/commit/455a6074052709a046c1a72b9eaa1efba48fe756
  Author: Martine Lenders <m.lenders at fu-berlin.de>
  Date:   2021-02-19 (Fri, 19 Feb 2021)

  Changed paths:
    M tests/gnrc_ndp/Makefile
    M tests/gnrc_ndp/main.c

  Log Message:
  -----------
  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.


  Commit: 6c93f0e742766e2a35f35e0b6a80d2d25d00791e
      https://github.com/RIOT-OS/RIOT/commit/6c93f0e742766e2a35f35e0b6a80d2d25d00791e
  Author: Martine Lenders <m.lenders at fu-berlin.de>
  Date:   2021-02-19 (Fri, 19 Feb 2021)

  Changed paths:
    M sys/Makefile.include
    A sys/net/gnrc/pktbuf_static/Makefile.include
    M sys/net/gnrc/pktbuf_static/gnrc_pktbuf_static.c
    A sys/net/gnrc/pktbuf_static/include/pktbuf_static.h
    M tests/gnrc_ndp/Makefile
    M tests/gnrc_ndp/main.c

  Log Message:
  -----------
  Merge pull request #16051 from miri64/tests/fix/avr-gnrc_ndp

tests/gnrc_ndp: don't guess size of `gnrc_pktsnip_t` in `pktbuf`


Compare: https://github.com/RIOT-OS/RIOT/compare/4c6524d18d2d...6c93f0e74276


More information about the commits mailing list