aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/config.c')
-rw-r--r--net/tipc/config.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/tipc/config.c b/net/tipc/config.c
index f5458eddd7bc..a4988cdbde6d 100644
--- a/net/tipc/config.c
+++ b/net/tipc/config.c
@@ -489,6 +489,21 @@ failed:
489 return res; 489 return res;
490} 490}
491 491
492void tipc_cfg_reinit(void)
493{
494 struct tipc_name_seq seq;
495 int res;
496
497 seq.type = TIPC_CFG_SRV;
498 seq.lower = seq.upper = 0;
499 tipc_withdraw(config_port_ref, TIPC_ZONE_SCOPE, &seq);
500
501 seq.lower = seq.upper = tipc_own_addr;
502 res = tipc_publish(config_port_ref, TIPC_ZONE_SCOPE, &seq);
503 if (res)
504 err("Unable to reinitialize configuration service\n");
505}
506
492void tipc_cfg_stop(void) 507void tipc_cfg_stop(void)
493{ 508{
494 if (config_port_ref) { 509 if (config_port_ref) {