]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: correct discovery message handling during address trial period
authorJon Maloy <jon.maloy@ericsson.com>
Fri, 6 Jul 2018 18:10:04 +0000 (20:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Jul 2018 10:49:01 +0000 (19:49 +0900)
commit41f882000ba8702cc2189837db9e47f97ee107eb
tree29a53dc5c39cf8d33163fa5d47bceea50eb22bc6
parentd6669207c8f44914b782aa4bdd33456217c291d9
tipc: correct discovery message handling during address trial period

With the duplicate address discovery protocol for tipc nodes addresses
we introduced a one second trial period before a node is allocated a
hash number to use as address.

Unfortunately, we miss to handle the case when a regular LINK REQUEST/
RESPONSE arrives from a cluster node during the trial period. Such
messages are not ignored as they should be, leading to links setup
attempts while the node still has no address.

Fixes: 8a3f90a20407 ("tipc: handle collisions of 32-bit node address hash values")
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/discover.c