[riot-commits] [RIOT-OS/RIOT] c8c518: udp: fix byte order in sockaddr6_t

Martine Lenders authmillenon at gmail.com
Sat Oct 11 13:48:34 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: c8c518005fee832255d89a94beddd0396208e518
      https://github.com/RIOT-OS/RIOT/commit/c8c518005fee832255d89a94beddd0396208e518
  Author: Sebastian Sontberg <sebastian at sontberg.de>
  Date:   2014-10-10 (Fri, 10 Oct 2014)

  Changed paths:
    M sys/net/transport_layer/udp/udp.c

  Log Message:
  -----------
  udp: fix byte order in sockaddr6_t

udp_recvfrom wrote the sender port number in host byte order into the
provided sockaddr6_t. Because all send functions expect the port number
in network byte order this introduces a superfluous conversion step in
case one wants to reuse the address for replying.

closes #1406


  Commit: 94528fef46b881d9b5868f5daccd76adec3b3962
      https://github.com/RIOT-OS/RIOT/commit/94528fef46b881d9b5868f5daccd76adec3b3962
  Author: Martine Lenders <authmillenon at gmail.com>
  Date:   2014-10-11 (Sat, 11 Oct 2014)

  Changed paths:
    M sys/net/transport_layer/udp/udp.c

  Log Message:
  -----------
  Merge pull request #1795 from sgso/byte-order-udp-sockaddr

udp: fix byte order in sockaddr6_t


Compare: https://github.com/RIOT-OS/RIOT/compare/84a682376cf9...94528fef46b8


More information about the commits mailing list