tipc: Fix initialization sequence problems when entering network mode
authorAllan Stephens <allan.stephens@windriver.com>
Wed, 21 May 2008 21:55:04 +0000 (14:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 May 2008 21:55:04 +0000 (14:55 -0700)
commit03194379a77b02df3404ec4848a50c6784e9a8a5
treef76ddd4c02f71f5ed03da0729d563f81d701f267
parent6d4a6672c8263f98544d2b91690dc7074b144090
tipc: Fix initialization sequence problems when entering network mode

This patch ensures that TIPC's topology service and configuration
service are shut down before switching into "network mode".  This
ensures that TIPC does not mistakenly try to send unnecessary
"publication withdraw" messages to other nodes before it is fully
initialized for sending off-node messages.  Note that the node's
current network address is now updated only after the two services
are shut down; this ensures that any existing connections to the
topology server are terminated correctly using the old address.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/config.c
net/tipc/core.c
net/tipc/core.h
net/tipc/net.c
net/tipc/net.h