OSDN Git Service

tipc: Update node-scope publications when network address is assigned
authorAllan Stephens <allan.stephens@windriver.com>
Tue, 17 Apr 2012 21:57:52 +0000 (17:57 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 19 Apr 2012 19:46:36 +0000 (15:46 -0400)
commit1110b8d33a54d1b91131e2a70ef0c3c26425b800
tree09563eeba21cc7f816f89101e1b345bcd4316262
parenta909804f7c6cb83b7365ed23e9fd4c1267ee9ef0
tipc: Update node-scope publications when network address is assigned

Ensures that node-scope name publications that exist prior to the
configuration of a node's network address are properly re-initialized
with that address when it is assigned. TIPC's node-scope publications
are now tracked using a publications list like the lists used for
cluster-scope and zone-scope publications so they can be easily updated
when required.

The inclusion of node scope name publications in a conventional publication
list means that they must now also be withdrawn, just like cluster and zone
scope publications are currently withdrawn.  So some conditional tests on
scope ==/!= TIPC_NODE_SCOPE are inserted/removed accordingly.

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