]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitac0ce3c329d3e219cc168923fc8f2d7fa48c8c6a
tree8a0245a404564b9bcfb01d5378c35714c99240de
parent5b33da1a76934411e9f1dfe774efaeed3c425eda
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