tipc: Add routines for safe checking of node's network address
authorAllan Stephens <allan.stephens@windriver.com>
Tue, 17 Apr 2012 22:02:01 +0000 (18:02 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 19 Apr 2012 19:46:39 +0000 (15:46 -0400)
commit336ebf5bf524e447227cb1d785b22ca722e6afa7
tree72e72c183cf43ccfbb756a7866c8b3cf90eb6781
parentfd6eced8a482986784eb1f3aa0838dbdd725e71c
tipc: Add routines for safe checking of node's network address

Introduces routines that test whether a given network address is
equal to a node's own network address or if it lies within the node's
own network cluster, and which work properly regardless of whether
the node is using the default network address <0.0.0> or a non-zero
network address that is assigned later on. In essence, these routines
ensure that address <0.0.0> is treated as an alias for "this node",
regardless of which network address the node is actually using.

Old users of the pre-existing more strict match in_own_cluster()
have been accordingly redirected to what is now called
in_own_cluster_exact() --- which does not extend matching to <0,0,0>.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/addr.h
net/tipc/bearer.c
net/tipc/name_table.c
net/tipc/node.c