lq_packet: do not report duplicate neighbours in HELLO messages
authorIwan G. Flameling <iwanovich@gmail.com>
Fri, 3 Feb 2017 13:17:51 +0000 (14:17 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 7 Feb 2017 12:37:58 +0000 (13:37 +0100)
commit3fb57fa4a724cf6a082d28a18f469e3f6c765a34
tree2a345ffa0dba707596b24a5f25a94f24bb0a4fe6
parent63b0f5ab11f47cc9248ca3f6e2c71b561e5d26d3
lq_packet: do not report duplicate neighbours in HELLO messages

See the explanations in the descriptions of commits 2f38613 and
5089a79.

To fix the issue more thoroughly we need to ensure that no duplicate
neighbours are sent or received because that confuses the receiver.
This is especially true when the HELLO messages are fragmented, and
even more so when the fragments have some delay between them since
that causes link instability.

This commit fixes that for the sending side.

Signed-off-by: Iwan G. Flameling <iwanovich@gmail.com>
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/lq_packet.c