6lowpan: ndisc: set invalid unicast short addr to unspec
authorAlexander Aring <aar@pengutronix.de>
Wed, 6 Jul 2016 21:32:28 +0000 (23:32 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 8 Jul 2016 11:23:12 +0000 (13:23 +0200)
commit9e262f5037b95a9ccc508debec2715e70559cc81
treee7625467a4a6f7fe4da5e77dffd1054de1adc642
parentaaa7088eb29a0ffe6cf8d8a443695df41e5a62f3
6lowpan: ndisc: set invalid unicast short addr to unspec

When receiving neighbour information with short address option field we
should check the complete range of invalid short addresses and set it to
one invalid address setting which is the unspecified address. This
address is also used when by creating at first a new neighbour entry to
indicate no short address is set.

Signed-off-by: Alexander Aring <aar@pengutronix.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/6lowpan/ndisc.c