[riot-commits] [RIOT-OS/RIOT] f9e17a: sock: amend API to iterate over stack-internal chunks

Martine Lenders noreply at github.com
Wed Apr 1 16:59:05 CEST 2020


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: f9e17ac025b98a9fcc630f93765f02227578d591
      https://github.com/RIOT-OS/RIOT/commit/f9e17ac025b98a9fcc630f93765f02227578d591
  Author: Martine S. Lenders <mail at martine-lenders.eu>
  Date:   2020-04-01 (Wed, 01 Apr 2020)

  Changed paths:
    M sys/include/net/sock.h
    M sys/include/net/sock/dtls.h
    M sys/include/net/sock/ip.h
    M sys/include/net/sock/udp.h

  Log Message:
  -----------
  sock: amend API to iterate over stack-internal chunks

With lwIP we have a chunked UDP payload, so just providing the
stack-internal buffer is not possible. To be able to iterate over such
a chunked payload, this change allows the `sock_*_recv_buf()` functions
to use the internal buffer context as an iteration state.

As the internal buffer space can be released when the function would
return 0, `sock_recv_buf_free()` becomes unnecessary.


  Commit: 58685af8a69914164c59a177dcfd22a43acb900e
      https://github.com/RIOT-OS/RIOT/commit/58685af8a69914164c59a177dcfd22a43acb900e
  Author: Martine S. Lenders <mail at martine-lenders.eu>
  Date:   2020-04-01 (Wed, 01 Apr 2020)

  Changed paths:
    M sys/include/net/sock/dtls.h
    M sys/include/net/sock/ip.h
    M sys/include/net/sock/udp.h

  Log Message:
  -----------
  sock: sock_*_recv_buf: mark as experimental


  Commit: d9345798171da15842ad6b0da80d8a731a89b4b3
      https://github.com/RIOT-OS/RIOT/commit/d9345798171da15842ad6b0da80d8a731a89b4b3
  Author: Martine S. Lenders <mail at martine-lenders.eu>
  Date:   2020-04-01 (Wed, 01 Apr 2020)

  Changed paths:
    M sys/net/gnrc/sock/gnrc_sock.c
    M sys/net/gnrc/sock/ip/gnrc_sock_ip.c
    M sys/net/gnrc/sock/udp/gnrc_sock_udp.c

  Log Message:
  -----------
  gnrc_sock: adapt for *_recv_buf() API change


  Commit: e4c43200ba6ae6c0abcc735b963cd11e663ea51a
      https://github.com/RIOT-OS/RIOT/commit/e4c43200ba6ae6c0abcc735b963cd11e663ea51a
  Author: Martine S. Lenders <mail at martine-lenders.eu>
  Date:   2020-04-01 (Wed, 01 Apr 2020)

  Changed paths:
    M tests/gnrc_sock_ip/main.c
    M tests/gnrc_sock_udp/main.c

  Log Message:
  -----------
  tests/gnrc_sock_{ip,udp}: adapt tests for sock_*_recv_buf API change


  Commit: 76acde098456ae6093b4cb269654362355b55429
      https://github.com/RIOT-OS/RIOT/commit/76acde098456ae6093b4cb269654362355b55429
  Author: Martine Lenders <m.lenders at fu-berlin.de>
  Date:   2020-04-01 (Wed, 01 Apr 2020)

  Changed paths:
    M sys/include/net/sock.h
    M sys/include/net/sock/dtls.h
    M sys/include/net/sock/ip.h
    M sys/include/net/sock/udp.h
    M sys/net/gnrc/sock/gnrc_sock.c
    M sys/net/gnrc/sock/ip/gnrc_sock_ip.c
    M sys/net/gnrc/sock/udp/gnrc_sock_udp.c
    M tests/gnrc_sock_ip/main.c
    M tests/gnrc_sock_udp/main.c

  Log Message:
  -----------
  Merge pull request #13779 from miri64/sock/enh/sock_buf_recv-iterate-chunks

 sock: amend API to iterate over stack-internal buffer chunks


Compare: https://github.com/RIOT-OS/RIOT/compare/b26566cdfcac...76acde098456


More information about the commits mailing list