[riot-commits] [RIOT-OS/RIOT] 97da23: destiny: change byte order of ipv6_header->length

Oleg Hahm oleg at hobbykeller.org
Mon Jun 9 22:01:41 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 97da23051a00120e1eba665a8772851228c1ae71
      https://github.com/RIOT-OS/RIOT/commit/97da23051a00120e1eba665a8772851228c1ae71
  Author: Cenk Gündoğan <cnkgndgn at gmail.com>
  Date:   2014-06-08 (Sun, 08 Jun 2014)

  Changed paths:
    M sys/net/transport_layer/destiny/socket.c
    M sys/net/transport_layer/destiny/tcp.c

  Log Message:
  -----------
  destiny: change byte order of ipv6_header->length
When accessing the length field of an ipv6_header a byte order switch (host -> network) is necessary.
Otherwise, it breaks calculations or the checksum and other tcp related computations.
Furthermore, when writing to ipv6_header->length it is important to switch this
from host byte order to network byte order.


  Commit: f6cd96b023e31a7e9835504c5d463312f9fc3cdf
      https://github.com/RIOT-OS/RIOT/commit/f6cd96b023e31a7e9835504c5d463312f9fc3cdf
  Author: Oleg Hahm <oleg at hobbykeller.org>
  Date:   2014-06-09 (Mon, 09 Jun 2014)

  Changed paths:
    M sys/net/transport_layer/destiny/socket.c
    M sys/net/transport_layer/destiny/tcp.c

  Log Message:
  -----------
  Merge pull request #1300 from cgundogan/fix_wrong_byte_order_ipv6_length

destiny: change byte order of ipv6_header->length


Compare: https://github.com/RIOT-OS/RIOT/compare/9652c24b7182...f6cd96b023e3


More information about the commits mailing list