[riot-commits] [RIOT-OS/RIOT] 64a653: gnrc: ndp: fix calculation of L2 address length

Peter Kietzmann peter.kietzmann at haw-hamburg.de
Wed Oct 28 10:25:33 CET 2015


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 64a653496ad8bec4a3f5afc4a6da5fe91ee04a2e
      https://github.com/RIOT-OS/RIOT/commit/64a653496ad8bec4a3f5afc4a6da5fe91ee04a2e
  Author: Oleg Hahm <oleg at hobbykeller.org>
  Date:   2015-10-27 (Tue, 27 Oct 2015)

  Changed paths:
    M sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c

  Log Message:
  -----------
  gnrc: ndp: fix calculation of L2 address length

If no source address was provided by layer 2 or someone removed it, the calculation of its length is done using the length field from the Source/Target Link-layer Address option (https://tools.ietf.org/html/rfc4861#section-4.6.1). The length is specified as units of 8 octets. Hence, it should be multiplied by 8, not divided.


  Commit: eaf1e29b310c6f32b9f147d0c9319eb5abbece28
      https://github.com/RIOT-OS/RIOT/commit/eaf1e29b310c6f32b9f147d0c9319eb5abbece28
  Author: Peter Kietzmann <peter.kietzmann at haw-hamburg.de>
  Date:   2015-10-28 (Wed, 28 Oct 2015)

  Changed paths:
    M sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c

  Log Message:
  -----------
  Merge pull request #4179 from OlegHahm/ndp_l2_length_calculation

gnrc: ndp: fix calculation of L2 address length


Compare: https://github.com/RIOT-OS/RIOT/compare/3033738e30e9...eaf1e29b310c


More information about the commits mailing list