tipc: Strengthen checks for neighboring node discovery
authorAllan Stephens <Allan.Stephens@windriver.com>
Wed, 20 Apr 2011 21:24:07 +0000 (16:24 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 10 May 2011 20:03:55 +0000 (16:03 -0400)
commit66e019a6af827a254641e83e96ee36b0f4adc5e3
tree8a0245a404564b9bcfb01d5378c35714c99240de
parent1f3de471adf5c2a584480a6010808d7a17063897
tipc: Strengthen checks for neighboring node discovery

Enhances existing checks on the discovery domain associated with a TIPC
bearer. A bearer can no longer be configured to accept links from itself
only (which would be pointless), or to nodes outside its own cluster
(since multi-cluster support has now been removed from TIPC). Also, the
neighbor discovery routine now validates link setup requests against the
configured discovery domain for the bearer, rather than simply ensuring
the requesting node belongs to the node's own cluster.

Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/bearer.c
net/tipc/discover.c