[riot-commits] [RIOT-OS/RIOT] fd718d: gnrc_udp: assert ports not zero

Martine Lenders authmillenon at gmail.com
Mon Aug 6 16:59:57 CEST 2018


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: fd718dfc7465f44b42ee8b99e8864994d222d111
      https://github.com/RIOT-OS/RIOT/commit/fd718dfc7465f44b42ee8b99e8864994d222d111
  Author: smlng <s at mlng.net>
  Date:   2018-08-06 (Mon, 06 Aug 2018)

  Changed paths:
    M sys/include/net/gnrc/udp.h
    M sys/net/gnrc/transport_layer/udp/gnrc_udp.c

  Log Message:
  -----------
  gnrc_udp: assert ports not zero

    UDP port 0 is reserved for system usage, e.g., to tell the OS to
    set a random source port. Hence, neither source nor destination
    port should be 0 when transmitting. This PR adds proper asserts.


  Commit: ad173831dbdf322ca1e107146b2f35e5b327e90c
      https://github.com/RIOT-OS/RIOT/commit/ad173831dbdf322ca1e107146b2f35e5b327e90c
  Author: Martine Lenders <authmillenon at gmail.com>
  Date:   2018-08-06 (Mon, 06 Aug 2018)

  Changed paths:
    M sys/include/net/gnrc/udp.h
    M sys/net/gnrc/transport_layer/udp/gnrc_udp.c

  Log Message:
  -----------
  Merge pull request #9721 from smlng/pr/gnrc_udp/assert

gnrc_udp: assert ports not zero


Compare: https://github.com/RIOT-OS/RIOT/compare/65db0503be4c...ad173831dbdf
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the commits mailing list